From 132c6e9763ff78c5f4d53770f5960e208289800a Mon Sep 17 00:00:00 2001 From: Ruchika Sinha <69535463+Ruchika4@users.noreply.github.com> Date: Fri, 5 Jan 2024 13:29:21 -0800 Subject: [PATCH] Update media.test.js --- test/blocks/media/media.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/blocks/media/media.test.js b/test/blocks/media/media.test.js index 47ffacd93e..28abd3c1b9 100644 --- a/test/blocks/media/media.test.js +++ b/test/blocks/media/media.test.js @@ -72,27 +72,27 @@ describe('media', () => { await setViewport({ width: 1200, height: 100 }); const qrCodeImg = medias[5].querySelector('img.qr-code-img'); const qrCTA = medias[5].querySelectorAll('.qr-button-container'); - expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).not.to.be.equal('none'); + expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).not.to.equal('none'); qrCTA.forEach((cta) => { - expect(window.getComputedStyle(cta).getPropertyValue('display')).to.be.equal('none'); + expect(window.getComputedStyle(cta).getPropertyValue('display')).to.equal('none'); }); }); it('mobile view has visibile google-play and app-store CTA and no qr code image', async () => { await setViewport({ width: 600, height: 100 }); const qrCodeImg = medias[5].querySelector('img.qr-code-img'); const qrCTA = medias[5].querySelectorAll('.qr-button-container'); - expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).to.be.equal('none'); + expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).to.equal('none'); qrCTA.forEach((cta) => { - expect(window.getComputedStyle(cta).getPropertyValue('display')).not.to.be.equal('none'); + expect(window.getComputedStyle(cta).getPropertyValue('display')).not.to.equal('none'); }); }); it('tablet view has visibile google-play and app-store CTA and no qr code image', async () => { await setViewport({ width: 1199, height: 100 }); const qrCodeImg = medias[5].querySelector('img.qr-code-img'); const qrCTA = medias[5].querySelectorAll('.qr-button-container'); - expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).to.be.equal('none'); + expect(window.getComputedStyle(qrCodeImg).getPropertyValue('display')).to.equal('none'); qrCTA.forEach((cta) => { - expect(window.getComputedStyle(cta).getPropertyValue('display')).not.to.be.equal('none'); + expect(window.getComputedStyle(cta).getPropertyValue('display')).not.to.equal('none'); }); }); });