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

Skeleton app won't run Playwright test #9814

Closed
csi-mattkallman opened this issue May 1, 2023 · 1 comment
Closed

Skeleton app won't run Playwright test #9814

csi-mattkallman opened this issue May 1, 2023 · 1 comment

Comments

@csi-mattkallman
Copy link

Describe the bug

Create a new skeleton app with Playwright added
Run npm install
Run npm test

Issue: "Error: No tests found"

I was initially confused by this because I have other SvelteKit apps running Playwright tests without issue. It turns out in the initial configuration set by create-svelte (version 4.1.0) has a file called "/tests/test.js"

This file is not detected by the default @playwright/test setup.

Changing the filename to "default.test.js" resolves the issue.

Reproduction

https://github.com/csi-mattkallman/issue-with-default-playwright-test

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 15.53 GB / 31.81 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.4.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 112.0.5615.138
    Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.64)
  npmPackages:
    @sveltejs/adapter-auto: ^2.0.0 => 2.0.1
    @sveltejs/kit: ^1.5.0 => 1.15.9
    svelte: ^3.54.0 => 3.58.0
    vite: ^4.3.0 => 4.3.3

Severity

annoyance

Additional Information

No response

@Conduitry
Copy link
Member

Duplicate of #9793. It looks like the fix in #9795 hasn't been released yet.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2023
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