diff --git a/cypress/integration/projectSettings/notifications.ts b/cypress/integration/projectSettings/notifications.ts index 4a37adef07..cd02e23dbc 100644 --- a/cypress/integration/projectSettings/notifications.ts +++ b/cypress/integration/projectSettings/notifications.ts @@ -16,7 +16,7 @@ describe("Notifications", () => { cy.dataCy("add-button").contains("Add Subscription").should("be.visible"); cy.dataCy("add-button").click(); cy.dataCy("expandable-card").should("contain.text", "New Subscription"); - cy.selectLGOption("Event", "Any Version Finishes"); + cy.selectLGOption("Event", "Any version finishes"); cy.selectLGOption("Notification Method", "Email"); cy.getInputByLabel("Email").type("mohamed.khelif@mongodb.com"); cy.dataCy("save-settings-button").scrollIntoView(); @@ -43,7 +43,7 @@ describe("Notifications", () => { cy.dataCy("expandable-card") .should("be.visible") .should("contain.text", "New Subscription"); - cy.selectLGOption("Event", "Any Task Finishes"); + cy.selectLGOption("Event", "Any task finishes"); cy.selectLGOption("Notification Method", "Comment on a JIRA issue"); cy.getInputByLabel("JIRA Issue").type("JIRA-123"); cy.contains("Subscription type not allowed for tasks in a project.").should( @@ -58,7 +58,7 @@ describe("Notifications", () => { cy.dataCy("expandable-card") .should("be.visible") .should("contain.text", "New Subscription"); - cy.selectLGOption("Event", "Any Version Finishes"); + cy.selectLGOption("Event", "Any version finishes"); cy.selectLGOption("Notification Method", "Email"); cy.getInputByLabel("Email").type("Not a real email"); cy.contains("Value should be a valid email.").should("be.visible"); diff --git a/cypress/integration/subscription_modal.ts b/cypress/integration/subscription_modal.ts index e8dedf3f3f..901a6564a9 100644 --- a/cypress/integration/subscription_modal.ts +++ b/cypress/integration/subscription_modal.ts @@ -146,7 +146,7 @@ describe("Waterfall subscription modal", () => { cy.dataCy("add-notification").click(); cy.dataCy(dataCyModal).should("be.visible"); - cy.selectLGOption("Event", "Any Version Finishes"); + cy.selectLGOption("Event", "Any version finishes"); cy.selectLGOption("Notification Method", "JIRA issue"); cy.dataCy("jira-comment-input").type("EVG-2000"); @@ -160,7 +160,7 @@ describe("Waterfall subscription modal", () => { cy.dataCy("add-notification").click(); cy.dataCy(dataCyModal).should("be.visible"); - cy.selectLGOption("Event", "Any Build Finishes"); + cy.selectLGOption("Event", "Any build finishes"); cy.dataCy("add-button").click(); saveButtonEnabled(false); @@ -179,7 +179,7 @@ describe("Waterfall subscription modal", () => { cy.dataCy("add-notification").click(); cy.dataCy(dataCyModal).should("be.visible"); - cy.selectLGOption("Event", "Any Version Finishes"); + cy.selectLGOption("Event", "Any version finishes"); cy.dataCy("jira-comment-input").type("EVG-2000"); mockErrorResponse({ path: "SaveSubscription", @@ -207,7 +207,7 @@ describe("Waterfall subscription modal", () => { cy.dataCy("waterfall-menu").click(); cy.dataCy("add-notification").click(); cy.dataCy(dataCyModal).should("be.visible"); - cy.contains("Any Build Fails").should("be.visible"); + cy.contains("Any build fails").should("be.visible"); cy.contains("Slack").should("be.visible"); cy.clearCookie(subscriptionCookie);