From 9c2f198b1ccfbfcf5a65ec2c1faffd53afb44e9a Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 9 Nov 2022 15:27:06 -0800 Subject: [PATCH] Fix for app component test --- packages/app/src/specs/SpecItem.cy.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/specs/SpecItem.cy.tsx b/packages/app/src/specs/SpecItem.cy.tsx index 1fa303840050..a1313a4e0bd9 100644 --- a/packages/app/src/specs/SpecItem.cy.tsx +++ b/packages/app/src/specs/SpecItem.cy.tsx @@ -22,7 +22,7 @@ describe('SpecItem', () => { const parentColor = getComputedStyle($el.parent()[0]).color const highlightedElementColor = getComputedStyle($el[0]).color - cy.wrap(highlightedElementColor).should('not.equal', parentColor) + expect(highlightedElementColor).not.to.equal(parentColor) }) }) @@ -35,7 +35,7 @@ describe('SpecItem', () => { const parentColor = getComputedStyle($el.parent()[0]).color const highlightedElementColor = getComputedStyle($el[0]).color - cy.wrap(highlightedElementColor).should('equal', parentColor) + expect(highlightedElementColor).to.equal(parentColor) }) })