committed by
GitHub
parent
aba9076805
commit
c9f0ec5d89
@@ -29,22 +29,22 @@ export default defineConfig({
|
||||
screenshot: 'only-on-failure',
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'on-first-retry'
|
||||
trace: 'on-first-retry',
|
||||
},
|
||||
|
||||
// test timeout set to 1 minutes
|
||||
timeout: 60 * 1000,
|
||||
expect: {
|
||||
// expect timeout set to 10 seconds
|
||||
timeout: 10 * 1000
|
||||
timeout: 10 * 1000,
|
||||
},
|
||||
|
||||
/* Configure projects for major browsers */
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: { ...devices['Desktop Chrome'] }
|
||||
}
|
||||
use: { ...devices['Desktop Chrome'] },
|
||||
},
|
||||
/* Test against mobile viewports. */
|
||||
// {
|
||||
// name: 'Mobile Chrome',
|
||||
@@ -67,12 +67,14 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
/* Run your local dev server before starting the tests */
|
||||
webServer: process.env.PLAYWRIGHT_SERVER_COMMAND ? {
|
||||
cwd: '../../',
|
||||
command: process.env.PLAYWRIGHT_SERVER_COMMAND,
|
||||
url: 'http://localhost:3000',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
stdout: 'pipe',
|
||||
stderr: 'pipe',
|
||||
} : undefined
|
||||
webServer: process.env.PLAYWRIGHT_SERVER_COMMAND
|
||||
? {
|
||||
cwd: '../../',
|
||||
command: process.env.PLAYWRIGHT_SERVER_COMMAND,
|
||||
url: 'http://localhost:3000',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
stdout: 'pipe',
|
||||
stderr: 'pipe',
|
||||
}
|
||||
: undefined,
|
||||
});
|
||||
|
||||
@@ -30,8 +30,6 @@ test.describe('Auth flow', () => {
|
||||
await auth.visitConfirmEmailLink(email);
|
||||
|
||||
await page.waitForURL('**/home');
|
||||
|
||||
expect(page.url()).toContain('http://localhost:3000/home');
|
||||
});
|
||||
|
||||
test('will sign-in with the correct credentials', async ({ page }) => {
|
||||
|
||||
@@ -46,7 +46,7 @@ export class Mailbox {
|
||||
deleteAfter: boolean;
|
||||
},
|
||||
) {
|
||||
const url = `http://localhost:54324/api/v1/mailbox/${mailbox}`;
|
||||
const url = `http://127.0.0.1:54324/api/v1/mailbox/${mailbox}`;
|
||||
|
||||
const response = await fetch(url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user