verdnatura-chat/appium/tests/specs/initial-app-sreen.e2e.js

21 lines
643 B
JavaScript
Raw Normal View History

const { expect } = require('chai');
describe('Verify initial app screen', () => {
beforeEach(() => {
driver.launchApp();
});
it('set workspace url', async () => {
2022-04-08 13:54:10 +00:00
await $('~new-server-view-input').setValue('mobile');
const status = await $('~new-server-view-input').getText();
expect(status).to.equal('mobile');
});
2022-04-04 18:53:21 +00:00
it('set workspace url and login', async () => {
2022-04-08 13:54:10 +00:00
await $('~new-server-view-input').setValue('mobile');
2022-04-04 18:53:21 +00:00
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');
});
});