Skip to content

Commit b3606ba

Browse files
committed
update admin test
1 parent 2a8fda5 commit b3606ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

e2e/playwright.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export default defineConfig( {
3232
// workers: process.env.CI ? 1 : undefined,
3333
workers: 1,
3434
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
35-
reporter: [
36-
[ 'list' ],
37-
[ 'html', { outputFolder: '../playwright-report' } ],
38-
],
35+
reporter: process.env.CI
36+
? [ [ 'list' ], [ 'github', { useDetails: true, showError: true } ], [ 'html', { outputFolder: '../playwright-report' } ] ]
37+
: [ [ 'list' ], [ 'html', { outputFolder: '../playwright-report' } ] ],
3938
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4039
use: {
4140
/* Base URL to use in actions like `await page.goto('/')`. */

e2e/tests/admin.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test( 'Activating Stackable should redirect to the Getting Started Page', async
2323
await expect( page ).toHaveURL( /page=stackable/ )
2424
await expect( page.getByRole( 'link', { name: 'Activate Free Version' } ) ).toBeVisible()
2525
await page.getByRole( 'link', { name: 'Activate Free Version' } ).click()
26+
await page.getByRole( 'link', { name: 'Skip', exact: true } ).click()
2627
await expect( page ).toHaveURL( /stackable-getting-started/ )
2728
}
2829
} )

0 commit comments

Comments
 (0)