Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: add instruction for local e2e test launch #848

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vrozaev
Copy link
Collaborator

@vrozaev vrozaev commented Nov 6, 2024

No description provided.

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v18.19.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the lines above might be removed if we use base image from our Dockerfile, isn't it?

npx playwright install-deps
cd ..
npm run e2e:localmode:screenshots:update
'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read -p "Enter base url of your development stand: " BASE_URL ; \
docker run --rm --network host -it -w /work \
    -v $(pwd):/work \
    -e BASE_URL=${BASE_URL}
    "ubuntu:jammy" \
    /bin/bash -c '
            apt-get update
            apt-get install curl -y
            curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash 
            export NVM_DIR="$HOME/.nvm"
            [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
            [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
            nvm install v18.19.0
            cd tests 
            npm ci 
            npx playwright install
            npx playwright install-deps
            cd ..
            npm run e2e:localmode:screenshots:update
'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants