Merge pull request #16209 from keymanapp/fix/auto-test-cookies-and-paths

fix(web): fixes cookie unit-tests and path for OSK resources during testing
This commit is contained in:
Joshua Horton 2026-07-09 00:45:43 +07:00 committed by GitHub
commit 21c43452e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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, []);
});
});
});

View file

@ -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.