Skip to content

Commit 9a66f8f

Browse files
committed
Tests e2e Playwright: Enhancing treeview tests
1 parent e23b9b4 commit 9a66f8f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/end2end/playwright/treeview.spec.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ test.describe('Treeview', () => {
3232
return;
3333
});
3434
await page.goto(url);
35+
3536
// Wait for WMS GetCapabilities
36-
await getCapabilitiesWMSPromise;
37+
let getCapabilitiesWMSRequest = await getCapabilitiesWMSPromise;
38+
await getCapabilitiesWMSRequest.response();
3739

3840
// Wait for WMS GetMap
3941
// at least 2 GetMap requests are expected
@@ -280,7 +282,8 @@ test.describe('Treeview mocked', () => {
280282
await page.goto(url);
281283

282284
// Wait for WMS GetCapabilities
283-
await getCapabilitiesWMSPromise;
285+
let getCapabilitiesWMSRequest = await getCapabilitiesWMSPromise;
286+
await getCapabilitiesWMSRequest.response();
284287

285288
// Wait for WMS GetLegendGraphic
286289
// At least 2 GetLegendGraphic requests on 6
@@ -387,7 +390,8 @@ test.describe('Treeview mocked', () => {
387390
await page.goto(url);
388391

389392
// Wait for WMS GetCapabilities
390-
await getCapabilitiesWMSPromise;
393+
let getCapabilitiesWMSRequest = await getCapabilitiesWMSPromise;
394+
await getCapabilitiesWMSRequest.response();
391395

392396
// Wait for WMS GetMap
393397
// At least 2 GetMap requests

0 commit comments

Comments
 (0)