diff --git a/cypress/e2e/42-nps-survey.cy.ts b/cypress/e2e/42-nps-survey.cy.ts index aeddc9452d..b3140aa608 100644 --- a/cypress/e2e/42-nps-survey.cy.ts +++ b/cypress/e2e/42-nps-survey.cy.ts @@ -3,8 +3,9 @@ import { clearNotifications } from '../pages/notifications'; import { getNpsSurvey, getNpsSurveyClose, - getNpsSurveyEmail, + getNpsSurveyFeedback, getNpsSurveyRatings, + getNpsSurveySubmit, } from '../pages/npsSurvey'; import { WorkflowPage } from '../pages/workflow'; @@ -22,7 +23,7 @@ describe('NpsSurvey', () => { cy.signin(INSTANCE_ADMIN); }); - it('shows nps survey to recently activated user and can submit email ', () => { + it('shows nps survey to recently activated user and can submit feedback ', () => { cy.intercept('/rest/settings', { middleware: true }, (req) => { req.on('response', (res) => { if (res.body.data) { @@ -56,8 +57,8 @@ describe('NpsSurvey', () => { getNpsSurveyRatings().find('button').should('have.length', 11); getNpsSurveyRatings().find('button').first().click(); - getNpsSurveyEmail().find('input').type('test@n8n.io'); - getNpsSurveyEmail().find('button').click(); + getNpsSurveyFeedback().find('textarea').type('n8n is the best'); + getNpsSurveySubmit().find('button').click(); // test that modal does not show up again until 6 months later workflowPage.actions.visit(true, NOW + ONE_DAY); diff --git a/cypress/pages/npsSurvey.ts b/cypress/pages/npsSurvey.ts index b68d33797d..295661b32c 100644 --- a/cypress/pages/npsSurvey.ts +++ b/cypress/pages/npsSurvey.ts @@ -6,7 +6,8 @@ export const getNpsSurvey = () => cy.getByTestId('nps-survey-modal'); export const getNpsSurveyRatings = () => cy.getByTestId('nps-survey-ratings'); -export const getNpsSurveyEmail = () => cy.getByTestId('nps-survey-email'); +export const getNpsSurveyFeedback = () => cy.getByTestId('nps-survey-feedback'); +export const getNpsSurveySubmit = () => cy.getByTestId('nps-survey-feedback-button'); export const getNpsSurveyClose = () => cy.getByTestId('nps-survey-modal').find('button.el-drawer__close-btn'); diff --git a/packages/frontend/@n8n/i18n/src/locales/en.json b/packages/frontend/@n8n/i18n/src/locales/en.json index 76a942959e..ca7445585c 100644 --- a/packages/frontend/@n8n/i18n/src/locales/en.json +++ b/packages/frontend/@n8n/i18n/src/locales/en.json @@ -1774,14 +1774,13 @@ "pushConnection.executionError": "There was a problem executing the workflow{error}", "pushConnection.executionError.openNode": "Open errored node", "pushConnection.executionError.details": "
{details}", - "prompts.productTeamMessage": "Our product team will get in touch personally", "prompts.npsSurvey.recommendationQuestion": "How likely are you to recommend n8n to a friend or colleague?", "prompts.npsSurvey.greatFeedbackTitle": "Great to hear! Can we reach out to see how we can make n8n even better for you?", "prompts.npsSurvey.defaultFeedbackTitle": "Thanks for your feedback! We'd love to understand how we can improve. Can we reach out?", + "prompts.npsSurvey.feedbackQuestionTitle": "Thank you! Why did you choose this score?", "prompts.npsSurvey.notLikely": "Not likely", "prompts.npsSurvey.veryLikely": "Very likely", "prompts.npsSurvey.send": "Send", - "prompts.npsSurvey.yourEmailAddress": "Your email address", "prompts.npsSurvey.reviewUs": "If you’d like to help even more, leave us a review on G2.", "prompts.npsSurvey.thanks": "Thanks for your feedback", "renameAction.emptyName.message": "Please enter a name, or press 'esc' to go back to the old one", diff --git a/packages/frontend/editor-ui/src/components/NpsSurvey.vue b/packages/frontend/editor-ui/src/components/NpsSurvey.vue index 589c3e754b..0513790554 100644 --- a/packages/frontend/editor-ui/src/components/NpsSurvey.vue +++ b/packages/frontend/editor-ui/src/components/NpsSurvey.vue @@ -1,5 +1,5 @@