Skip to content

Commit 21c4345

Browse files
authored
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
2 parents fcf8988 + 81b0c0b commit 21c4345

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

web/src/test/auto/dom/cases/dom-utils/cookieSerializer.tests.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ describe('CookieSerializer', function () {
117117

118118
it('finds all matching cookies starting with TestCookie_', () => {
119119
const result = CookieSerializer.loadAllMatching(/^TestCookie_/);
120-
assert.deepEqual(result, [
120+
assert.sameDeepMembers(result, [
121121
{ name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } },
122122
{ name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } }
123123
]);
124124
});
125125

126126
it('finds all matching cookies containing Cookie', () => {
127127
const result = CookieSerializer.loadAllMatching(/Cookie/);
128-
assert.deepEqual(result, [
128+
assert.sameDeepMembers(result, [
129129
{ name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } },
130130
{ name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } },
131131
{ name: NONMATCHING_COOKIE_ID, value: { NONMATCHING_COOKIE_ID: 'foobar3' } }
@@ -134,7 +134,7 @@ describe('CookieSerializer', function () {
134134

135135
it('returns empty array if no matching cookies', () => {
136136
const result = CookieSerializer.loadAllMatching(/^UnknownCookie_/);
137-
assert.deepEqual(result, []);
137+
assert.sameDeepMembers(result, []);
138138
});
139139
});
140140
});

web/src/test/auto/dom/cases/osk/events.tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const TestResources = {
1717
isEmbedded: false,
1818
pathConfig: {
1919
fonts: '',
20-
resources: '/web/build/publish/debug'
20+
resources: '/web/build/publish/debug/'
2121
},
2222
hostDevice: device.coreSpec,
2323
allowHideAnimations: false // shortens timings.

0 commit comments

Comments
 (0)