mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Fix Nightwatch test
This commit is contained in:
parent
463b2ce040
commit
ae20d82e1d
1 changed files with 4 additions and 12 deletions
|
@ -194,21 +194,13 @@ module.exports = {
|
||||||
.click(otherCat)
|
.click(otherCat)
|
||||||
.expect.element(genUUID).to.be.visible;
|
.expect.element(genUUID).to.be.visible;
|
||||||
|
|
||||||
// Drag and drop op into recipe
|
// Add op to recipe
|
||||||
|
/* mouseButtonUp drops wherever the actual cursor is, not necessarily in the right place,
|
||||||
|
so we can't test Sortable.js properly using Nightwatch. html-dnd doesn't work either.
|
||||||
|
Instead of relying on drag and drop, we double click on the op to load it. */
|
||||||
browser
|
browser
|
||||||
.getLocationInView(genUUID)
|
.getLocationInView(genUUID)
|
||||||
.moveToElement(genUUID, 10, 10)
|
.moveToElement(genUUID, 10, 10)
|
||||||
.mouseButtonDown("left")
|
|
||||||
.pause(100)
|
|
||||||
.useCss()
|
|
||||||
.moveToElement("#rec-list", 10, 10)
|
|
||||||
.waitForElementVisible(".sortable-ghost", 100)
|
|
||||||
.mouseButtonUp("left")
|
|
||||||
/* mouseButtonUp drops wherever the actual cursor is, not necessarily in the right place
|
|
||||||
so we can't test Sortable.js properly using Nightwatch. html-dnd doesn't work either.
|
|
||||||
Instead of relying on the drop, we double click on the op to load it. */
|
|
||||||
.useXpath()
|
|
||||||
.moveToElement(genUUID, 10, 10)
|
|
||||||
.doubleClick()
|
.doubleClick()
|
||||||
.useCss()
|
.useCss()
|
||||||
.waitForElementVisible(".operation .op-title", 1000)
|
.waitForElementVisible(".operation .op-title", 1000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue