Skip to content

Commit

Permalink
test: change Dates selected in test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmacp committed Jan 30, 2019
1 parent 433a0dd commit 378ba52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:functional:pre": "rm -rf test/functional/output && mkdir -p test/api/test/api/workspace && cp -R test/api/workspace/hooks test/api/test/api/workspace && cp test/api/workspace/db.template test/api/workspace/db",
"test:functional:run": "API_CLIENT_ID=testClient API_CLIENT_SECRET=testSecret API_HOST=localhost API_PORT=3004 NODE_ENV=test ./node_modules/codeceptjs/bin/codecept.js run --steps",
"test:functional:post": "",
"test:functional": "npm run test:functional:pre && npm run test:functional:run && npm run test:functional:post",
"test:functional": "npm run test:functional:pre && npm run test:functional:run",
"test:unit": "jest --coverage && node scripts/coverage/coverage.js",
"watch": "NODE_ENV=development npm-run-all --parallel watch:server watch:build",
"watch:build": "webpack --watch",
Expand Down
4 changes: 2 additions & 2 deletions test/functional/pages/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ module.exports = {
await I.fillField(this.locators.datePast, pastDateErr)
await I.click(this.locators.dateAfter)
await I.waitForVisible(this.locators.datePastError)
await I.fillField(this.locators.dateAfter, '2018/01/01 09:00')
await I.fillField(this.locators.dateAfter, '2017/12/31 09:00')
await I.click(this.locators.dateBefore)
await I.waitForVisible(this.locators.dateAfterError)
var dateBefore = moment(new Date()).format('YYYY/MM/DD 09:00')
Expand All @@ -322,7 +322,7 @@ module.exports = {
// console.log(pastDate)
await I.fillField(this.locators.datePast, pastDate)
await I.clearField(this.locators.dateAfter)
await I.fillField(this.locators.dateAfter, '2018/01/03 09:00')
await I.fillField(this.locators.dateAfter, '2018/01/02 23:00')
await I.clearField(this.locators.dateBefore)
await I.fillField(this.locators.dateBefore, '2017/12/31 09:00')
await I.click(this.locators.saveMenu)
Expand Down

0 comments on commit 378ba52

Please sign in to comment.