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

Development fix cypress #108

Merged
merged 2 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/weblets_cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
- name: Write the cypress.env.json file
run: |
echo '${{ secrets.TFCHAIN_MNEMONICS }}' > cypress.env.json
echo '${{ secrets.TFCHAIN_MNEMONICS }}' > packages/weblets/cypress.env.json
- name: Cypress run
uses: cypress-io/github-action@v5.1.0
with:
browser: chrome
start: yarn workspace @threefold/weblets serve:app
wait-on: "http://localhost:8080/"
wait-on-timeout: 350
wait-on-timeout: 500
project: ./packages/weblets
4 changes: 2 additions & 2 deletions packages/weblets/cypress/page-objects/vm-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Virtualmachine {
.get("tf-vm")
.shadow()
.find(
"div:nth-child(2) > form:nth-child(1) > div:nth-child(8) > section:nth-child(2) > div:nth-child(17) > div:nth-child(2) > select:nth-child(1)",
"div:nth-child(2) > form:nth-child(1) > div:nth-child(8) > section:nth-child(2) > div:nth-child(19) > div:nth-child(2) > select:nth-child(1)",
);
}

Expand All @@ -103,7 +103,7 @@ class Virtualmachine {
.get("tf-vm")
.shadow()
.find(
"div:nth-child(2) > form:nth-child(1) > div:nth-child(8) > section:nth-child(2) > div:nth-child(20) > div:nth-child(2) > select:nth-child(1)",
"div:nth-child(2) > form:nth-child(1) > div:nth-child(8) > section:nth-child(2) > div:nth-child(22) > div:nth-child(2) > select:nth-child(1)",
);
}

Expand Down