Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ✅ test for settings adaptiveHeight * ✅ test for settings arrows * ✅ test for settings asNavFor * ✅ test for settings autoplay * ✅ test for settings centerMode * ✅ test for settings centerPadding * ✅ test for settings className * ✅ test for settings dots * ✅ change test path as relative path(#53) close: #53 * ✅ missing focusOnSelect make test fail * ✅ settings className has been removed (#38) * ✅ add test for dotsClass * ✅ add test for draggable * ✅ add test for edgeFriction * 🎨 make readable test * ✅ add test for focusOnSelect * ✅ add test for infinite * ✅ add test for initialSlide * ✅ add test for pauseOnHover * ✅ add test for pauseOnDotsHover * ✅ add test for pauseOnFocus * ✅ add test for responsive * ✅ add test for rows * ✅ add test for swipe * ✅ add test for swipeToSlide * 🎨 make clear the line is the statement rather than expression * 🎨 refactor redundant code * ✅ add test for touchThreshold * 🎨 to be the same as settings seq * ✅ add test for api prev * ✅ add test for api next * ✅ add test for api goTo close: #34
- Loading branch information
1 parent
3a614c3
commit 6a10d9f
Showing
5 changed files
with
420 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
describe('APIs', () => { | ||
describe('prev', () => { | ||
it('should move the slide right', () => { | ||
cy.visit('/#/example/multiple') | ||
cy.window().then(window => window.carousel.prev()) | ||
cy.get('[data-index="8"]').should('be.visible') | ||
}) | ||
}) | ||
describe('next', () => { | ||
it('should move the slide left', () => { | ||
cy.visit('/#/example/multiple') | ||
cy.window().then(window => window.carousel.next()) | ||
cy.get('[data-index="3"]').should('be.visible') | ||
}) | ||
}) | ||
describe('goTo', () => { | ||
it('should move the given slide to current', () => { | ||
cy.visit('/#/example/multiple') | ||
cy.window().then(window => window.carousel.goTo(3)) | ||
cy.get('[data-index="3"]').should('be.visible') | ||
}) | ||
}) | ||
}) |
Oops, something went wrong.