diff --git a/src/components/DashboardPage/EmptyState.js b/src/components/DashboardPage/EmptyState.js index 5891ad4e..f3ffe2b5 100644 --- a/src/components/DashboardPage/EmptyState.js +++ b/src/components/DashboardPage/EmptyState.js @@ -45,7 +45,7 @@ class EmptyState extends PureComponent { height="157" /> - {t('app:emptyState.dashboard.title')} + {t('app:emptyState.dashboard.title')} {t('app:emptyState.dashboard.desc')} @@ -54,7 +54,7 @@ class EmptyState extends PureComponent { primary style={{ minWidth: 120 }} onClick={this.handleInstallApp} - data-e2eId="dashboard_empty_OpenManager" + data-e2e="dashboard_empty_OpenManager" > {t('app:emptyState.dashboard.buttons.installApp')} @@ -62,7 +62,7 @@ class EmptyState extends PureComponent { outline style={{ minWidth: 120 }} onClick={() => openModal(MODAL_ADD_ACCOUNTS)} - data-e2eId="dashboard_empty_AddAccounts" + data-e2e="dashboard_empty_AddAccounts" > {t('app:emptyState.dashboard.buttons.addAccount')} diff --git a/src/components/Onboarding/OnboardingFooter.js b/src/components/Onboarding/OnboardingFooter.js index a1abaf6d..e9ee8cac 100644 --- a/src/components/Onboarding/OnboardingFooter.js +++ b/src/components/Onboarding/OnboardingFooter.js @@ -27,7 +27,7 @@ const OnboardingFooter = ({ {t('app:common.back')} diff --git a/src/components/SettingsPage/DevModeButton.js b/src/components/SettingsPage/DevModeButton.js index e4947f14..2d8c8c3e 100644 --- a/src/components/SettingsPage/DevModeButton.js +++ b/src/components/SettingsPage/DevModeButton.js @@ -27,7 +27,7 @@ class DevModeButton extends PureComponent { return ( - + ) } diff --git a/src/components/SettingsPage/index.js b/src/components/SettingsPage/index.js index 43b7c96d..30b1cedb 100644 --- a/src/components/SettingsPage/index.js +++ b/src/components/SettingsPage/index.js @@ -106,7 +106,7 @@ class SettingsPage extends PureComponent { return ( - + {t('app:settings.title')} diff --git a/src/components/TopBar/index.js b/src/components/TopBar/index.js index 780981c8..11b5c9b3 100644 --- a/src/components/TopBar/index.js +++ b/src/components/TopBar/index.js @@ -109,7 +109,7 @@ class TopBar extends PureComponent { )} - t('app:settings.title')} data-e2eId="setting_button"> + t('app:settings.title')} data-e2e="setting_button"> diff --git a/src/components/modals/Disclaimer.js b/src/components/modals/Disclaimer.js index f4acc488..fb493733 100644 --- a/src/components/modals/Disclaimer.js +++ b/src/components/modals/Disclaimer.js @@ -25,7 +25,7 @@ class DisclaimerModal extends PureComponent { name={MODAL_DISCLAIMER} render={({ onClose }) => ( - {t('app:disclaimerModal.title')} + {t('app:disclaimerModal.title')} @@ -34,7 +34,7 @@ class DisclaimerModal extends PureComponent {

{t('app:disclaimerModal.desc_2')}

- diff --git a/test-e2e/nav_to_settings.spec.js b/test-e2e/nav_to_settings.spec.js index 84a942fc..d2516b91 100644 --- a/test-e2e/nav_to_settings.spec.js +++ b/test-e2e/nav_to_settings.spec.js @@ -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, )