diff --git a/tests/specs/app.forms.spec.ts b/tests/specs/app.forms.spec.ts index d80d82b..ba93ad4 100644 --- a/tests/specs/app.forms.spec.ts +++ b/tests/specs/app.forms.spec.ts @@ -14,7 +14,9 @@ describe("WebdriverIO and Appium, when interacting with form elements,", () => { it("should be able type in the input and validate the text", async () => { const text = "Hello, this is a demo app"; await FormScreen.input.setValue(text); - await expect(await FormScreen.inputTextResult).toContain(text); + await expect(FormScreen.inputTextResult).toHaveText( + expect.stringContaining(text) + ); /** * IMPORTANT!!