-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global timeout doesn't work. Get back to implicit one
- Loading branch information
1 parent
3a92f80
commit bc5800e
Showing
3 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { test } from '@playwright/test'; | ||
import { defineConfig } from '@playwright/test'; | ||
import { LoginPage } from '../pages/login-page.js'; | ||
import { PortalPage } from '../pages/portal-page.js'; | ||
|
||
export default defineConfig({ // global timeout for all tests | ||
timeout: 1 * 15 * 1000, // is equivalent to 15 seconds | ||
}); | ||
|
||
test('Login Test', async ({ page }) => { // 'Login Test' is the name of the test | ||
const loginPage = new LoginPage(page); | ||
const portalPage = new PortalPage(page); | ||
await loginPage.goto(); | ||
await loginPage.login(); | ||
await portalPage.portalHeaderIsDisplayed(); | ||
|
||
}); | ||
|
||
test.afterAll(async ({ page }) => { | ||
console.log('Closing the browser...'); | ||
await page.context().close(); | ||
}); |