Commit a6a10b40 authored by bojanz's avatar bojanz

Issue #3090028 by mikelutz, bojanz: FunctionalJavascript tests are no longer run by DrupalCI

parent b9122fc8
# Learn to make one for your own drupal.org project:
# https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
build:
assessment:
......@@ -10,11 +9,13 @@ build:
sniff-all-files: true
halt-on-fail: false
testing:
# run_tests task is executed several times in order of performance speeds.
# halt-on-fail can be set on the run_tests tasks in order to fail fast.
# suppress-deprecations is false in order to be alerted to usages of
# deprecated code.
run_tests.standard:
types: 'Simpletest,PHPUnit-Unit,PHPUnit-Kernel,PHPUnit-Functional'
types: 'PHPUnit-Unit,PHPUnit-Kernel,PHPUnit-Functional'
testgroups: '--all'
suppress-deprecations: false
run_tests.javascript:
concurrency: 1
types: 'PHPUnit-FunctionalJavascript'
testgroups: '--all'
suppress-deprecations: false
halt-on-fail: false
......@@ -9,6 +9,7 @@ use Drupal\FunctionalJavascriptTests\JSWebAssert;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\block\Traits\BlockCreationTrait;
use Drupal\Tests\commerce\Traits\CommerceBrowserTestTrait;
use Drupal\Tests\commerce\Traits\DeprecationSuppressionTrait;
use SebastianBergmann\Comparator\Factory as PhpUnitComparatorFactory;
/**
......@@ -19,6 +20,7 @@ abstract class CommerceWebDriverTestBase extends WebDriverTestBase {
use BlockCreationTrait;
use StoreCreationTrait;
use CommerceBrowserTestTrait;
use DeprecationSuppressionTrait;
/**
* The store entity.
......@@ -62,6 +64,7 @@ abstract class CommerceWebDriverTestBase extends WebDriverTestBase {
* {@inheritdoc}
*/
protected function setUp() {
$this->setErrorHandler();
parent::setUp();
$factory = PhpUnitComparatorFactory::getInstance();
......@@ -80,6 +83,14 @@ abstract class CommerceWebDriverTestBase extends WebDriverTestBase {
$this->drupalLogin($this->adminUser);
}
/**
* {@inheritdoc}
*/
protected function tearDown() {
parent::tearDown();
$this->restoreErrorHandler();
}
/**
* Gets the permissions for the admin user.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment