diff --git a/e2e/tests/onboarding/07-server-history.spec.js b/e2e/tests/onboarding/07-server-history.spec.js index fc1d6af9c..e9d32067f 100644 --- a/e2e/tests/onboarding/07-server-history.spec.js +++ b/e2e/tests/onboarding/07-server-history.spec.js @@ -26,7 +26,8 @@ describe('Server history', () => { it('should tap on a server history and navigate to login', async() => { await element(by.id(`server-history-${ data.server }`)).tap(); await waitFor(element(by.id('login-view'))).toBeVisible().withTimeout(5000); - await expect(element(by.id('login-view-email'))).toHaveText(data.users.regular.username); + await expect(element(by.text(data.users.regular.username).withAncestor(by.id('login-view-email')))); + // await expect(element(by.id('login-view-email'))).toHaveText(data.users.regular.username); }); it('should delete server from history', async() => {