Skip to content

[BUG] Nothing works in this courseΒ #3

@CIALdev

Description

@CIALdev

🐞 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:

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.

Metadata

Metadata

Assignees

Labels

answeredbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions