Skip to content

Commit

Permalink
wip debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed May 15, 2024
1 parent 110113e commit cdc1ce9
Show file tree
Hide file tree
Showing 8 changed files with 367 additions and 569 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/template-connect-test-params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
description: "Firmware model for the tests (example: R)"
type: "string"
required: false
default: ""
node-environment:
description: "Should the test run on nodejs environment, it runs by default."
type: "boolean"
Expand Down Expand Up @@ -54,9 +53,13 @@ jobs:
- run: sed -i "/\"node\"/d" package.json
- run: yarn install
# nightly test - run without cached txs
- run: 'export ADDITIONAL_ARGS="-c"'
if: ${{ github.event_name == 'schedule' }}
- run: './docker/docker-connect-test.sh node -p "${{ inputs.test-pattern }}" -f "${{ inputs.tests-firmware }}" -i ${{ inputs.methods }} -m ${{ inputs.test-firmware-model}} $ADDITIONAL_ARGS'
- if: ${{ github.event_name == 'schedule' }}
run: 'export ADDITIONAL_ARGS="-c"'
- if: ${{ inputs.test-firmware-model }}
run: 'export ADDITIONAL_ARGS="$ADDITIONAL_ARGS -m ${{ inputs.test-firmware-model }}"'
- if: ${{ inputs.methods }}
run: 'export ADDITIONAL_ARGS="$ADDITIONAL_ARGS -i ${{ inputs.methods }}"'
- run: './docker/docker-connect-test.sh node -p "${{ inputs.test-pattern }}" -f "${{ inputs.tests-firmware }}"$ADDITIONAL_ARGS'

web:
name: "web-${{ inputs.test-description }}"
Expand Down Expand Up @@ -89,6 +92,10 @@ jobs:
- name: "Echo download path"
run: echo ${{steps.download.outputs.download-path}}
# nightly test - run without cached txs
- run: 'export ADDITIONAL_ARGS="-c"'
if: ${{ github.event_name == 'schedule' }}
- run: './docker/docker-connect-test.sh web -p "${{ inputs.test-pattern }}" -f "${{ inputs.tests-firmware }}" -i ${{ inputs.methods }} -m ${{ inputs.test-firmware-model}} $ADDITIONAL_ARGS'
- if: ${{ github.event_name == 'schedule' }}
run: 'export ADDITIONAL_ARGS="-c"'
- if: ${{ inputs.test-firmware-model }}
run: 'export ADDITIONAL_ARGS="$ADDITIONAL_ARGS -m ${{ inputs.test-firmware-model }}"'
- if: ${{ inputs.methods }}
run: 'export ADDITIONAL_ARGS="$ADDITIONAL_ARGS -i ${{ inputs.methods }}"'
- run: './docker/docker-connect-test.sh web -p "${{ inputs.test-pattern }}" -f "${{ inputs.tests-firmware }}"$ADDITIONAL_ARGS'
8 changes: 6 additions & 2 deletions packages/connect-popup/e2e/tests/popup-close.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ test(`device disconnected during device interaction`, async ({ page, context })
await TrezorUserEnvLink.api.stopEmu();
await explorerPage.waitForTimeout(WAIT_AFTER_TEST);

log('waiting to click @connect-ui/error-close-button');
await popup.click("button[data-test='@connect-ui/error-close-button']");
try {
log('waiting to click @connect-ui/error-close-button');
await popup.click("button[data-test='@connect-ui/error-close-button']");
} catch (error) {
// Sometimes this crashes with error that the page is already closed.
}

log('waiting for popupClosedPromise to resolve');
await popupClosedPromise;
Expand Down
180 changes: 0 additions & 180 deletions packages/connect-web/src/impl/core-in-popup/index.ts

This file was deleted.

Loading

0 comments on commit cdc1ce9

Please sign in to comment.