find("span.govuk-details__summary-text",text:"Quarterly cut-off dates for 2024 to 2025").click
expect(page).tohave_content("Q1 - Friday 12 July 2024")
expect(page).tohave_content("Q2 - Friday 11 October 2024")
expect(page).tohave_content("Q3 - Friday 10 January 2025")
expect(page).tohave_content("End of year deadline - Friday 6 June 2025")
expect(page).tohave_content("You can still create logs for a previous quarter after its cut-off date, as long as you complete them by the end-of-year deadline: Friday 6 June 2025.")
find("span.govuk-details__summary-text",text:"Quarterly cut-off dates for 2025 to 2026").click
expect(page).tohave_content("Q1 - Friday 11 July 2025")
expect(page).tohave_content("Q2 - Friday 10 October 2025")
expect(page).tohave_content("Q3 - Friday 16 January 2026")
expect(page).tohave_content("End of year deadline - Friday 5 June 2026")
expect(page).tohave_content("You can still create logs for a previous quarter after its cut-off date, as long as you complete them by the end-of-year deadline: Friday 5 June 2026.")