From 107a6d5cd06b1901a9c8412f84f3063d9cfced86 Mon Sep 17 00:00:00 2001 From: Sophie Stadler Date: Tue, 26 Sep 2023 16:34:06 -0400 Subject: [PATCH 1/2] Remove testIsolation flag --- cypress/integration/preferences/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/preferences/notifications.ts b/cypress/integration/preferences/notifications.ts index 26215be3cc..39c72773f7 100644 --- a/cypress/integration/preferences/notifications.ts +++ b/cypress/integration/preferences/notifications.ts @@ -73,7 +73,7 @@ describe("user subscriptions table", () => { ); }); - describe("Deleting subscriptions", { testIsolation: false }, () => { + describe("Deleting subscriptions", () => { it("Deletes a single subscription", () => { cy.dataCy("subscription-row") .eq(0) From 54daebdee2fe2555ffb9d80e65f5d3ece7dd4328 Mon Sep 17 00:00:00 2001 From: Sophie Stadler Date: Tue, 26 Sep 2023 16:56:36 -0400 Subject: [PATCH 2/2] Remove lint warnings --- cypress/integration/preferences/notifications.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/integration/preferences/notifications.ts b/cypress/integration/preferences/notifications.ts index 39c72773f7..edffa6859d 100644 --- a/cypress/integration/preferences/notifications.ts +++ b/cypress/integration/preferences/notifications.ts @@ -8,7 +8,8 @@ describe("global subscription settings", () => { "aria-disabled", "true" ); - cy.dataCy("slack-member-id-field").clear().type("12345"); + cy.dataCy("slack-member-id-field").clear(); + cy.dataCy("slack-member-id-field").type("12345"); cy.dataCy("save-profile-changes-button").should( "not.have.attr", "aria-disabled", @@ -17,7 +18,8 @@ describe("global subscription settings", () => { }); it("saving changes to a field should work", () => { cy.visit(pageRoute); - cy.dataCy("slack-username-field").clear().type("slack.user"); + cy.dataCy("slack-username-field").clear(); + cy.dataCy("slack-username-field").type("slack.user"); cy.dataCy("save-profile-changes-button").click(); cy.validateToast("success", "Your changes have successfully been saved."); });