add test using xpath for example

This commit is contained in:
GleidsonDaniel 2022-04-04 15:53:21 -03:00 committed by Diego Mello
parent b6fc86ca13
commit 6f3b09275f
1 changed files with 7 additions and 0 deletions

View File

@ -10,4 +10,11 @@ describe('Verify initial app screen', () => {
const status = await $('~enter-workspace-url').getText();
expect(status).to.equal('mobile');
});
it('set workspace url and login', async () => {
await $('~enter-workspace-url').setValue('mobile');
await $('~new-server-view-button').click();
const register = await $('//android.widget.TextView[@content-desc="Create an account"]').getText();
expect(register).to.equal('Create an account');
});
});