Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Issue #1711. Test that "double image selection" works.
  • Loading branch information
Mike Taylor committed Aug 16, 2017
commit 992cff4dca7526a4a148265778589096d6a92751
26 changes: 26 additions & 0 deletions tests/functional/image-uploads-non-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,32 @@ define(
})
.end()
);
},

"double image select works": function() {
return FunctionalHelpers.openPage(this, url, ".wc-UploadForm-button")
.findById("image")
.type("tests/fixtures/green_square.png")
.sleep(1000)
.end()
.findByCssSelector(".js-image-upload-label .wc-UploadForm-button")
.click()
.sleep(1000)
.end()
.findById("image")
.type("tests/fixtures/green_square.png")
.end()
.sleep(1000)
.findByCssSelector(".js-image-upload-label")
.getAttribute("style")
.then(function(inlineStyle) {
assert.include(
inlineStyle,
"data:image/png;base64,iVBOR",
"Preview is shown"
);
})
.end();
}
});
}
Expand Down