Skip to content

Commit

Permalink
fix end2end modules line count
Browse files Browse the repository at this point in the history
  • Loading branch information
nworr committed Sep 30, 2024
1 parent ca3b7f5 commit e622035
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/end2end/playwright/server-information.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ test.describe('Server information', () => {
await expect(await lwcRow.locator('td').innerText()).not.toEqual('');
}
// Check that Lizmap modules contains 2 lines (header and 1 module lizmapdemo)
const modulesRows = page.locator('#lizmap_server_information table.table-lizmap-modules tr:nth-child(1n+2)')
const modulesHeadRows = page.locator('#lizmap_server_information table.table-lizmap-modules thead tr');
await expect(modulesHeadRows).toHaveCount(1);
const modulesRows = page.locator('#lizmap_server_information table.table-lizmap-modules tbody tr');
await expect(modulesRows).toHaveCount(1);
for (const row of await modulesRows.all()) {
await modulesRows.scrollIntoViewIfNeeded();
Expand Down

0 comments on commit e622035

Please sign in to comment.