Skip to content

Commit

Permalink
DEVPROD-2597 Delete test that fails due to no GitHub Token (evergreen…
Browse files Browse the repository at this point in the history
  • Loading branch information
bynn authored Nov 22, 2023
1 parent a59e372 commit 1a03b39
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions cypress/integration/version/unscheduled_patch/configure_patch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { GQL_URL } from "../../../constants";
import { hasOperationName } from "../../../utils/graphql-test-utils";
import { mockErrorResponse } from "../../../utils/mockErrorResponse";

describe("Configure Patch Page", () => {
const unactivatedPatchId = "5e6bb9e23066155a993e0f1a";
Expand Down Expand Up @@ -377,7 +376,7 @@ describe("Configure Patch Page", () => {
.click();
cy.getInputByLabel("test-agent").should("be.checked");

// Deselect the buttons and reset ;
// Deselect the buttons and reset;
cy.getInputByLabel("test-agent").uncheck({
force: true,
});
Expand Down Expand Up @@ -557,7 +556,6 @@ describe("Configure Patch Page", () => {
});
});

// Using mocked responses because we are unable to schedule a patch because of a missing github token
describe("Scheduling a patch", () => {
beforeEach(() => {
cy.visit(`/patch/${unactivatedPatchId}`);
Expand All @@ -579,23 +577,6 @@ describe("Configure Patch Page", () => {
`/version/${activatedPatchId}/tasks`
);
});

it("Shows error toast if unsuccessful and keeps data", () => {
const val = "hello world";
cy.dataCy(`patch-name-input`).clear().type(val);
cy.dataCy("task-checkbox").first().check({ force: true });
mockErrorResponse({
errorMessage: "An error occured",
operationName: "SchedulePatch",
path: "schedulePatch",
});
cy.dataCy("schedule-patch").click();
cy.location("pathname").should(
"eq",
`/patch/${unactivatedPatchId}/configure/tasks`
);
cy.validateToast("error");
});
});
});

Expand Down

0 comments on commit 1a03b39

Please sign in to comment.