-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1647 Remove PhantomJS from E2E test, and use Chrom Headless Webdriver #1648
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ module.exports = { | |
.dblClick('.todo:nth-child(1) label') | ||
.assert.count('.todo.editing', 1) | ||
.assert.focused('.todo:nth-child(1) .edit') | ||
.clearValue('.todo:nth-child(1) .edit') | ||
deleteValue('.todo:nth-child(1) .edit', 'test2') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
So, I went ahead and created |
||
.setValue('.todo:nth-child(1) .edit', 'edited!') | ||
.click('footer') // blur | ||
.assert.count('.todo.editing', 0) | ||
|
@@ -114,14 +114,15 @@ module.exports = { | |
// editing triggered by enter | ||
browser | ||
.dblClick('.todo label') | ||
deleteValue('.todo:nth-child(1) .edit', 'edited!') | ||
.enterValue('.todo:nth-child(1) .edit', 'edited again!') | ||
.assert.count('.todo.editing', 0) | ||
.assert.containsText('.todo:nth-child(1) label', 'edited again!') | ||
|
||
// cancel | ||
browser | ||
.dblClick('.todo label') | ||
.clearValue('.todo:nth-child(1) .edit') | ||
deleteValue('.todo:nth-child(1) .edit', 'edited again!') | ||
.setValue('.todo:nth-child(1) .edit', 'edited!') | ||
.trigger('.todo:nth-child(1) .edit', 'keyup', 27) | ||
.assert.count('.todo.editing', 0) | ||
|
@@ -130,6 +131,7 @@ module.exports = { | |
// empty value should remove | ||
browser | ||
.dblClick('.todo label') | ||
deleteValue('.todo:nth-child(1) .edit', 'edited again!') | ||
.enterValue('.todo:nth-child(1) .edit', ' ') | ||
.assert.count('.todo', 3) | ||
|
||
|
@@ -150,5 +152,9 @@ module.exports = { | |
.moveToElement('.todo:nth-child(' + n + ')', 10, 10) | ||
.click('.todo:nth-child(' + n + ') .destroy') | ||
} | ||
|
||
function deleteValue (el, text) { | ||
return browser.setValue(el, text.split('').map(() => '\u0008')) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to change this because test was failing... Not sure why.