Tighten up tests's "wait for app" check further

This commit is contained in:
Tim Perry
2025-07-08 16:12:49 +02:00
parent 69e6622952
commit 51715cd4b6
+3 -1
View File
@@ -154,7 +154,9 @@ describe('Test Android unpinning', function () {
// Wait until the app UI is actually loaded & visible on screen:
console.log("Waiting for app to load...");
console.log("App loaded:", await driver.$('android=new UiSelector().text("SSL Pinning Demo")').getText());
const titleText = driver.$('android=new UiSelector().text("SSL Pinning Demo")')
await titleText.waitForExist()
console.log("App loaded:", await titleText.getText());
}
const testButton = async (button: WebdriverIO.Element, expected: 'Success' | 'Failed' | '?') => {