diff --git a/integration-tests/DashboardPage.js b/integration-tests/DashboardPage.js index c6020aa2..24aed661 100644 --- a/integration-tests/DashboardPage.js +++ b/integration-tests/DashboardPage.js @@ -776,6 +776,13 @@ export class DashboardPage { .waitFor(); } + async showsBreakageFormSuccessScreen() { + await this.page.getByRole('heading', { name: 'Thank you!' }).waitFor(); + await this.page + .getByText('Your report helps make DuckDuckGo better for everyone!') + .waitFor(); + } + async clickingSuccessScreenClosesDashboard() { await this.page .getByRole('heading', { diff --git a/integration-tests/macos.spec-int.js b/integration-tests/macos.spec-int.js index 9c827205..bef6cfa4 100644 --- a/integration-tests/macos.spec-int.js +++ b/integration-tests/macos.spec-int.js @@ -96,6 +96,7 @@ test.describe('breakage form', () => { await dash.breakageFormIsVisible(); await dash.screenshot('screen-breakage-form.png'); await dash.submitFeedbackForm(); + await dash.showsBreakageFormSuccessScreen(); await dash.mocks.calledForSubmitBreakageForm({ category: 'layout', description: '' }); }); @@ -127,6 +128,8 @@ test.describe('breakage form', () => { await dash.selectsCategory('Something else', 'other'); await dash.breakageFormIsVisible(); await dash.submitOtherFeedbackFormWithDescription('something happened'); + await dash.screenshot('screen-breakage-form-success.png'); + await dash.showsBreakageFormSuccessScreen(); }); }); diff --git a/integration-tests/macos.spec-int.js-snapshots/screen-breakage-form-success-macos-darwin.png b/integration-tests/macos.spec-int.js-snapshots/screen-breakage-form-success-macos-darwin.png new file mode 100644 index 00000000..82d588f8 Binary files /dev/null and b/integration-tests/macos.spec-int.js-snapshots/screen-breakage-form-success-macos-darwin.png differ diff --git a/v2/screens/breakage-form-screen.jsx b/v2/screens/breakage-form-screen.jsx index bb047380..df325e31 100644 --- a/v2/screens/breakage-form-screen.jsx +++ b/v2/screens/breakage-form-screen.jsx @@ -208,7 +208,7 @@ function FormSent() { return (
{ns.report('thankYou.title')}
+{ns.report('yourReportWillHelpDesc.title', { newline: '\n' })}