diff --git a/.github/workflows/playwright-e2e.yml b/.github/workflows/playwright-e2e.yml index 045ec36ead533..98de693ffcd20 100644 --- a/.github/workflows/playwright-e2e.yml +++ b/.github/workflows/playwright-e2e.yml @@ -58,6 +58,8 @@ jobs: with: node-version: ${{ steps.versions.outputs.nodejs }} + - run: sudo apt install faketime + - uses: actions/cache@v4 id: cache with: @@ -82,12 +84,14 @@ jobs: run: npm run playwright:install --prefix assets - run: mix deps.get - - run: mix do ecto.reset + + - name: Setup and seed database + run: faketime -f "@2024-10-01 00:00:00" mix do ecto.reset + - run: mix run -e "Tzdata.ReleaseUpdater.poll_for_update" - name: Run Playwright tests run: | - sudo apt install faketime faketime -f "@2024-10-01 00:00:00" npm run playwright --prefix assets - name: Commit new snapshots diff --git a/assets/js/app.js b/assets/js/app.js index ac96c343bce8c..30efa3d2f1aee 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -58,7 +58,7 @@ if (triggers.length > 0) { const changelogNotification = document.getElementById('changelog-notification') -if (changelogNotification) { +if (changelogNotification && false) { showChangelogNotification(changelogNotification) fetch('https://plausible.io/changes.txt', { headers: { 'Content-Type': 'text/plain' } }) diff --git a/assets/package.json b/assets/package.json index ed7065641588e..388e2191f4be0 100644 --- a/assets/package.json +++ b/assets/package.json @@ -11,8 +11,8 @@ "lint": "npm run eslint && npm run stylelint", "typecheck": "tsc --noEmit --pretty", "generate-types": "json2ts ../priv/json-schemas/query-api-schema.json ../assets/js/types/query-api.d.ts", - "playwright": "playwright test --update-snapshots", - "playwright:ui": "playwright test --ui --update-snapshots", + "playwright": "playwright test", + "playwright:ui": "playwright test --ui", "playwright:install": "playwright install chromium --with-deps" }, "dependencies": {