Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ concurrency:
cancel-in-progress: false

jobs:
security:
permissions:
contents: read
actions: read
security-events: write
uses: WireCatLabs/cli-core/.github/workflows/release-checks.yml@1183bfb970330989ad8acec917b14b7e6187de15

deploy:
needs: security
runs-on: ubuntu-latest
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
6 changes: 5 additions & 1 deletion tests/search-playground.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ for (const theme of ["light", "dark"]) {
await page.emulateMedia({ colorScheme: "light" })
await page.goto("/en/docs/search-playground")
await page.locator("#search-playground").waitFor()
if (theme === "dark") await page.locator(".theme-toggle:visible").first().click()
if (theme === "dark") {
const toggle = page.locator(".theme-toggle:visible").first()
await expect(toggle).toHaveAttribute("aria-label", "Switch to dark theme")
await toggle.click()
}
await expect(page.locator("html")).toHaveClass(theme === "dark" ? /dark/ : /light/)
const results = await new AxeBuilder({ page })
.include("#search-playground")
Expand Down
Loading