-
Notifications
You must be signed in to change notification settings - Fork 230
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
Adding a Cypress test for the amp-img #1171
Conversation
I've put the blocked label onto this until #1153 has been merged as this test will fail otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added a comment to clarify something
cypress/integration/ampSpec.js
Outdated
const figure = getElement('figure').eq(0); | ||
figure.should('be.visible'); | ||
figure.within(() => { | ||
getElement('amp-img'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm does this make an assertion? getElement('amp-img')
could return null but as we're not checking its value, the tests would pass.
getElement('amp-img'); | |
getElement('amp-img').should('be.visible'); |
No longer blocked on #953. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks 👍
Resolves #953
This adds a Cypress test to make sure that the image that is rendered on the page is an
amp-img
.