mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-22 10:33:24 +00:00
842a91590a
* eslint-config-wikimedia: 0.27.0 → 0.28.2 The following rules are failing and were disabled: * tests/selenium: * implicit-arrow-linebreak * no-mixed-spaces-and-tabs * grunt-banana-checker: 0.11.1 → 0.13.0 * stylelint-config-wikimedia: 0.16.1 → 0.17.2 The following rules no longer exist and were removed: * stylistic/selector-list-comma-newline-after * braces: 3.0.2 → 3.0.3 * https://github.com/advisories/GHSA-grv7-fg5c-xmjg Change-Id: Ia94454c1da778f241085714e1601a0233d547570
25 lines
675 B
JavaScript
25 lines
675 B
JavaScript
/**
|
|
* Hooks
|
|
*
|
|
* Hooks are used for setup and teardown of the environment before and after each scenario.
|
|
* It's preferable to use tags to invoke hooks rather than using the generic 'Before' and 'After'
|
|
* events, which execute before and after all scenario.
|
|
* https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/hooks.md
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const { After, Before } = require( '@cucumber/cucumber' );
|
|
|
|
Before( () => {
|
|
// This hook will be executed before ALL scenarios
|
|
} );
|
|
|
|
After( () => {
|
|
// This hook will be executed after ALL scenarios
|
|
} );
|
|
|
|
Before( { tags: '@foo' }, () => {
|
|
// This hook will be executed before scenarios tagged with @foo
|
|
} );
|