From e51cf7ffdb545df78236ef1e0504234435c2d4f7 Mon Sep 17 00:00:00 2001 From: dem4ron Date: Fri, 23 Feb 2024 09:52:28 +0100 Subject: [PATCH] Repharse mentoring request prompts --- .../SolutionCommentTextArea.tsx | 2 +- .../TrackObjectivesTextArea.tsx | 4 +--- test/system/flows/edit_solution_test.rb | 2 +- .../system/flows/student_requests_mentorship_test.rb | 12 ++++++------ 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/SolutionCommentTextArea.tsx b/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/SolutionCommentTextArea.tsx index 5fb1a0028b..61c5497c58 100644 --- a/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/SolutionCommentTextArea.tsx +++ b/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/SolutionCommentTextArea.tsx @@ -6,7 +6,7 @@ export const SolutionCommentTextArea = React.forwardRef< >((_, ref) => (

Give your mentor a starting point for the conversation. This will be your diff --git a/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/TrackObjectivesTextArea.tsx b/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/TrackObjectivesTextArea.tsx index 94149ee96e..aaa4595485 100644 --- a/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/TrackObjectivesTextArea.tsx +++ b/app/javascript/components/student/mentoring-session/mentoring-request/MentoringRequestFormComponents/TrackObjectivesTextArea.tsx @@ -6,9 +6,7 @@ export const TrackObjectivesTextArea = React.forwardRef< { defaultValue: string; track: Pick } >(({ track, defaultValue }, ref) => (

- +

Tell our mentors a little about your programming background and what you're aiming to learn from {track.title}. diff --git a/test/system/flows/edit_solution_test.rb b/test/system/flows/edit_solution_test.rb index 78a3f60f85..d52bde8c63 100644 --- a/test/system/flows/edit_solution_test.rb +++ b/test/system/flows/edit_solution_test.rb @@ -196,7 +196,7 @@ class EditSolutionTest < ApplicationSystemTestCase refute_text "Checking for automated feedback" assert_text "No Immediate Feedback" click_on "Request code review" - assert_text "What are you hoping to learn from this track?" + assert_text "About you" input_1 = find("#request-mentoring-form-track-objectives") input_2 = find("#request-mentoring-form-solution-comment") diff --git a/test/system/flows/student_requests_mentorship_test.rb b/test/system/flows/student_requests_mentorship_test.rb index 07f5d9c699..70d5f07863 100644 --- a/test/system/flows/student_requests_mentorship_test.rb +++ b/test/system/flows/student_requests_mentorship_test.rb @@ -35,8 +35,8 @@ class StudentRequestsMentorship < ApplicationSystemTestCase first("button", text: "Select an exercise").click within(".m-select-exercise-for-mentoring") { click_on "Lasagna" } - fill_in "What are you hoping to learn from this track?", with: "I want to learn OOP." - fill_in "How can a mentor help you with this solution?", with: "I'm sorry but I have absolutely no idea." + fill_in "About you", with: "I want to learn OOP." + fill_in "About your solution", with: "I'm sorry but I have absolutely no idea." click_on "Submit mentoring request" end @@ -72,8 +72,8 @@ class StudentRequestsMentorship < ApplicationSystemTestCase first("button", text: "Select an exercise").click within(".m-select-exercise-for-mentoring") { click_on "Lasagna" } - fill_in "What are you hoping to learn from this track?", with: "12345678901234567890" - fill_in "How can a mentor help you with this solution?", with: "1234567890123456789" + fill_in "About you", with: "12345678901234567890" + fill_in "About your solution", with: "1234567890123456789" click_on "Submit mentoring request" @@ -83,8 +83,8 @@ class StudentRequestsMentorship < ApplicationSystemTestCase refute_text "Waiting on a mentor…" refute_text "12345678890123456789" - fill_in "What are you hoping to learn from this track?", with: "1234567890123456789" - fill_in "How can a mentor help you with this solution?", with: "12345678901234567890" + fill_in "About you", with: "1234567890123456789" + fill_in "About your solution", with: "12345678901234567890" click_on "Submit mentoring request"