From 43afb39e56ab852aa79bea61009e4a256f0eac59 Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Wed, 30 Mar 2022 16:16:59 -0500 Subject: [PATCH] Added soft assertion for exampleImagery e2e (#5021) --- e2e/tests/plugins/imagery/exampleImagery.e2e.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/tests/plugins/imagery/exampleImagery.e2e.spec.js b/e2e/tests/plugins/imagery/exampleImagery.e2e.spec.js index fc22d82697..53c9c5c119 100644 --- a/e2e/tests/plugins/imagery/exampleImagery.e2e.spec.js +++ b/e2e/tests/plugins/imagery/exampleImagery.e2e.spec.js @@ -166,17 +166,17 @@ test.describe('Example Imagery', () => { // wait for zoom animation to finish await bgImageLocator.hover(); const zoomedInBoundingBox = await bgImageLocator.boundingBox(); - expect(zoomedInBoundingBox.height).toBeGreaterThan(initialBoundingBox.height); - expect(zoomedInBoundingBox.width).toBeGreaterThan(initialBoundingBox.width); + expect.soft(zoomedInBoundingBox.height).toBeGreaterThan(initialBoundingBox.height); + expect.soft(zoomedInBoundingBox.width).toBeGreaterThan(initialBoundingBox.width); await zoomResetBtn.click(); await bgImageLocator.hover(); const resetBoundingBox = await bgImageLocator.boundingBox(); - expect(resetBoundingBox.height).toBeLessThan(zoomedInBoundingBox.height); - expect(resetBoundingBox.width).toBeLessThan(zoomedInBoundingBox.width); + expect.soft(resetBoundingBox.height).toBeLessThan(zoomedInBoundingBox.height); + 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); });