diff --git a/features/step-definitions/login.ts b/features/step-definitions/login.ts index 5d4dbf0..25f7706 100644 --- a/features/step-definitions/login.ts +++ b/features/step-definitions/login.ts @@ -12,5 +12,5 @@ When(/^I login with (\w+) and (.+)$/, async (username, password) => { }); Then(/^I redirected to the inventory page with title (.*)$/, async (title) => { - await expect(InventoryPage.productsTitle.getText()).toEqual(title); + await expect(await (await InventoryPage.productsTitle).getText()).toEqual(title); }); \ No newline at end of file