From 880753ce5872e23fe50f67a3515cff6b0164916c Mon Sep 17 00:00:00 2001 From: Chancellor Clark Date: Thu, 1 Aug 2024 11:10:15 -0400 Subject: [PATCH] test(core): update header visual regression test (#1201) * test(core): update header snapshot * test(core): wait for networkidle state in header test --- .../components/header.spec.ts | 3 ++- .../Header-1-tests-chromium-darwin.png | Bin 5490 -> 5422 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tests/visual-regression/components/header.spec.ts b/core/tests/visual-regression/components/header.spec.ts index 24d281adf..5ef1071d8 100644 --- a/core/tests/visual-regression/components/header.spec.ts +++ b/core/tests/visual-regression/components/header.spec.ts @@ -7,8 +7,9 @@ test('Header', async ({ page }) => { // Act const navigation = page.getByRole('navigation', { name: 'Main' }); - await navigation.waitFor(); + await page.waitForLoadState('networkidle'); // Assert + await expect(navigation).toBeInViewport(); await expect(navigation).toHaveScreenshot(); }); diff --git a/core/tests/visual-regression/components/header.spec.ts-snapshots/Header-1-tests-chromium-darwin.png b/core/tests/visual-regression/components/header.spec.ts-snapshots/Header-1-tests-chromium-darwin.png index 5aa82807052bb1a448a14078f6e200596d15588b..3e932099adb7caddf96265b089a08fc35c57f46f 100644 GIT binary patch literal 5422 zcmcIo_d8unxYm0@5WR;)Cwe%#L~ome5CkE5Z_(LX7bSuq$`)G-wk|~PB}(+@y?3@= z?&REm;okXSt$AkVSu^vM_kF(=simR#fPjVo4GryqvXTM>4GqHs^!f2H!1E%D76o4D zZV*K|w9-MkEi^RpO=SgHUGJ}ZUww6T$In~hz9l20>&Jp&uh}R_DXRECD;QhD3#MQ= zgh%M>QO-i7LfY~q!^sC)5D35eqnIS*hyjMGk{LV)haF2UyGK5(yTdJrdjIyeyg6gx zc0SlF{?YKk-A$|bSGWCCxAVF82PaeK4;RH^nealG@N)DO{O8cIWJ$0-;LF}e{T;i) zz2yQkA)Ab+$p4lE4mY!aPQ=~+PVuH||($Z3-?@`Fn>DDL| zmw0_`4dtO2?>Ia?P4oD1(&x{)3s#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