1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: CI: Disable accessibility scanner tests that cause a crash in CI (#12417)

This commit is contained in:
Henry Heino
2025-06-09 05:20:17 -07:00
committed by GitHub
parent 73a2075a69
commit 42f6a9d03d

View File

@@ -1,6 +1,5 @@
import { test, expect } from './util/test';
import MainScreen from './models/MainScreen';
import SettingsScreen from './models/SettingsScreen';
import AxeBuilder from '@axe-core/playwright';
import { Page } from '@playwright/test';
@@ -39,24 +38,25 @@ const expectNoViolations = async (page: Page) => {
};
test.describe('wcag', () => {
for (const tabName of ['General', 'Plugins']) {
test(`should not detect significant issues in the settings screen ${tabName} tab`, async ({ electronApp, mainWindow }) => {
const mainScreen = await new MainScreen(mainWindow).setup();
await mainScreen.waitFor();
await mainScreen.openSettings(electronApp);
// Should be on the settings screen
const settingsScreen = new SettingsScreen(mainWindow);
await settingsScreen.waitFor();
const tabLocator = settingsScreen.getTabLocator(tabName);
await tabLocator.click();
await expect(tabLocator).toBeFocused();
await expectNoViolations(mainWindow);
});
}
// Disabled due to random failure in CI:
// for (const tabName of ['General', 'Plugins']) {
// test(`should not detect significant issues in the settings screen ${tabName} tab`, async ({ electronApp, mainWindow }) => {
// const mainScreen = await new MainScreen(mainWindow).setup();
// await mainScreen.waitFor();
//
// await mainScreen.openSettings(electronApp);
//
// // Should be on the settings screen
// const settingsScreen = new SettingsScreen(mainWindow);
// await settingsScreen.waitFor();
//
// const tabLocator = settingsScreen.getTabLocator(tabName);
// await tabLocator.click();
// await expect(tabLocator).toBeFocused();
//
// await expectNoViolations(mainWindow);
// });
// }
test('should not detect significant issues in the main screen with an open note', async ({ mainWindow }) => {
const mainScreen = await new MainScreen(mainWindow).setup();