|
|
@ -28,45 +28,36 @@ describe('Application launch', () => { |
|
|
|
expect(title).toEqual('Ledger Live') |
|
|
|
await app.client.waitUntilWindowLoaded() |
|
|
|
await app.client.pause(2000) |
|
|
|
/* await app.client.waitUntil(function(){ |
|
|
|
return app.client.getText('//*[@id="app"]/div/div/div/div[1]/div/div/div[3]/div[1]/div[1]/div[1]/div[1]') === 'Technical data *' |
|
|
|
}, 2000, 'Test', 200) |
|
|
|
*/ |
|
|
|
|
|
|
|
// Post Onboarding
|
|
|
|
const title_onboarding = await app.client.getText('[data-e2eId=onboarding_title]') |
|
|
|
const title_onboarding = await app.client.getText('[data-e2e=onboarding_title]') |
|
|
|
expect(title_onboarding).toEqual('Analytics and bug reports') |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_Start.png') |
|
|
|
await app.client.click('[data-e2eId=continue_button]') |
|
|
|
await app.client.click('[data-e2e=continue_button]') |
|
|
|
await app.client.pause(1000) |
|
|
|
|
|
|
|
const title_finish = await app.client.getText('[data-e2eId=finish_title]') |
|
|
|
const title_finish = await app.client.getText('[data-e2e=finish_title]') |
|
|
|
expect(title_finish).toEqual('Your device is ready!') |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_Finish.png') |
|
|
|
await app.client.click('[data-e2eId=continue_button]') |
|
|
|
await app.client.click('[data-e2e=continue_button]') |
|
|
|
await app.client.pause(1000) |
|
|
|
|
|
|
|
const title_disclaimer = await app.client.getText('[data-e2eId=disclaimer_title]') |
|
|
|
const title_disclaimer = await app.client.getText('[data-e2e=disclaimer_title]') |
|
|
|
expect(title_disclaimer).toEqual('Trade safely') |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_Disclaimer.png') |
|
|
|
await app.client.click('[data-e2eId=continue_button]') |
|
|
|
await app.client.click('[data-e2e=continue_button]') |
|
|
|
await app.client.pause(1000) |
|
|
|
|
|
|
|
// Dashboard EmptyState
|
|
|
|
const title_dashboard_empty = await app.client.getText('[data-e2eId=dashboard_empty_title]') |
|
|
|
const title_dashboard_empty = await app.client.getText('[data-e2e=dashboard_empty_title]') |
|
|
|
expect(title_dashboard_empty).toEqual('Add accounts to your portfolio') |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_emptyState.png') |
|
|
|
|
|
|
|
// Open Settings
|
|
|
|
await app.client.click('[data-e2eId=setting_button]') |
|
|
|
await app.client.click('[data-e2e=setting_button]') |
|
|
|
await app.client.pause(1000) |
|
|
|
const title_settings = await app.client.getText('[data-e2eId=settings_title]') |
|
|
|
const title_settings = await app.client.getText('[data-e2e=settings_title]') |
|
|
|
expect(title_settings).toEqual('Settings') |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_settings.png') |
|
|
|
|
|
|
|
// DevMode ON
|
|
|
|
await app.client.click('[data-e2eId=devMode_button]') |
|
|
|
await app.client.click('[data-e2e=devMode_button]') |
|
|
|
await app.client.pause(500) |
|
|
|
await app.client.saveScreenshot('./test-e2e/snap_settings_devMode.png') |
|
|
|
}, |
|
|
|
TIMEOUT, |
|
|
|
) |
|
|
|