MDL-77733 behat: enable Axe accessibility tests by default

This commit is contained in:
Simey Lameze
2023-05-18 11:43:57 +08:00
committed by Andrew Nicols
parent 11bf54289f
commit 4a04cda71b
4 changed files with 27 additions and 10 deletions
+8 -4
View File
@@ -52,7 +52,8 @@ list($options, $unrecognized) = cli_get_params(
'updatesteps' => false,
'optimize-runs' => '',
'add-core-features-to-theme' => false,
'axe' => false,
'axe' => '',
'no-axe' => false,
),
array(
'h' => 'help',
@@ -79,7 +80,7 @@ Options:
--disable Disables test environment
--diag Get behat test environment status code
--updatesteps Update feature step file.
--axe Include axe accessibility tests
--no-axe Disable axe accessibility tests.
-o, --optimize-runs Split features with specified tags in all parallel runs.
-a, --add-core-features-to-theme Add all core features to specified theme's
@@ -186,8 +187,11 @@ if ($options['install']) {
behat_config_manager::set_behat_run_config_value('behatsiteenabled', 1);
}
// Define whether to run Behat with axe tests.
behat_config_manager::set_behat_run_config_value('axe', $options['axe']);
// Always run Behat with axe tests.
if (!$options['no-axe']) {
behat_config_manager::set_behat_run_config_value('axe', true);
}
// Enable test mode.
$timestart = microtime(true);