diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index c1ca1a3bc..1a1062f36 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -33,7 +33,20 @@ jobs: - name: Change directory to e2e-react run: cd packages/e2e-react - - name: Install Playwright Browsers + - name: Get installed Playwright version + id: playwright-version + run: echo "::set-output name=version::$(yarn why --json @playwright/test | grep -h 'workspace:.' | jq --raw-output '.children[].locator' | sed -e 's/@playwright\/test@.*://')" + + - uses: actions/cache@v3 + id: playwright-cache + with: + path: '~/.cache/ms-playwright' + key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}' + restore-keys: | + ${{ runner.os }}-playwright- + + - name: Install Playwright's dependencies + if: steps.playwright-cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps - name: Run Playwright tests diff --git a/packages/e2e-react/src/App.tsx b/packages/e2e-react/src/App.tsx index 5be050dd0..c0ed6c74b 100644 --- a/packages/e2e-react/src/App.tsx +++ b/packages/e2e-react/src/App.tsx @@ -1,5 +1,5 @@ // @ts-expect-error no types served yet -import { EmbeddedChat } from "@embeddedchat/react"; +import { EmbeddedChat } from "@embeddedchat/react/dist/esm/index.js"; function App() { return (