|
|
@ -54,6 +54,10 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo |
|
|
|
suppressNotFoundErrors: true, |
|
|
|
suppressNotFoundErrors: true, |
|
|
|
timeout: 60000 |
|
|
|
timeout: 60000 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
.waitForElementPresent({ |
|
|
|
|
|
|
|
selector: `//*[@data-id="tab-active" and contains(@title, "${name}")]`, |
|
|
|
|
|
|
|
locateStrategy: 'xpath', |
|
|
|
|
|
|
|
}) |
|
|
|
.setEditorValue(content.content) |
|
|
|
.setEditorValue(content.content) |
|
|
|
.getEditorValue((result) => { |
|
|
|
.getEditorValue((result) => { |
|
|
|
if(result != content.content) { |
|
|
|
if(result != content.content) { |
|
|
|