Fix test assertion

This commit is contained in:
Felipe Knorr Kuhn 2021-12-16 09:31:02 -08:00
parent 0d14c30892
commit bcbc60b456
No known key found for this signature in database
GPG Key ID: 79619B52BB097C1A

View File

@ -69,8 +69,10 @@ describe('Liquid', () => {
//TODO: Add proper IDs for these selectors
const firstRowSelector = '.container-xl > :nth-child(3) > div > :nth-child(1) > .table > tbody';
const thirdRowSelector = '.container-xl > :nth-child(3) > div > :nth-child(3)';
cy.get(firstRowSelector).invoke('css', 'width').then((firstRowWidth) => {
cy.get(thirdRowSelector).invoke('css', 'width').should('equal', firstRowWidth);
cy.get(firstRowSelector).invoke('css', 'width').then(firstRowWidth => {
cy.get(thirdRowSelector).invoke('css', 'width').then(thirdRowWidth => {
expect(parseInt(firstRowWidth)).to.be.lessThan(parseInt(thirdRowWidth));
});
});
});