Rocket.Chat.ReactNative/e2e/tests/onboarding/04-createuser.spec.ts

23 lines
868 B
TypeScript
Raw Normal View History

2023-02-16 12:47:05 +00:00
import { navigateToRegister } from '../../helpers/app';
2023-01-25 19:03:02 +00:00
import data from '../../data';
describe('Create user screen', () => {
beforeAll(async () => {
await device.launchApp({ permissions: { notifications: 'YES' }, delete: true });
await navigateToRegister();
});
describe('Usage', () => {
it('should register', async () => {
await element(by.id('register-view-name')).replaceText(data.registeringUser.username);
await element(by.id('register-view-username')).replaceText(data.registeringUser.username);
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-submit')).tap();
await waitFor(element(by.id('rooms-list-view')))
.toBeVisible()
.withTimeout(60000);
});
});
});