Skip to content

Commit

Permalink
docs(download.spec.js): add file type doc for each menu index clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Jan 11, 2022
1 parent aec126c commit af50f09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/specs/download.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
.moveToElement('.export-file-name input[type=text]', 0, 0)
.click('.download-format .v-select__selections')
.pause(1000)
.click({selector: '.menuable__content__active a', index: 0})
.click({selector: '.menuable__content__active a', index: 0})// index 0 = json
.click('.download')
.pause(1000)
.checkDownloadFileIsValid(fileName)
Expand All @@ -43,7 +43,7 @@ module.exports = {
.moveToElement('.export-file-name input[type=text]', 0, 0)
.click('.download-format .v-select__selections')
.pause(1000)
.click({selector: '.menuable__content__active a', index: 1})
.click({selector: '.menuable__content__active a', index: 1}) // index 1 = geojson
.click('.download')
.pause(1000)
.checkDownloadFileIsValid(fileName)
Expand All @@ -67,7 +67,7 @@ module.exports = {
.moveToElement('.export-file-name input[type=text]', 0, 0)
.click('.download-format .v-select__selections')
.pause(1000)
.click({selector: '.menuable__content__active a', index: 2})
.click({selector: '.menuable__content__active a', index: 2})// index 2 = ors-gpx
.click('.download')
.pause(1000)
.checkDownloadFileIsValid(fileName)
Expand All @@ -91,7 +91,7 @@ module.exports = {
.moveToElement('.export-file-name input[type=text]', 0, 0)
.click('.download-format .v-select__selections')
.pause(1000)
.click({selector: '.menuable__content__active a', index: 3})
.click({selector: '.menuable__content__active a', index: 3})// index 3 = standard gpx
.click('.download')
.pause(1000)
.checkDownloadFileIsValid(fileName)
Expand All @@ -115,7 +115,7 @@ module.exports = {
.moveToElement('.export-file-name input[type=text]', 0, 0)
.click('.download-format .v-select__selections')
.pause(1000)
.click({selector: '.menuable__content__active a', index: 4})
.click({selector: '.menuable__content__active a', index: 4}) // index 4 = kml
.click('.download')
.pause(1000)
.checkDownloadFileIsValid(fileName)
Expand Down

0 comments on commit af50f09

Please sign in to comment.