Remove login error test

This commit is contained in:
Diego Mello 2022-12-08 17:37:53 -03:00
parent e088d76724
commit 868bfb7a4c
1 changed files with 11 additions and 11 deletions

View File

@ -65,17 +65,17 @@ describe('Create user screen', () => {
// await element(by[textMatcher]('OK').and(by.type(alertButtonType))).tap(); // await element(by[textMatcher]('OK').and(by.type(alertButtonType))).tap();
// }); // });
it('should submit username already taken and raise error', async () => { // it('should submit username already taken and raise error', async () => {
await element(by.id('register-view-name')).replaceText(data.registeringUser.username); // await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.users.existing.username); // await element(by.id('register-view-username')).replaceText(data.users.existing.username);
await element(by.id('register-view-email')).replaceText(data.registeringUser.email); // await element(by.id('register-view-email')).replaceText(data.registeringUser.email);
await element(by.id('register-view-password')).replaceText(data.registeringUser.password); // await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
await element(by.id('register-view-submit')).tap(); // await element(by.id('register-view-submit')).tap();
await waitFor(element(by[textMatcher]('Username is already in use')).atIndex(0)) // await waitFor(element(by[textMatcher]('Username is already in use')).atIndex(0))
.toExist() // .toExist()
.withTimeout(10000); // .withTimeout(10000);
await element(by[textMatcher]('OK').and(by.type(alertButtonType))).tap(); // await element(by[textMatcher]('OK').and(by.type(alertButtonType))).tap();
}); // });
it('should register', async () => { it('should register', async () => {
await element(by.id('register-view-name')).replaceText(data.registeringUser.username); await element(by.id('register-view-name')).replaceText(data.registeringUser.username);