From 81b0c0b706902ab94426c266a08863cb78f0d933 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Mon, 6 Jul 2026 11:13:24 -0500 Subject: [PATCH] fix(web): fixes cookie unit-tests and path for OSK resources during testing Build-bot: skip build:web Test-bot: skip --- .../test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts | 6 +++--- web/src/test/auto/dom/cases/osk/events.tests.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts b/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts index aa447d361a..1e270480ba 100644 --- a/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts +++ b/web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts @@ -117,7 +117,7 @@ describe('CookieSerializer', function () { it('finds all matching cookies starting with TestCookie_', () => { const result = CookieSerializer.loadAllMatching(/^TestCookie_/); - assert.deepEqual(result, [ + assert.sameDeepMembers(result, [ { name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } }, { name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } } ]); @@ -125,7 +125,7 @@ describe('CookieSerializer', function () { it('finds all matching cookies containing Cookie', () => { const result = CookieSerializer.loadAllMatching(/Cookie/); - assert.deepEqual(result, [ + assert.sameDeepMembers(result, [ { name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } }, { name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } }, { name: NONMATCHING_COOKIE_ID, value: { NONMATCHING_COOKIE_ID: 'foobar3' } } @@ -134,7 +134,7 @@ describe('CookieSerializer', function () { it('returns empty array if no matching cookies', () => { const result = CookieSerializer.loadAllMatching(/^UnknownCookie_/); - assert.deepEqual(result, []); + assert.sameDeepMembers(result, []); }); }); }); \ No newline at end of file diff --git a/web/src/test/auto/dom/cases/osk/events.tests.ts b/web/src/test/auto/dom/cases/osk/events.tests.ts index 2453e8213d..d25c893596 100644 --- a/web/src/test/auto/dom/cases/osk/events.tests.ts +++ b/web/src/test/auto/dom/cases/osk/events.tests.ts @@ -17,7 +17,7 @@ const TestResources = { isEmbedded: false, pathConfig: { fonts: '', - resources: '/web/build/publish/debug' + resources: '/web/build/publish/debug/' }, hostDevice: device.coreSpec, allowHideAnimations: false // shortens timings.