Code Monkey home page Code Monkey logo

Comments (7)

mxschmitt avatar mxschmitt commented on June 10, 2024

Does this also happen with a newly created project?

Ideally we have something which we can run locally in order to reproduce this bug, thanks for your understanding!

from playwright.

mjeruzal427 avatar mjeruzal427 commented on June 10, 2024

@mxschmitt Yes, it does. I've initialized a brand new playwright project by using the command:

npm init playwright@latest

The project was not modified by me at any step.

With the latest (1.1.1) extension available "Run Test" buttons do not appear for example.spec.ts:
image

After rolling back to previous version of extension (1.0.22) the buttons are available:
image

from playwright.

dsayerm avatar dsayerm commented on June 10, 2024

We noticed the same thing when we upgraded. On further investigation we found that we need to set the Projects we wish to have included in the test runner:
image

This configuration was stored then on /.vscode/settings.json.

from playwright.

Tallyb avatar Tallyb commented on June 10, 2024

hey @mxschmitt 👋
Experiencing something similar. I suspect it happens when you have mutliple projects on your config pointing to different folders (e.g.

{
   name: 'foo'
  testDir: '.projects/foo
},
{
   name: 'bar'
  testDir: '.projects/bar
},

only foo will be picked up. you will also that in the tests explorer - only first project.

(PS only tested extension v1.1.0 but PW is on 1.43.1. It will take couple more days before we will upgrade)

from playwright.

jtgober avatar jtgober commented on June 10, 2024

I had a similar issue and found this post (also have multiple projects) For me it was also skipping my global setup for whatever reason. However using what @dsayerm posted with the projects toggles seems to have fixed it for me at the moment. Is that a new feature? I don't recall seeing that one before

Update: ^^^ That is new functionality +++ see this other issue -> #30808

from playwright.

yury-s avatar yury-s commented on June 10, 2024

With the latest (1.1.1) extension available "Run Test" buttons do not appear for example.spec.ts:

@mjeruzal427 can you share screenshot of the Playwright Test extension sidebar in that case?

from playwright.

mjeruzal427 avatar mjeruzal427 commented on June 10, 2024

@yury-s list of tests is stuck on "Loading..." forever. Also, I don't have any options available under "Projects" section as @dsayerm and @jtgober suggested.
image

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.