Skip to content

Commit

Permalink
fix: bring back screenshots to debug unforeseen modal
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed Feb 5, 2022
1 parent 8c0c581 commit 55b909d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ jobs:
adb shell 'echo "chrome --disable-fre --no-default-browser-check --no-first-run" > /data/local/tmp/chrome-command-line'
yarn test:android
- name: Upload Screenshoots
uses: actions/upload-artifact@v1
with:
name: e2e-results-android
path: .tmp
if: ${{ always() }}

- uses: actions/download-artifact@v2
with:
name: e2e-results-android
path: .tmp
if: ${{ always() }}

test-ios:
name: e2e-ios-test
runs-on: macos-10.15
Expand Down Expand Up @@ -110,3 +123,15 @@ jobs:
run: |
yarn test:ios
- name: Upload Screenshoots
uses: actions/upload-artifact@v1
with:
name: e2e-results-ios
path: .tmp
if: ${{ always() }}

- uses: actions/download-artifact@v2
with:
name: e2e-results-ios
path: .tmp
if: ${{ always() }}
8 changes: 4 additions & 4 deletions e2e/payments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import cardField from './screenObject/components/CardField';
import homeScreen from './screenObject/HomeScreen';
import BECSForm from './screenObject/components/BECSForm';

describe('Example app payments scenarios (common)', () => {
beforeAll(() => {
driver.reloadSession();
});
type WDIO = { saveScreen: (name: string) => void } & WebdriverIO.Browser;

describe('Example app payments scenarios (common)', () => {
beforeEach(() => {
$('~app-root').waitForDisplayed({ timeout: 30000 });
});

afterEach(() => {
(driver as WDIO).saveScreen(`screen-${new Date().getTime()}`);

driver.reloadSession();
});

Expand Down
8 changes: 4 additions & 4 deletions e2e/paymentsWithRedirects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { getElementByText, getTextInputByPlaceholder } from './helpers';
import BasicPaymentScreen from './screenObject/BasicPaymentScreen';
import homeScreen from './screenObject/HomeScreen';

describe('Example app payments scenarios (android)', () => {
beforeAll(() => {
driver.reloadSession();
});
type WDIO = { saveScreen: (name: string) => void } & WebdriverIO.Browser;

describe('Example app payments scenarios (android)', () => {
beforeEach(() => {
$('~app-root').waitForDisplayed({ timeout: 30000 });
});

afterEach(() => {
(driver as WDIO).saveScreen(`screen-${new Date().getTime()}`);

driver.reloadSession();
});

Expand Down

0 comments on commit 55b909d

Please sign in to comment.