This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into DEVPROD-1975
- Loading branch information
Showing
47 changed files
with
863 additions
and
474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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("[email protected]"); | ||
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"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { clickSave } from "../../utils"; | ||
import { getGeneralRoute, project, projectUseRepoEnabled } from "./constants"; | ||
|
||
describe("Stepback bisect setting", () => { | ||
describe("Repo project present", () => { | ||
const destination = getGeneralRoute(projectUseRepoEnabled); | ||
|
||
beforeEach(() => { | ||
cy.visit(destination); | ||
}); | ||
|
||
it("Starts as default to repo", () => { | ||
cy.dataCy("stepback-bisect-group") | ||
.contains("Default to repo") | ||
.find("input") | ||
.should("have.attr", "aria-checked", "true"); | ||
}); | ||
|
||
it("Clicking on enabled and then save shows a success toast", () => { | ||
cy.dataCy("stepback-bisect-group").contains("Enable").click(); | ||
clickSave(); | ||
cy.validateToast("success", "Successfully updated project"); | ||
|
||
cy.reload(); | ||
|
||
cy.dataCy("stepback-bisect-group") | ||
.contains("Enable") | ||
.find("input") | ||
.should("have.attr", "aria-checked", "true"); | ||
}); | ||
}); | ||
|
||
describe("Repo project not present", () => { | ||
const destination = getGeneralRoute(project); | ||
|
||
beforeEach(() => { | ||
cy.visit(destination); | ||
}); | ||
|
||
it("Starts as disabled", () => { | ||
cy.dataCy("stepback-bisect-group") | ||
.contains("Disable") | ||
.find("input") | ||
.should("have.attr", "aria-checked", "true"); | ||
}); | ||
|
||
it("Clicking on enabled and then save shows a success toast", () => { | ||
cy.dataCy("stepback-bisect-group").contains("Enable").click(); | ||
|
||
clickSave(); | ||
cy.validateToast("success", "Successfully updated project"); | ||
|
||
cy.reload(); | ||
|
||
cy.dataCy("stepback-bisect-group") | ||
.contains("Enable") | ||
.find("input") | ||
.should("have.attr", "aria-checked", "true"); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ describe("getGqlPayload", () => { | |
type: "email", | ||
target: "[email protected]", | ||
}, | ||
trigger: "family-outcome", | ||
trigger: "outcome", | ||
trigger_data: {}, | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.