Added soft assertion for exampleImagery e2e (#5021)
This commit is contained in:
@@ -166,17 +166,17 @@ test.describe('Example Imagery', () => {
|
|||||||
// wait for zoom animation to finish
|
// wait for zoom animation to finish
|
||||||
await bgImageLocator.hover();
|
await bgImageLocator.hover();
|
||||||
const zoomedInBoundingBox = await bgImageLocator.boundingBox();
|
const zoomedInBoundingBox = await bgImageLocator.boundingBox();
|
||||||
expect(zoomedInBoundingBox.height).toBeGreaterThan(initialBoundingBox.height);
|
expect.soft(zoomedInBoundingBox.height).toBeGreaterThan(initialBoundingBox.height);
|
||||||
expect(zoomedInBoundingBox.width).toBeGreaterThan(initialBoundingBox.width);
|
expect.soft(zoomedInBoundingBox.width).toBeGreaterThan(initialBoundingBox.width);
|
||||||
|
|
||||||
await zoomResetBtn.click();
|
await zoomResetBtn.click();
|
||||||
await bgImageLocator.hover();
|
await bgImageLocator.hover();
|
||||||
|
|
||||||
const resetBoundingBox = await bgImageLocator.boundingBox();
|
const resetBoundingBox = await bgImageLocator.boundingBox();
|
||||||
expect(resetBoundingBox.height).toBeLessThan(zoomedInBoundingBox.height);
|
expect.soft(resetBoundingBox.height).toBeLessThan(zoomedInBoundingBox.height);
|
||||||
expect(resetBoundingBox.width).toBeLessThan(zoomedInBoundingBox.width);
|
expect.soft(resetBoundingBox.width).toBeLessThan(zoomedInBoundingBox.width);
|
||||||
|
|
||||||
expect(resetBoundingBox.height).toEqual(initialBoundingBox.height);
|
expect.soft(resetBoundingBox.height).toEqual(initialBoundingBox.height);
|
||||||
expect(resetBoundingBox.width).toEqual(initialBoundingBox.width);
|
expect(resetBoundingBox.width).toEqual(initialBoundingBox.width);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user