Comments (2)
I was importing expect
straight from test script, called with jest CLI. Configuring my jest.config.js
instead with setupFilesAfterEnv: ['expect-playwright']
fixed the problem! Thanks!
from expect-playwright.
@maxime-helen seems like that you are using expect-playwright
without jest
, so this is expected behaviour.
from expect-playwright.
Related Issues (20)
- Migrate tests to `@playwright/test` HOT 2
- Make test site for iframe tests
- Allow passing a promise for the value to expect HOT 1
- 0.7.0 has broken expecting on ElementHandle HOT 2
- Use `elementHandle.inputValue` for `toMatchValue` HOT 1
- Close to maintenance mode, add notice? HOT 1
- toMatchText failed due to whitespaces HOT 1
- expect-playwright not working with jest-playwright HOT 1
- Error: `elementHandle.waitForSelector` is not a function HOT 4
- Q: using toHaveSelector HOT 1
- (feature request) expect(page).toHaveUrl(expectedUrl)
- playwright-core vs playwright as peerDependency HOT 12
- Feature request: expect(frame: Frame) HOT 4
- Improve matcher messages HOT 2
- Introduce automated code formatting HOT 1
- [Question] How do we setup default timeout? HOT 1
- Support for @playwright/test HOT 2
- expect() should accept Frame argument. HOT 1
- 0.5.0 throwing toMatchText is not a function
- Simplifying match/equal matchers
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 expect-playwright.