|
|
@ -55,7 +55,7 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo |
|
|
|
timeout: 60000 |
|
|
|
timeout: 60000 |
|
|
|
}) |
|
|
|
}) |
|
|
|
.waitForElementVisible({ |
|
|
|
.waitForElementVisible({ |
|
|
|
selector: `//*[@data-id='tab-active' and @data-path="${name}"]`, |
|
|
|
selector: `//*[@data-id='tab-active' and contains(@data-path, "${name}")]`, |
|
|
|
locateStrategy: 'xpath' |
|
|
|
locateStrategy: 'xpath' |
|
|
|
}) |
|
|
|
}) |
|
|
|
.setEditorValue(content.content) |
|
|
|
.setEditorValue(content.content) |
|
|
|