Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: timeout on basic example #188

Open
elie222 opened this issue Dec 27, 2024 · 2 comments
Open

Bug: timeout on basic example #188

elie222 opened this issue Dec 27, 2024 · 2 comments
Assignees

Comments

@elie222
Copy link

elie222 commented Dec 27, 2024

Set a super basic example in my repo:

import { shortest } from "@antiwork/shortest";

shortest("Verify that the user can access the / page");

But would get this each time:

📄 login.test.ts

Test Execution Error: page.waitForLoadState: Timeout 30000ms exceeded.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 Tests    0 passed (0)
 Duration   33.35s
 Start at   12:42:56 PM

On a Next.js project. Followed the set up steps.

@elie222 elie222 changed the title Bug: timeout Bug: timeout on basic example Dec 27, 2024
@m2rads
Copy link
Contributor

m2rads commented Dec 27, 2024

@elie222 Thanks for reporting this bug. There are two people that have opened this and this is a bug clearly. I think the issue arises from Playwright waitForLoad method that waits for the pages to be loaded after navigation or initial load of browser.

I am investigating this issue and will open a fix for this soon.

@elie222
Copy link
Author

elie222 commented Dec 28, 2024

@elie222 Thanks for reporting this bug. There are two people that have opened this and this is a bug clearly. I think the issue arises from Playwright waitForLoad method that waits for the pages to be loaded after navigation or initial load of browser.

I am investigating this issue and will open a fix for this soon.

Thanks. I tried it on https://github.com/elie222/inbox-zero.

Although will take a little time just to get the project running. It is a Next.js app.

I'll take a deeper look myself. If there's a debug / verbose mode may help debug as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants