Skip to content

Commit addf024

Browse files
committed
update stackable fixture
1 parent b3606ba commit addf024

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

e2e/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default defineConfig( {
3535
reporter: process.env.CI
3636
? [ [ 'list' ], [ 'github', { useDetails: true, showError: true } ], [ 'html', { outputFolder: '../playwright-report' } ] ]
3737
: [ [ 'list' ], [ 'html', { outputFolder: '../playwright-report' } ] ],
38+
reportSlowTests: null,
3839
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3940
use: {
4041
/* Base URL to use in actions like `await page.goto('/')`. */

e2e/test-utils/stackable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class StackableFixture {
1818
}
1919

2020
const finishedCallback = async ( request: Request ) => {
21-
if ( request.url().includes( 'wp-json/wp/v2/settings' ) && request.method() === 'GET' ) {
21+
if ( request.url().includes( 'wp/v2/settings' ) && request.method() === 'GET' ) {
2222
try {
2323
let settings = null
2424
await test.step( 'Wait for Stackable settings to load', async () => {
@@ -43,7 +43,7 @@ export class StackableFixture {
4343
}
4444
}
4545
const failedCallback = async ( request: Request ) => {
46-
if ( request.url().includes( 'wp-json/wp/v2/settings' ) && request.method() === 'GET' ) {
46+
if ( request.url().includes( 'wp/v2/settings' ) && request.method() === 'GET' ) {
4747
cleanup()
4848
throw Error( 'Failed to get Stackable settings' )
4949
}

0 commit comments

Comments
 (0)