Rayrun
← Back to Discord Forum

When I use npx playwright test --ui, it doesn't list all test cases

optional518posted in #help-playwright
Open in Discord

playwright.config.ts

projects: [ { name: 'setup', testMatch: /login.setup.ts/, }, { name: 'chromium', use: { ...devices['Desktop Chrome'], storageState: '.auth/user.json', }, dependencies: ['setup'], }, ]

在UI Mode 窗口下,只能看到login.setup.ts,而不能看到test-create-app.spec.ts

image.png

This thread is trying to answer question "Why doesn't 'npx playwright test --ui' list all test cases?"

8 replies

What is your testDir property? What do you mean it does not list cases? How did you set up your test?

/login.setup\.ts/

@_kalkleiste_: playwright.config.ts 配置文件中testDir: './tests'

playwright.config.ts 配置文件中testDir: './tests'

@_kalkleiste_: The ui model only lists login.setup.ts, but not test-create-app.spec.ts.

The ui model only lists login.setup.ts, but not test-create-app.spec.ts.

image.png
daniel_boone1990
daniel_boone1990

Can't you select project in the UI. Now setup is selected

daniel_boone1990
daniel_boone1990
Screenshot_2566-10-27_at_10.12.33.png
daniel_boone1990
daniel_boone1990

if you click on the setup project, you should be able to select

@daniel_boone1990: Wow, you are right, I didn't notice that there is a default Filter over here, I suggest that the official design should not check a certain one by default

Wow, you are right, I didn't notice that there is a default Filter over here, I suggest that the official design should not check a certain one by default

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].