diff --git a/packages/app/cypress/e2e/settings.cy.ts b/packages/app/cypress/e2e/settings.cy.ts index ccb20a6e8d88..908f5c61f758 100644 --- a/packages/app/cypress/e2e/settings.cy.ts +++ b/packages/app/cypress/e2e/settings.cy.ts @@ -27,19 +27,6 @@ describe('App: Settings', () => { cy.get('button').contains('Log In') }) - it('can reconfigure a project', () => { - cy.startAppServer('e2e') - cy.visitApp('settings') - cy.withCtx((ctx, o) => { - o.sinon.stub(ctx.actions.project, 'reconfigureProject') - }) - - cy.findByText('Reconfigure Project').click() - cy.withRetryableCtx((ctx) => { - expect(ctx.actions.project.reconfigureProject).to.have.been.called - }) - }) - describe('Cloud Settings', () => { it('shows the projectId section when there is a projectId', () => { cy.withCtx(async (ctx, o) => { diff --git a/packages/app/src/settings/SettingsContainer.cy.tsx b/packages/app/src/settings/SettingsContainer.cy.tsx index ce07f183d530..6638c6e27922 100644 --- a/packages/app/src/settings/SettingsContainer.cy.tsx +++ b/packages/app/src/settings/SettingsContainer.cy.tsx @@ -50,4 +50,11 @@ describe('', { viewportHeight: 800, viewportWidth: 900 }, ( cy.findByText(defaultMessages.settingsPage.projectId.title).should('not.exist') }) + + it('renders footer with CTA button', () => { + mountSettingsContainer() + cy.contains('p', defaultMessages.settingsPage.footer.text.replace('{testingType}', 'E2E')) + cy.contains('a', defaultMessages.settingsPage.footer.button) + .should('have.attr', 'href', defaultMessages.settingsPage.footer.buttonLink) + }) }) diff --git a/packages/app/src/settings/SettingsContainer.vue b/packages/app/src/settings/SettingsContainer.vue index b49c5c6ca768..013e72edd858 100644 --- a/packages/app/src/settings/SettingsContainer.vue +++ b/packages/app/src/settings/SettingsContainer.vue @@ -36,14 +36,14 @@

- {{ t('settingsPage.footer.text') }} + {{ footerText }}

@@ -51,8 +51,10 @@ diff --git a/packages/frontend-shared/src/locales/en-US.json b/packages/frontend-shared/src/locales/en-US.json index a69afa4323a4..270f869bf7a3 100644 --- a/packages/frontend-shared/src/locales/en-US.json +++ b/packages/frontend-shared/src/locales/en-US.json @@ -410,8 +410,9 @@ } }, "footer": { - "text": "You can reconfigure the settings for this project if you're experiencing issues with your Cypress configuration.", - "button": "Reconfigure Project" + "text": "You can reconfigure the {testingType} testing settings for this project if you're experiencing issues with your Cypress configuration.", + "button": "Configuration Guide", + "buttonLink": "https://docs.cypress.io/guides/references/configuration" } }, "runs": {