Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error, unrecognized expression on box-shadow value on exercise 4 #2

Open
Ingirorhaun opened this issue Jun 1, 2024 · 0 comments

Comments

@Ingirorhaun
Copy link

The last test of exercise 4 doesn't seem to work correctly. I keep getting a "Syntax error, unrecognized expression" on the box-shadow value, even though the css syntax is correct and the box shadow is visible on the element.

image

I'm not too familiar with Cypress, but if I rewrite the assertions in the test from:

 cy.get('header').should('exist').and('have.css', 'box-shadow').and('not.contain.value', 'none')
 cy.get('footer').should('exist').and('have.css', 'box-shadow').and('not.contain.value', 'none')

to

cy.get('header').should('exist').and('not.have.css', 'box-shadow', 'none')
cy.get('footer').should('exist').and('not.have.css', 'box-shadow', 'none')

it seems to fix the issue. It still checks that the property exists on the element, but fails if the value is 'none'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant