Created
August 15, 2017 18:29
-
-
Save brizental/1d3f333e7eee20f2b5634176d420ed18 to your computer and use it in GitHub Desktop.
Add a screenshot to a comment
This file contains hidden or 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
"Add a screenshot to a comment": async function() { | |
await FunctionalHelpers.openPage( | |
this, | |
url("/issues/100"), | |
".wc-Comment-body" | |
); | |
let input = await this.remote.findById("image"); | |
await input.type(require.toUrl("../fixtures/green_square.png")); | |
let textarea = await this.remote.findByCssSelector(".js-Comment-text"); | |
let text = await textarea.getProperty("value"); | |
assert.include( | |
text, | |
"[; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment