Skip to content

Commit

Permalink
Merge pull request #2216 from ministryofjustice/fix-build
Browse files Browse the repository at this point in the history
use 2024 date so build fix lasts longer
  • Loading branch information
nickdavis2001 authored Dec 5, 2024
2 parents 188388c + e8a2ad6 commit 40cd6f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/Admin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ Feature: Admin
# date fields for feedback range
When I force fill out "#id-day-start-date" element with "28"
And I force fill out "#id-month-start-date" element with "11"
And I force fill out "#id-year-start-date" element with "2023"
And I force fill out "#id-year-start-date" element with "2024"
And I force fill out "#id-day-end-date" element with "28"
And I force fill out "#id-month-end-date" element with "11"
And I force fill out "#id-year-end-date" element with "2023"
And I force fill out "#id-year-end-date" element with "2024"
And I click "submit-button"

Then very long feedback details from user "[email protected]" displays correctly in the page
Expand All @@ -174,10 +174,10 @@ Feature: Admin
# date fields for feedback range
When I force fill out "#id-day-start-date" element with "02"
And I force fill out "#id-month-start-date" element with "12"
And I force fill out "#id-year-start-date" element with "2023"
And I force fill out "#id-year-start-date" element with "2024"
And I force fill out "#id-day-end-date" element with "02"
And I force fill out "#id-month-end-date" element with "12"
And I force fill out "#id-year-end-date" element with "2023"
And I force fill out "#id-year-end-date" element with "2024"
And I click "submit-button"

Then I see "<script>alert(\"hello email\");</script>[email protected]" in the page text
Expand Down
4 changes: 2 additions & 2 deletions scripts/non_live_seeding/seed_test_feedback.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ INSERT INTO public.feedback (received, message) VALUES ('2023-05-12 12:43:56+00'
INSERT INTO public.feedback (received, message) VALUES ('2023-05-12 12:44:14+00', '{"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", "email": "[email protected]", "phone": "", "rating": "neither-satisfied-or-dissatisfied", "details": "test-no-num", "fromPage": "/feedback-thanks"}');
INSERT INTO public.feedback (received, message) VALUES ('2023-05-12 12:44:36+00', '{"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", "email": "[email protected]", "phone": "01234567891", "rating": "dissatisfied", "details": "test", "fromPage": "/feedback-thanks"}');
INSERT INTO public.feedback (received, message) VALUES (
'2023-11-28 17:23:23+00',
'2024-11-28 17:23:23+00',
'{"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36",
"email": "[email protected]",
"phone": "11234567899",
"rating": "satisfied",
"details": "IhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattimeIhadagreattime",
"fromPage": "/about-you"}'
);
INSERT INTO public.feedback (received, message) VALUES ('2023-12-02 14:22:12+00', '{"agent": "<script>alert(\"hello agent\");</script>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", "email": "<script>alert(\"hello email\");</script>[email protected]", "phone": "<script>alert(\"hello phone\");</script>01234567891", "rating": "<script>alert(\"hello rating\");</script>dissatisfied", "details": "<script>alert(\"hello details\");</script>\"great service\" test", "fromPage": "<script>alert(\"hello fromPage\");</script>/feedback-thanks"}');
INSERT INTO public.feedback (received, message) VALUES ('2024-12-02 14:22:12+00', '{"agent": "<script>alert(\"hello agent\");</script>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", "email": "<script>alert(\"hello email\");</script>[email protected]", "phone": "<script>alert(\"hello phone\");</script>01234567891", "rating": "<script>alert(\"hello rating\");</script>dissatisfied", "details": "<script>alert(\"hello details\");</script>\"great service\" test", "fromPage": "<script>alert(\"hello fromPage\");</script>/feedback-thanks"}');

0 comments on commit 40cd6f9

Please sign in to comment.