Skip to content

Commit 9393a16

Browse files
committed
Expand NTP screenshot tests
1 parent 300c913 commit 9393a16

File tree

67 files changed

+365
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+365
-188
lines changed

special-pages/pages/new-tab/integration-tests/new-tab.page.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,13 @@ export class NewtabPage {
123123
}
124124

125125
for (const [key, value] of Object.entries(additional || {})) {
126-
searchParams.set(key, value);
126+
if (Array.isArray(value)) {
127+
for (const item of value) {
128+
searchParams.append(key, item);
129+
}
130+
} else {
131+
searchParams.set(key, value);
132+
}
127133
}
128134

129135
// eslint-disable-next-line no-undef

special-pages/pages/new-tab/integration-tests/new-tab.screenshots.spec.js

Lines changed: 358 additions & 187 deletions
Large diffs are not rendered by default.
91.8 KB
50.9 KB
51.7 KB

0 commit comments

Comments
 (0)