diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0364576bd1..09616560ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -197,22 +197,30 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Download artifacts + - name: Fetch gh-pages branch + run: | + git fetch origin gh-pages:gh-pages + mkdir gh-pages + git --work-tree=gh-pages checkout gh-pages -- . + + - name: Download Playwright artifacts uses: actions/download-artifact@v3 with: name: playwright-artifacts path: playwright-artifacts - - name: Setup Pages - uses: actions/configure-pages@v3 + - name: Copy new report + run: | + mkdir -p gh-pages/${{ github.event.pull_request.number }} + cp -r playwright-artifacts/playwright-report/* gh-pages/${{ github.event.pull_request.number }}/ - name: Deploy report to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./playwright-artifacts/playwright-report - destination_dir: ${{ github.event.pull_request.number }} - force_orphan: true + publish_dir: gh-pages + destination_dir: . + keep_history: false - name: Update PR description uses: actions/github-script@v6 diff --git a/tests/suites/tenant/queryEditor/queryEditor.test.ts b/tests/suites/tenant/queryEditor/queryEditor.test.ts index e9cd270d4e..96cb8db246 100644 --- a/tests/suites/tenant/queryEditor/queryEditor.test.ts +++ b/tests/suites/tenant/queryEditor/queryEditor.test.ts @@ -27,7 +27,7 @@ test.describe('Test Query Editor', async () => { await tenantPage.goto(pageQueryParams); }); - test('Settings dialog opens on Gear click and closes on Cancel', async ({page}) => { + test.only('Settings dialog opens on Gear click and closes on Cancel', async ({page}) => { const queryEditor = new QueryEditor(page); await queryEditor.clickGearButton();