Skip to content

Commit

Permalink
a11y: keep a11y disabled on executing cypress Calc tests
Browse files Browse the repository at this point in the history
This patch is a temporary workaround for fixing CI failures.
In fact on CI with a11y enabled cypress fails to load spreadsheets.

Signed-off-by: Marco Cecchetti <[email protected]>
Change-Id: Ic661358cd47600ec9c3a329bef361b8087483017
  • Loading branch information
mcecchetti committed Oct 27, 2023
1 parent 123bf5c commit 7c72082
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browser/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,13 @@ window.app = {
msg += ' spellOnline=' + spellOnline;
}

var isCalcTest =
global.docURL.includes('data/desktop/calc/') ||
global.docURL.includes('data/mobile/calc/') ||
global.docURL.includes('data/multiuser/calc/');

var accessibilityState = window.localStorage.getItem('accessibilityState') === 'true';
accessibilityState = accessibilityState || L.Browser.cypressTest;
accessibilityState = accessibilityState || (L.Browser.cypressTest && !isCalcTest);
msg += ' accessibilityState=' + accessibilityState;
}

Expand Down

0 comments on commit 7c72082

Please sign in to comment.