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

fix e2e test failures #199

Merged
merged 4 commits into from
Nov 14, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
types:
- opened
- reopened
- edited
- labeled
- synchronize
schedule:
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ ENV NODE_OPTIONS=--dns-result-order=ipv4first
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates jq expect xvfb

# Install Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable
# Install Chromium
RUN apt-get install -y chromium

# Setup Nginx
RUN apt update && apt install -y nginx
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "yarn lint:types && yarn lint:eslint",
"lint:types": "tsc -p jsconfig.json",
"lint:eslint": "eslint '**/*.js'",
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs",
"test:e2e": "SKIP_EXTENSION_SETUP=true EXTENSION=keplr synpress run --configFile=test/e2e/synpress.config.cjs --browser chromium",
"test:e2e:ci": "yarn build && start-server-and-test 'yarn preview' http-get://localhost:3001 'yarn test:e2e'"
},
"exports": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-summary": "^1.3.0",
"rollup-plugin-terser": "^7.0.2",
"ses": "^1.8.0",
"ses": "^1.10.0",
"start-server-and-test": "^2.0.3",
"typescript": "^4.2.3"
},
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/specs/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {

describe('Wallet App Test Cases', { execTimeout: DEFAULT_EXEC_TIMEOUT }, () => {
const AGORIC_NET = Cypress.env('AGORIC_NET').trim() || 'local';
const userConfig = config[AGORIC_NET === 'local' ? 'local' : 'testnet'];
const network = AGORIC_NET === 'local' ? 'local' : 'testnet';
const userConfig = config[network];
let istBalance = 0;

context('Bidding Tests', () => {
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3022,6 +3022,11 @@
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.6.tgz#f4e2dcb22f19f33c0431303c7387c7f5b54c757f"
integrity sha512-Uqy94PwLTco90Yfign43muvDtjsYTbL6Ck4W5sSWQUqJiFOL+YP8kiBOoGyQynDsGTY0MCQvMxEPfphaJKnzlQ==

"@endo/env-options@^1.1.8":
version "1.1.8"
resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-1.1.8.tgz#dbfcfbf7574f2a793155281d035c8d6f809f5828"
integrity sha512-Xtxw9n33I4guo8q0sDyZiRuxlfaopM454AKiELgU7l3tqsylCut6IBZ0fPy4ltSHsBib7M3yF7OEMoIuLwzWVg==

"@endo/eslint-config@^0.3.9":
version "0.3.21"
resolved "https://registry.yarnpkg.com/@endo/eslint-config/-/eslint-config-0.3.21.tgz#e68bb5821e38a054da6885f035f29390b09287e5"
Expand Down Expand Up @@ -16026,6 +16031,13 @@ ses@^0.18.1, ses@^0.18.4, ses@^0.18.8:
dependencies:
"@endo/env-options" "^0.1.4"

ses@^1.10.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/ses/-/ses-1.10.0.tgz#b611dd4605c6a1719665bac159cbd43c84d4f3a9"
integrity sha512-HXmJbNEgY/4hsQfaz5dna39vVKNyvlElRmJYk+bjTqSXSElT0Hr6NKwWVg4j0TxP6IuHp/PNMoWJKIRXzmLbAQ==
dependencies:
"@endo/env-options" "^1.1.8"

ses@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/ses/-/ses-1.8.0.tgz#8031ba3ce5bd55ced0e7a805c9cc906b9f5e29da"
Expand Down
Loading