mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 09:35:37 +00:00
feature: Cleanup execution dialog, and log display status. (#378)
* feature: Cleanup execution dialog, and log display status. * fmt: Remove empty block * cicd: Use ActionStatusDisplay in test * bugfix: missed promise * bugfix: missed promise * bugfix: Didnt return getText on ActionStatusDisplay
This commit is contained in:
@@ -28,13 +28,11 @@ export async function getRootAndWait() {
|
||||
}
|
||||
|
||||
export async function requireExecutionDialogStatus (webdriver, expected) {
|
||||
const domStatus = await webdriver.findElement(By.id('execution-dialog-status'))
|
||||
|
||||
// It seems that webdriver will not give us text if domStatus is hidden (which it will be until complete)
|
||||
await webdriver.executeScript('window.executionDialog.domExecutionDetails.hidden = false')
|
||||
|
||||
await webdriver.wait(new Condition('wait for action to be running', async function () {
|
||||
const actual = await domStatus.getText()
|
||||
const actual = await webdriver.executeScript('return window.executionDialog.domStatus.getText()')
|
||||
|
||||
if (actual === expected) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user