Files
MyMobileAgent/app/e2e/first.e2e.js

28 lines
798 B
JavaScript

const { navigatePastSplash } = require('./helpers');
describe('App basic e2e', () => {
beforeAll(async () => {
await device.launchApp({ newInstance: true });
});
it('shows the landing splash screen', async () => {
// The landing screen shows a logo for 5 seconds before navigating
await waitFor(element(by.id('landing-logo')))
.toBeVisible()
.withTimeout(10000);
});
it('navigates to main tabs after the splash', async () => {
// Landing screen auto-navigates after 5s
await waitFor(element(by.text('Modèles')))
.toBeVisible()
.withTimeout(10000);
});
it('shows the Models sub-tabs after landing', async () => {
await waitFor(element(by.text('Modèles locaux')).atIndex(0))
.toBeVisible()
.withTimeout(5000);
});
});