Skip to content

Commit b8ef310

Browse files
4manasamanasa
andauthored
fixed the playwright test issue (#194)
Co-authored-by: manasa <[email protected]>
1 parent 911bc75 commit b8ef310

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

tests/e2e/DigV2/ComplexFields/CaseReference.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const config = require("../../../config");
66
const common = require("../../../common");
77

88
test.beforeEach(async ({ page }) => {
9-
await page.setViewportSize({ width: 1920, height: 1080 });
10-
await page.goto("http://localhost:3500/portal");
9+
await page.setViewportSize({ width: 1920, height: 1280 });
10+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
1111
});
1212

1313
test.describe("E2E test", () => {
@@ -54,7 +54,7 @@ test.describe("E2E test", () => {
5454
queryCase = await page.locator('mat-list-item[id="case-list-item"] > span:has-text("Query")');
5555
await queryCase.click();
5656

57-
modal = page.locator('div[id="dialog"]');
57+
modal = await page.locator('div[id="dialog"]');
5858

5959
await modal.locator("input").type(name);
6060
await modal.locator('button:has-text("submit")').click();

tests/e2e/DigV2/ComplexFields/CaseView.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const caseHistoryTabVisible = true;
1313

1414
test.beforeEach(async ({ page }) => {
1515
await page.setViewportSize({ width: 1920, height: 1080 });
16-
await page.goto("http://localhost:3500/portal");
16+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
1717
});
1818

1919
test.describe("E2E test", () => {

tests/e2e/DigV2/ComplexFields/EmbeddedData.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require("../../../common");
44

55
test.beforeEach(async ({ page }) => {
66
await page.setViewportSize({ width: 1920, height: 1080 });
7-
await page.goto("http://localhost:3500/portal");
7+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
88
});
99

1010
test.describe("E2E test", () => {

tests/e2e/DigV2/ComplexFields/Query.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const common = require("../../../common");
77

88
test.beforeEach(async ({ page }) => {
99
await page.setViewportSize({ width: 1920, height: 1080 });
10-
await page.goto("http://localhost:3500/portal");
10+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
1111
});
1212

1313
test.describe("E2E test", () => {

tests/e2e/DigV2/ComplexFields/UserReference.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const common = require("../../../common");
77

88
test.beforeEach(async ({ page }) => {
99
await page.setViewportSize({ width: 1920, height: 1080 });
10-
await page.goto("http://localhost:3500/portal");
10+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
1111
});
1212

1313
test.describe("E2E test", () => {

tests/e2e/MediaCo/embedded.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require("../../common");
33

44
test.beforeEach(async ({ page }) => {
55
await page.setViewportSize({ width: 1920, height: 1080 });
6-
await page.goto("http://localhost:3500/embedded");
6+
await page.goto('http://localhost:3500/embedded', { waitUntil: 'networkidle' });
77
});
88

99
test.describe("E2E test", () => {

tests/e2e/MediaCo/portal.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const endpoints = require("../../../sdk-config.json");
66

77
test.beforeEach(async ({ page }) => {
88
await page.setViewportSize({ width: 1920, height: 1080 });
9-
await page.goto("http://localhost:3500/portal");
9+
await page.goto('http://localhost:3500/portal', { waitUntil: 'networkidle' });
1010
});
1111
let caseID;
1212
test.describe("E2E test", () => {

0 commit comments

Comments
 (0)