Update the tests

pull/171/head
Hammad1007 2 years ago
parent eef17cd5c6
commit dd31fa374d

@ -34,6 +34,11 @@ describe('Project 4: Background Slider', () => {
it('Left arrow is clickable', () => {
cy.get('.fa-arrow-left ').should('be.visible').click()
})
it('Left arrow when clicked takes me to the previous image', () => {
cy.get('.fa-arrow-left ').should('be.visible').click()
cy.get('.slide').should('have.class', 'active').should('be.visible')
})
})
context('Right Arrow', () => {
@ -44,6 +49,11 @@ describe('Project 4: Background Slider', () => {
it('Right arrow is clickable', () => {
cy.get('.fa-arrow-right ').should('be.visible').click()
})
it('Right arrow when clicked takes me to the next image', () => {
cy.get('.fa-arrow-right ').should('be.visible').click()
cy.get('.slide').should('have.class', 'active').should('be.visible')
})
})
})
})

Loading…
Cancel
Save