Skip to content

[Question] Playwright-Docker help needed #1973

@barakbs1

Description

@barakbs1

Hi everyone,
I'm a newbie to docker, and I've tried running my tests on docker local container with not much success. I've wen't through this documentation: https://github.com/microsoft/playwright/tree/master/docs/docker
And got to this point:
pwuser@c5275aa66a9d:/$

I've tried running npm run test command, but got this:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pwuser/.npm/_logs/2020-04-24T23_45_48_490Z-debug.log

Of course I have a package.json script in the docker image (or at least in the folder I used to create the docker image from)

Thank you all for your kind help (I love playwright BTW!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions