Comments (8)
Amending this, since it appears to not be the dashes.
If I set the "testMatch to the full path to this file, Playwright does not find any tests:
CommandScript00.playwright-test.ts
However, if I change the testName and file name to this, it works:
cmdscript00.playwright-test.ts
I'm not sure if it's the capitalization (Running in "git bash" on Windows, or a file length issue.
from playwright.
Can you please share complete reproduction project, so that we could try it locally?
from playwright.
Talking to Yuri internally for a private repo.
I'm still working on understanding what the delineation between passing and failing cases is. It seems to be inconsistent. But "test.playwright-test.ts" always seems to pass, and longer names or those with "-" do not. I'll see if I can binary-search this to a length issue.
from playwright.
This is looking like a timing issue with dynamically generated test files. My "globalSetup" is writing a bunch of files, and these invoke functions which create the tests.
If I dynamically generate the files in "globalSetup", then I get "no tests found". But if I could the generated files to another name, then the tests are found.
from playwright.
It appears I've hit the same issues as this Stack Overflow post:
from playwright.
This is looking like a timing issue with dynamically generated test files. My "globalSetup" is writing a bunch of files, and these invoke functions which create the tests.
Can you extract relevant parts into a minimal project, so that we could run it locally and reproduce the issue?
from playwright.
I'm closing this issue, since I've fixed the timing issue. Opening another one about a weird globbing behavior.
from playwright.
Closing
from playwright.
Related Issues (20)
- [Feature]: Update test.describe location in HTML reports HOT 5
- [Feature]: Locator's filter to exclude overlapped elements HOT 2
- [Feature]: 'retain-on-first-failure' option for screenshots
- [Feature]: replay in trace viewer HOT 2
- [Feature]: A option for `colorScheme` to follow the OS preference
- [Bug]: Firefox tests in macos 14 take an unusually long time HOT 1
- [Bug]: Running npx playwright test --list creates test-results folder (and also allure-results)
- [Bug]: Mac M3 - UI Mode has to be reopened several times in order to interact with tests or buttons HOT 4
- [Bug]: Running a test with the new tagging syntax causes an error during test run HOT 6
- [Bug]: Second page of a new tab is not interactive HOT 1
- [Bug]: Timeline & preview disappear after timeout in fixture cleanup HOT 4
- [Bug]: getByRole not finding items inside New Look dynamics dialogs HOT 3
- [Feature]: Option to start `webServer` when running `codegen` HOT 4
- [Bug]: Overridden browser fixture does not work as expected HOT 4
- [Feature]: CLI command set for serial and parallel test execution to run a set of tests with a single worker and set of tests with multiple workers in a single test run HOT 1
- [Bug]: Playwright UI Mode Closes Without Reporting Test Results HOT 4
- [Docs]: Update docs on waitForResponse to include request method
- [Feature]: remove exposed function HOT 1
- [Feature]: Dismiss right click contextual menu easily HOT 4
- [Bug]: Unable to run chrome in k8s with seccomp_profile.json in v1.39.0 and up HOT 2
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.