-
Notifications
You must be signed in to change notification settings - Fork 322
Description
π Describe the bug:
Tests fail
UI Mode does not open
π» To Reproduce:
Follow the setup steps from the course (there are lots of gaps. test the course on several newbies before posting it)
π΅ Expected behavior:
Tests run and pass
UI Mode opens
πΈ Screenshots/GIFs/Videos:
....npx playwright test --ui
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /.*profile/
Received string: "https://demoqa.com/login"
Call log:
- locator._expect with timeout 5000ms
- waiting for locator(':root')
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
- locator resolved to β¦
- unexpected value "https://demoqa.com/login"
at tests\ui\pages\login-page.ts:34
32 |
33 | async checkLoggedIn() {
34 | await expect(this.page).toHaveURL(/.*profile/);
| ^
35 | await expect(this.page).toHaveTitle(/DEMOQA/);
36 | }
37 |
at LoginPage.checkLoggedIn (C:\.......\tests\ui\pages\login-page.ts:34:29)
at globalSetup (C:\.......\tests\setup\global-setup.ts:15:19)
π Dependencies' Version (please complete the following information):
- OS: Windows
- Browser course default
- Playwright Version 1.39
- npm Version 10.2.0
π Additional context:
I understand it's a free course but it's expected to teach student to use playwright, not to debug your course code.