Skip to content

Commit 6f2d46b

Browse files
authored
Added a new tag release to trigger all nightly tagged test and tests … (#1993)
1 parent 295e3f0 commit 6f2d46b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Jenkinsfile_nightly

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ properties([
5656
),
5757
choice(
5858
name: 'PLAYWRIGHT_GREP_TAG',
59-
choices: ['@nightly', '@smoke', '@e2e', '@regression'],
60-
description: 'Title grep (E2E_TEST_SCOPE). First option is the scheduled default.'
59+
choices: ['@nightly', '@smoke', '@regression', '@release'],
60+
description: 'Title grep (E2E_TEST_SCOPE). First option is the scheduled default. @release option will run all tests tagged @nightly and also @release'
61+
6162
),
6263
])
6364
])
@@ -103,7 +104,8 @@ def validateInputs() {
103104
}
104105

105106
def handleEnvironmentSetting() {
106-
env.E2E_TEST_SCOPE = params.PLAYWRIGHT_GREP_TAG?.trim() ?: '@nightly'
107+
def tag = params.PLAYWRIGHT_GREP_TAG?.trim() ?: '@nightly'
108+
env.E2E_TEST_SCOPE = (tag == '@release') ? '@nightly|@release' : tag
107109
env.E2E_SPEC = params.PLAYWRIGHT_SPEC?.trim() ?: ''
108110
env.ENVIRONMENT = (params.E2E_TARGET_ENV?.trim() ?: 'aat').toLowerCase()
109111
}

src/e2eTest/tests/CommonComponent/caseFlag.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ test.describe('[Common Component Case Flags] @nightly @CC @caseFlags', async ()
192192
});
193193
});
194194

195-
test.describe('[Common Component Case Flags - Access Management] @CC @caseFlags @nightly', async () => {
195+
test.describe('[Common Component Case Flags - Access Management] @CC @caseFlags @release', async () => {
196196
test.describe.configure({ retries: 0 });
197197
test('Staff users can create, manage and view case-level and party-level flags', async ({page, context}) => {
198198
test.setTimeout(ACCESS_CONTROL_TEST_TIMEOUT);

0 commit comments

Comments
 (0)