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:
James Read
2024-08-08 21:46:46 +01:00
committed by GitHub
parent 8d839ee6ce
commit fab0264d9b
6 changed files with 100 additions and 90 deletions

View File

@@ -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