diff --git a/.percy.yml b/.percy.yml index 975f1ca97bf1..076d5e621c4d 100644 --- a/.percy.yml +++ b/.percy.yml @@ -8,3 +8,4 @@ snapshot: discovery: allowed-hostnames: - 1.www.s81c.com + network-idle-timeout: 1000 diff --git a/e2e/test-utils/snapshot.js b/e2e/test-utils/snapshot.js index 879d267f8ffb..ee92e3fb2c1d 100644 --- a/e2e/test-utils/snapshot.js +++ b/e2e/test-utils/snapshot.js @@ -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`);