Skip to content

Commit

Permalink
revert to image
Browse files Browse the repository at this point in the history
  • Loading branch information
BrtqKr committed May 6, 2024
1 parent 7e28ce8 commit a702f31
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 0 additions & 1 deletion WebExample/tests/textManipulation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit a702f31

Please sign in to comment.