From 1d6560ba4be38f7b81445c5bb9faf408033b22d4 Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Thu, 11 Jul 2024 04:46:12 +0000 Subject: [PATCH] test(cypress): update cypress with cst flows --- tests/cypress/plugins/helpers.js | 4 ++-- .../specs/{courtesy-cards.cy.js => agency-cards.cy.js} | 4 ++-- tests/cypress/specs/benefit-select.cy.js | 2 +- tests/cypress/specs/rate-limit.cy.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename tests/cypress/specs/{courtesy-cards.cy.js => agency-cards.cy.js} (93%) diff --git a/tests/cypress/plugins/helpers.js b/tests/cypress/plugins/helpers.js index a5ac68c21..db5f80496 100644 --- a/tests/cypress/plugins/helpers.js +++ b/tests/cypress/plugins/helpers.js @@ -22,10 +22,10 @@ export const selectAgency = () => { return agency; }; -export const selectCourtesyCard = () => { +export const selectAgencyCard = () => { cy.location("pathname").should("eq", `/eligibility/${agency.slug}`); - cy.contains("MST Courtesy Card").click(); + cy.contains("CST Agency Card").click(); cy.contains("Choose this benefit").click(); cy.contains("Continue").click(); }; diff --git a/tests/cypress/specs/courtesy-cards.cy.js b/tests/cypress/specs/agency-cards.cy.js similarity index 93% rename from tests/cypress/specs/courtesy-cards.cy.js rename to tests/cypress/specs/agency-cards.cy.js index 823f1db60..125e1d5e1 100644 --- a/tests/cypress/specs/courtesy-cards.cy.js +++ b/tests/cypress/specs/agency-cards.cy.js @@ -1,12 +1,12 @@ const helpers = require("../plugins/helpers"); const users = require("../fixtures/users.json"); -describe("Courtesy Cards", () => { +describe("Agency Cards", () => { beforeEach(() => { cy.visit("/"); helpers.selectAgency(); - helpers.selectCourtesyCard(); + helpers.selectAgencyCard(); }); it("Confirms an eligible user", () => { diff --git a/tests/cypress/specs/benefit-select.cy.js b/tests/cypress/specs/benefit-select.cy.js index 9ee369c5a..75101d78a 100644 --- a/tests/cypress/specs/benefit-select.cy.js +++ b/tests/cypress/specs/benefit-select.cy.js @@ -10,7 +10,7 @@ describe("Benefit selection", () => { it("User sees 4 radio buttons", () => { cy.get("input:radio").should("have.length", 4); - cy.contains("Courtesy Card"); + cy.contains("Agency Card"); cy.contains("65 years"); }); diff --git a/tests/cypress/specs/rate-limit.cy.js b/tests/cypress/specs/rate-limit.cy.js index bfc534de6..ebb245ea1 100644 --- a/tests/cypress/specs/rate-limit.cy.js +++ b/tests/cypress/specs/rate-limit.cy.js @@ -10,7 +10,7 @@ describe("Rate limiting feature spec", () => { cy.visit("/"); helpers.selectAgency(); - helpers.selectCourtesyCard(); + helpers.selectAgencyCard(); }); it("Limits excess requests", () => {