mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 08:56:29 +00:00
* enhance(ui): polish accent color details * fix(ui): inline code bg color for accent mode * fix: set page properties bg color the same as block properties * fix: plugins background color * fix: set the same width for keymap * fix: set limited height for settings modal * fix: page title color * fix: accent colors for bullets and guideline * fix: bullet hover background * fix: remove unnecessary background colors for onboarding * fix: clear notification since the beginning of e2e tests * chore: remove unstable page-rename test * fix: e2e tests * fix: reset whiteboard title to untitled if a page exists * fix: linked whiteboard --------- Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
23 lines
731 B
TypeScript
23 lines
731 B
TypeScript
import { test } from './fixtures'
|
|
import { createRandomPage } from './utils'
|
|
import { expect } from '@playwright/test'
|
|
import AxeBuilder from '@axe-core/playwright'
|
|
|
|
test('should not have any automatically detectable accessibility issues', async ({ page }) => {
|
|
try {
|
|
await page.waitForSelector('.notification-clear', { timeout: 10 })
|
|
page.click('.notification-clear')
|
|
} catch (error) {
|
|
}
|
|
|
|
await createRandomPage(page)
|
|
await page.waitForTimeout(2000)
|
|
const accessibilityScanResults = await new AxeBuilder({ page })
|
|
.withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'])
|
|
.disableRules(['meta-viewport'])
|
|
.setLegacyMode()
|
|
.analyze()
|
|
|
|
expect(accessibilityScanResults.violations).toEqual([]);
|
|
})
|