Comments (1)
This is actually a race condition, since your site does issue the request to your API after the page has loaded. If you add an artificial delay after the navigation, it works.
We recommend using e.g. polling for it instead of waiting for a random time: await expect.poll(() => messages).not.toEqual([])
from playwright.
Related Issues (20)
- [Bug]: Playwright Service - Running playwright tests in headless mode taking either more similar time as running them in headed mode. HOT 2
- [Bug]: WebKit / Linux support avif image format HOT 1
- [Regression]: Docker "latest" tag not updated HOT 2
- Not able to enable hardware acceleration in playwright or when integrating playwright with browserstack HOT 1
- [Bug]: Playwright Errors not respecting ts ignore rules HOT 1
- [Bug]: Playwright Test should export the Location interface HOT 1
- [Bug]: “Playwright Test for VSCode” extension. and testIdAttribute: 'testlabel' HOT 1
- [Bug]: Fixture with scope: 'worker' is triggered twice without beforeAll in test and once with HOT 4
- [Bug]: Playwright Test for VSCode endlessly spawning 'node' subprocesses and overloading system memory on MacOS HOT 1
- [Feature]: Fail after all tests failure percent HOT 1
- [Feature]: Support for the user given filename during download. HOT 7
- Look forward the cut out of “recorder in traceview” HOT 1
- [Bug]: expect.toPass doesn't show the exact error or line number where it is failing HOT 3
- [Bug]: Hover with trial should not trigger mouseover event HOT 3
- [Bug]: Not able to set the geo location in playwright for chromium, firefox or any other browser . playwright with typescript HOT 4
- [REGRESSION]: page.pause() does not pause test timeout after 1.47 HOT 3
- [Feature]: Search params page assertion HOT 1
- [internal]: vscode debugging is broken in unreleased version HOT 1
- [Bug]: Playwright Integration Issue: Tests Not Running in GitHub Actions with pnpm HOT 5
- [internal] Crash in base::internal::AssertBlockingAllowed() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.