[ACS-11762] Automated MNT 25285 (#5190)

* [ACS-11762] Automated MNT 25285

* [ACS-11762] small refactoring

* [ACS-11762] more fixes for viewer tests

* [ACS-11762] NOSONAR added for type issue

* [ACS-11762] copilot review fixes 1

* [ACS-11762] copilot review fixes 2

* [ACS-11762] copilot review fixes 3

* [ACS-11762] review fixes 1

* [ACS-11762] race condition fixed
This commit is contained in:
Adam Świderski
2026-05-19 11:56:56 +02:00
committed by GitHub
parent 216c55a3fd
commit c67b4dc203
10 changed files with 63 additions and 42 deletions
@@ -48,7 +48,7 @@ test.describe('Special permissions', () => {
try {
await apiClientFactory.createUser({ username });
} catch (exception) {
if (JSON.parse(exception.message).error.statusCode !== 409) {
if (!String(exception).includes('409')) {
throw new Error(`----- beforeAll failed : ${exception}`);
}
}
@@ -49,7 +49,7 @@ test.describe('Recent Files', () => {
try {
await apiClientFactory.createUser({ username });
} catch (exception) {
if (JSON.parse(exception.message).error.statusCode !== 409) {
if (!String(exception).includes('409')) {
throw new Error(`----- beforeAll failed : ${exception}`);
}
}
@@ -48,7 +48,7 @@ test.describe('Shared Files', () => {
try {
await apiClientFactory.createUser({ username });
} catch (exception) {
if (JSON.parse(exception.message).error.statusCode !== 409) {
if (!String(exception).includes('409')) {
throw new Error(`----- beforeAll failed : ${exception}`);
}
}