Skip to content

Commit

Permalink
Merge pull request #5065 from rldhont/backport-5060-to-release_3_7
Browse files Browse the repository at this point in the history
[Backport release_3_7] Playwright - Fix some warnings about docstrings from the JavaScript IDE
  • Loading branch information
rldhont authored Dec 3, 2024
2 parents ab9065a + ca284a7 commit 86e35d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/end2end/playwright/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ async function NoErrors(page, checkLayerTreeView = true) {
/**
* CatchErrors function
* Some checks when the map is on error
* * @param {Page} page The page object
* * @param {int} layersInTreeView The number of layers to find in the treeview.
* @param {Page} page The page object
* @param {int} layersInTreeView The number of layers to find in the treeview.
*/
async function CatchErrors(page, layersInTreeView = 0) {
// Error
await expect(page.locator('p.error-msg')).toHaveCount(1);
await expect(page.locator('#switcher lizmap-treeview ul li')).toHaveCount(layersInTreeView);
await expect(page.locator('#switcher .lizmap-treeview ul li')).toHaveCount(layersInTreeView);
// Error message displayed
await expect(page.getByText('An error occurred while loading this map. Some necessary resources may temporari')).toBeVisible();
// Go back home link
Expand Down

0 comments on commit 86e35d4

Please sign in to comment.