From 6f3b09275f53f70f35a3fba42d1d11a439c59080 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Mon, 4 Apr 2022 15:53:21 -0300 Subject: [PATCH] add test using xpath for example --- appium/tests/specs/initial-app-sreen.e2e.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appium/tests/specs/initial-app-sreen.e2e.js b/appium/tests/specs/initial-app-sreen.e2e.js index 419f16cc1..fea2dd44a 100644 --- a/appium/tests/specs/initial-app-sreen.e2e.js +++ b/appium/tests/specs/initial-app-sreen.e2e.js @@ -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'); + }); });