From a702f31b199ece221dd4e6ae8b1de582025031a7 Mon Sep 17 00:00:00 2001 From: BrtqKr Date: Mon, 6 May 2024 16:45:16 +0200 Subject: [PATCH] revert to image --- .github/workflows/e2e-test.yml | 20 +++++++++++++++----- WebExample/tests/textManipulation.spec.ts | 1 - 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 13c44c2e..ab19f766 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -20,6 +20,12 @@ jobs: e2e_test: if: github.repository == 'Expensify/react-native-live-markdown' runs-on: ubuntu-latest + defaults: + run: + working-directory: ./WebExample + + container: + image: mcr.microsoft.com/playwright:v1.43.1-jammy concurrency: group: e2e-test-${{ github.ref }} cancel-in-progress: true @@ -33,13 +39,17 @@ jobs: node-version: 18 - name: Install node_modules - working-directory: WebExample run: yarn install --immutable - - name: Install Playwright Browsers - working-directory: WebExample - run: yarn playwright install-deps + - name: Install browsers + run: npx playwright install --with-deps + if: steps.playwright-cache.outputs.cache-hit != 'true' + + - name: Install dependencies for browsers + run: npx playwright install-deps + if: steps.playwright-cache.outputs.cache-hit == 'true' - name: Run playwright tests - working-directory: WebExample run: yarn test + env: + HOME: /root diff --git a/WebExample/tests/textManipulation.spec.ts b/WebExample/tests/textManipulation.spec.ts index f00b83c0..f807b7f0 100644 --- a/WebExample/tests/textManipulation.spec.ts +++ b/WebExample/tests/textManipulation.spec.ts @@ -63,7 +63,6 @@ test.describe('paste content', () => { await page.waitForTimeout(TEST_CONST.INPUT_HISTORY_DEBOUNCE_TIME_MS); await inputLocator.press(`${OPERATION_MODIFIER}+z`); - await page.waitForTimeout(TEST_CONST.INPUT_HISTORY_DEBOUNCE_TIME_MS); expect(await inputLocator.innerText()).toBe(PASTE_TEXT_FIRST); });