mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
fix ui test code style
This commit is contained in:
parent
2e284d3842
commit
db331e94ee
1 changed files with 16 additions and 4 deletions
|
@ -176,14 +176,12 @@ module.exports = {
|
||||||
// Enable previously disabled autobake
|
// Enable previously disabled autobake
|
||||||
browser.click("#auto-bake-label");
|
browser.click("#auto-bake-label");
|
||||||
|
|
||||||
browser
|
browser.sendKeys("#input-text .cm-content", "1");
|
||||||
.sendKeys("#input-text .cm-content", "1");
|
|
||||||
|
|
||||||
browser.pause(500);
|
browser.pause(500);
|
||||||
|
|
||||||
// Make another change while the previous input is being baked
|
// Make another change while the previous input is being baked
|
||||||
browser
|
browser.sendKeys("#input-text .cm-content", "2");
|
||||||
.sendKeys("#input-text .cm-content", "2");
|
|
||||||
|
|
||||||
browser
|
browser
|
||||||
.waitForElementNotVisible("#stale-indicator")
|
.waitForElementNotVisible("#stale-indicator")
|
||||||
|
@ -670,6 +668,20 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
"Loading from URL": browser => {
|
"Loading from URL": browser => {
|
||||||
|
utils.clear(browser);
|
||||||
|
|
||||||
|
/* Side panel displays correct info */
|
||||||
|
utils.uploadFile(browser, "files/TowelDay.jpeg");
|
||||||
|
|
||||||
|
browser
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-toggle-shown")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-thumbnail")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-name")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-size")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-type")
|
||||||
|
.waitForElementVisible("#input-text .cm-file-details .file-details-loaded");
|
||||||
|
|
||||||
/* Complex deep link populates the input correctly (encoding, eol, input) */
|
/* Complex deep link populates the input correctly (encoding, eol, input) */
|
||||||
browser
|
browser
|
||||||
.urlHash("recipe=To_Base64('A-Za-z0-9%2B/%3D')&input=VGhlIHNoaXBzIGh1bmcgaW4gdGhlIHNreSBpbiBtdWNoIHRoZSBzYW1lIHdheSB0aGF0IGJyaWNrcyBkb24ndC4M&ienc=21866&oenc=1201&ieol=FF&oeol=PS")
|
.urlHash("recipe=To_Base64('A-Za-z0-9%2B/%3D')&input=VGhlIHNoaXBzIGh1bmcgaW4gdGhlIHNreSBpbiBtdWNoIHRoZSBzYW1lIHdheSB0aGF0IGJyaWNrcyBkb24ndC4M&ienc=21866&oenc=1201&ieol=FF&oeol=PS")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue