Skip to content

Commit

Permalink
[Tests e2e] Axis orientation - wait for OpenLayers transition
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Mar 3, 2025
1 parent 41ba2c8 commit 0f458fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/end2end/playwright/axis_orientation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ test.describe('Axis Orientation',
const contentLength = await getMapResponse?.headerValue('Content-Length');
expect(parseInt(contentLength ? contentLength : '0')).toBeGreaterThan(5552);

// Wait for transition
await page.waitForTimeout(1000);

buffer = await page.screenshot({clip:{x:950/2-380/2, y:600/2-380/2, width:380, height:380}});
const bundeslanderByteLength = buffer.byteLength;
await expect(bundeslanderByteLength).toBeGreaterThan(blankByteLength);
Expand Down Expand Up @@ -142,6 +145,9 @@ test.describe('Axis Orientation',
// image size lesser than disorder axis
expect(parseInt(contentLength ? contentLength : '0')).toBeLessThan(240115);

// Wait for transition
await page.waitForTimeout(1000);

buffer = await page.screenshot({clip:{x:950/2-380/2, y:600/2-380/2, width:380, height:380}});
const judetByteLength = buffer.byteLength;
await expect(judetByteLength).toBeGreaterThan(blankByteLength);
Expand Down

0 comments on commit 0f458fb

Please sign in to comment.