Skip to content

Commit 2bc0d15

Browse files
committed
test: remove console log and increase delay after page load
1 parent 0565d87 commit 2bc0d15

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/templates.desktop.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ templates.forEach(({ name, path: templatePath, port }) => {
4747

4848
await page.waitForLoadState('networkidle');
4949

50-
await page.waitForTimeout(1000);
50+
await page.waitForTimeout(2000);
5151

5252
const formattedName = name.toLowerCase().replace(/\s/g, '-');
5353

@@ -77,8 +77,6 @@ templates.forEach(({ name, path: templatePath, port }) => {
7777
throw new Error(`Image dimensions do not match for ${name}`);
7878
}
7979

80-
console.log('=>>>>>>>>>>>>>>> isCIEnv', isCIEnv);
81-
8280
const diffImage = new PNG({ width: actualImage.width, height: actualImage.height });
8381
const mismatchedPixels = pixelmatch(
8482
actualImage.data,
@@ -104,7 +102,7 @@ templates.forEach(({ name, path: templatePath, port }) => {
104102

105103
test(`executes logic correctly in ${name} template`, async ({ page }) => {
106104
await page.goto(`http://localhost:${port}`);
107-
await page.waitForTimeout(1000);
105+
await page.waitForTimeout(2000);
108106

109107
await page.click('[data-testid="connect-wallet-button"]');
110108
const result = await page.locator('.modal-container-mobile');

tests/templates.mobile.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ templates.forEach(({ name, path: templatePath, port }) => {
4545
test(`renders ${name} template correctly on mobile`, async ({ page }, testInfo) => {
4646
await page.goto(`http://localhost:${port}`);
4747
await page.waitForLoadState('networkidle');
48-
await page.waitForTimeout(1000);
48+
await page.waitForTimeout(2000);
4949

5050
const formattedName = name.toLowerCase().replace(/\s/g, '-');
5151
const actualScreenshotPath = path.resolve(
@@ -98,7 +98,7 @@ templates.forEach(({ name, path: templatePath, port }) => {
9898

9999
test(`executes logic correctly in ${name} template`, async ({ page }) => {
100100
await page.goto(`http://localhost:${port}`);
101-
await page.waitForTimeout(1000);
101+
await page.waitForTimeout(2000);
102102

103103
await page.click('[data-testid="connect-wallet-button"]');
104104
const result = await page.locator('.modal-container-mobile');

0 commit comments

Comments
 (0)