From bf06e9f6548a5139eaddf19605c5ebfeff12b4b3 Mon Sep 17 00:00:00 2001 From: cameronperera Date: Tue, 19 Aug 2025 10:50:01 -0500 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=92=8D=20update=20known=20a11y=20?= =?UTF-8?q?violations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/acceptance/authentication-test.js | 27 +++++++++++++++++++ .../projects/settings/index-test.js | 14 ++++++++++ 2 files changed, 41 insertions(+) diff --git a/ui/desktop/tests/acceptance/authentication-test.js b/ui/desktop/tests/acceptance/authentication-test.js index 75321171d..47494f09a 100644 --- a/ui/desktop/tests/acceptance/authentication-test.js +++ b/ui/desktop/tests/acceptance/authentication-test.js @@ -272,6 +272,15 @@ module('Acceptance | authentication', function (hooks) { }); test('signing out with running sessions renders signout modal', async function (assert) { + setRunOptions({ + rules: { + 'color-contrast': { + // [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2025-08-19 + enabled: false, + }, + }, + }); + this.ipcStub.withArgs('hasRunningSessions').returns(true); await visit(urls.authenticate.methods.global); @@ -294,6 +303,15 @@ module('Acceptance | authentication', function (hooks) { }); test('confirming signout via modal stops sessions and logs out user', async function (assert) { + setRunOptions({ + rules: { + 'color-contrast': { + // [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2025-08-19 + enabled: false, + }, + }, + }); + const stopAllSessions = this.ipcStub.withArgs('stopAll'); this.ipcStub.withArgs('hasRunningSessions').returns(true); @@ -318,6 +336,15 @@ module('Acceptance | authentication', function (hooks) { }); test('attempting to quit app when signout modal is present triggers the close sessions modal', async function (assert) { + setRunOptions({ + rules: { + 'color-contrast': { + // [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2025-08-19 + enabled: false, + }, + }, + }); + // We need to encapsulate the event listener inside a mocked window service to ensure // the entire event is torn down (including the mocked window), since "window" exists // globally across all tests, and we don't want tests impacting one another diff --git a/ui/desktop/tests/acceptance/projects/settings/index-test.js b/ui/desktop/tests/acceptance/projects/settings/index-test.js index 14d81167e..0360fa015 100644 --- a/ui/desktop/tests/acceptance/projects/settings/index-test.js +++ b/ui/desktop/tests/acceptance/projects/settings/index-test.js @@ -198,6 +198,20 @@ module('Acceptance | projects | settings | index', function (hooks) { }); test('confirming signout with running sessions stops sessions and logs out user', async function (assert) { + setRunOptions({ + rules: { + 'color-contrast': { + // [ember-a11y-ignore]: axe rule "color-contrast" automatically ignored on 2025-08-19 + enabled: false, + }, + + 'heading-order': { + // [ember-a11y-ignore]: axe rule "heading-order" automatically ignored on 2025-08-19 + enabled: false, + }, + }, + }); + const stopAllSessions = this.ipcStub.withArgs('stopAll'); this.ipcStub.withArgs('hasRunningSessions').returns(true);