Skip to content

Commit

Permalink
Issue #2288. Use pressKeys for non-file inputs in comments-auth.js
Browse files Browse the repository at this point in the history
Also, bump the file upload timeout.
  • Loading branch information
miketaylr committed Apr 24, 2018
1 parent 23d8780 commit 682004b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/comments-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ registerSuite("Comments (auth)", {
})
.end()
.findByCssSelector("textarea.js-Comment-text")
.type("Today's date is " + new Date().toDateString())
.pressKeys("Today's date is " + new Date().toDateString())
.end()
// click the comment button
.findByCssSelector(".js-Issue-comment-button")
Expand Down Expand Up @@ -93,7 +93,7 @@ registerSuite("Comments (auth)", {
.findById("image")
.type("tests/fixtures/green_square.png")
.end()
.sleep(2000)
.sleep(3000)
.findByCssSelector(".js-Comment-text")
.getProperty("value")
.then(function(val) {
Expand All @@ -113,7 +113,7 @@ registerSuite("Comments (auth)", {
".js-Comment-text"
)
.findByCssSelector(".js-Comment-text")
.type("g")
.pressKeys("g")
.end()
.setFindTimeout(2000)
.findByCssSelector(".repo-container .issues-listing")
Expand All @@ -130,7 +130,7 @@ registerSuite("Comments (auth)", {
".js-Comment-text"
)
.findByCssSelector(".js-Comment-text")
.type("l")
.pressKeys("l")
.end()
.setFindTimeout(2000)
.findByCssSelector(".js-LabelEditorLauncher")
Expand Down

0 comments on commit 682004b

Please sign in to comment.