Skip to content

Commit

Permalink
test(percy): snap 2 widths on white theme, config network-idle-timeout (
Browse files Browse the repository at this point in the history
#18416)

* test: testing if percy will catch that

* fix: fixed media

* test(percy): snap 2 widths on white theme, config network-idle-timeout

* chore: remove test code

---------

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
guidari and tay1orjones authored Jan 24, 2025
1 parent 5ec40d6 commit 8acd725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ snapshot:
discovery:
allowed-hostnames:
- 1.www.s81c.com
network-idle-timeout: 1000
2 changes: 1 addition & 1 deletion e2e/test-utils/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function snapshot(page, context) {
* This configuration overrides any global setting for `widths` in .percy.yml or otherwise.
* See https://github.com/carbon-design-system/carbon/issues/14779
*/
const widths = context.themes === 'white' ? [1366, 360] : [1366];
const widths = context.theme === 'white' ? [1366, 360] : [1366];

if (process.env.ENABLE_LOCAL_SNAPSHOTS) {
expect(await page.screenshot()).toMatchSnapshot(`${id}.png`);
Expand Down

0 comments on commit 8acd725

Please sign in to comment.