Skip to content

Playwright VSCode plugin compatibility #82

@Lewiscowles1986

Description

@Lewiscowles1986

Hey, thanks for working on this repo. It's incredibly cool, and while looking into #80 I noticed some things.

Hope you don't mind me using this issue to share.

I Recently setup a new full-stack web-app template as an accelerator for some devs experimenting with some newer tech.

For that, I used playwright and a nifty vscode extension:

Name: Playwright Test for VSCode
Id: ms-playwright.playwright
Description: Run Playwright Test tests in Visual Studio Code.
Version: 1.1.12
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright

It adds some options, such as Test: Install Playwright Browsers which can make it easier for folks to setup playwright and avoid the default errors (this package pulls older playwright browsers)

By installing that, and then bumping your dev dependencies (see below) I was able to get this working in a few clicks.

pytest-playwright==0.5.2
playwright==1.48.0

I did have to check

And see if the version the plugin downloads is the same version, but once I realised it was, I used this, rather than pulling the older versions (Since I don't know how I'd do that, I'm open to learning if you're open to sharing)

That led to the following easy to run, green tests.

Screenshot 2024-11-17 at 13 27 02

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions