diff --git a/cypress/integration/dialogs.spec.js b/cypress/integration/dialogs.spec.js index 51473d517..756c68f88 100644 --- a/cypress/integration/dialogs.spec.js +++ b/cypress/integration/dialogs.spec.js @@ -22,7 +22,7 @@ describe("dialogs", function () { cy.get(`[data-test="cutsiteHideShowTool"]`).click(); cy.contains(".veLabelText", "araD").rightclick(); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.focused().type("new feat"); cy.screenshot(); @@ -49,10 +49,7 @@ describe("dialogs", function () { cy.get(".tg-test-locations-1-start input").should("have.value", "29"); cy.get(".tg-test-locations-1-end input").should("have.value", "49"); }); - it(`new feature dialog should - -not show a warning for a circular feature that fits within the sequence bounds if the sequence is circular - - `, () => { + it(`new feature dialog should not show a warning for a circular feature that fits within the sequence bounds if the sequence is circular`, () => { //open the new feature dialog cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".bp3-menu-item", "Create").click(); @@ -64,7 +61,7 @@ describe("dialogs", function () { ".bp3-menu-item.bp3-disabled", "New Reverse Translation" ).should("exist"); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); //change the start/end inputs to be making an origin spanning feature cy.get(".tg-test-name input").clear().type("Fake name"); cy.get(".tg-test-start input").clear().type("400"); @@ -76,15 +73,12 @@ describe("dialogs", function () { cy.get(".tg-test-start .bp3-intent-danger").should("not.exist"); cy.get(".veLabelText").contains("Fake name").should("be.visible"); }); - it(`new part dialog should - -show a warning for a circular part that goes beyond the sequence - -not show a warning for a circular part that fits within the sequence bounds if the sequence is circular - `, () => { + it(`new part dialog should show a warning for a circular part that goes beyond the sequence and not show a warning for a circular part that fits within the sequence bounds if the sequence is circular`, () => { //open the new feature dialog cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Part").click(); + cy.contains(".bp3-menu-item", "New Part").click({ force: true }); //change the start/end inputs to be making an origin spanning feature cy.get(".tg-test-name input").clear().type("Fake name"); cy.get(".tg-test-start input").clear().type("400"); diff --git a/cypress/integration/editor.spec.js b/cypress/integration/editor.spec.js index ca15334c0..6bd38a3bb 100644 --- a/cypress/integration/editor.spec.js +++ b/cypress/integration/editor.spec.js @@ -15,7 +15,9 @@ describe("editor", function () { ); cy.contains(".tg-menu-bar-item", "View").click(); cy.contains(".bp3-menu-item", "Limits").click(); - cy.contains(".bp3-menu-item", "Max Cutsites To Show").click(); + cy.contains(".bp3-menu-item", "Max Cutsites To Show").click({ + force: true + }); cy.get(".bp3-menu-item:contains(100) .bp3-icon-small-tick"); cy.get(".bp3-menu-item:contains(400)").click({ force: true }); cy.get(".bp3-menu-item:contains(400) .bp3-icon-small-tick"); @@ -207,14 +209,16 @@ describe("editor", function () { cy.get(".bp3-toast").contains("No Sequence Selected To Copy"); cy.get(".tg-menu-bar").contains("File").click(); cy.get(".bp3-menu-item").contains("Export Sequence").trigger("mouseover"); - cy.contains(".bp3-menu-item", "Custom export option!").click(); + cy.contains(".bp3-menu-item", "Custom export option!").click({ + force: true + }); cy.get(".bp3-toast").contains("Custom export hit!"); }); it(`should handle custom dialog overrides correctly`, () => { cy.tgToggle("overrideAddEditFeatureDialog"); cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.contains("I Am Overridden. Any custom React can go here"); }); it(`should focus the linear view`, () => { @@ -270,7 +274,9 @@ describe("editor", function () { it(`should handle enabling external labels and then only showing labels that don't fit`, () => { cy.get(".tg-menu-bar").contains("View").click(); cy.get(".tg-menu-bar-popover").contains("Labels").click(); - cy.get(".tg-menu-bar-popover").contains("External Labels").click(); + cy.get(".tg-menu-bar-popover") + .contains("External Labels") + .click({ force: true }); cy.get(".veTabProperties").contains("Properties").click(); cy.get(".veTabLinearMap").contains("Linear Map").click(); cy.contains("text", "pSC101**"); @@ -283,7 +289,9 @@ describe("editor", function () { cy.get(".veLabelLine").should("have.css", "opacity", "0.1"); cy.get(".tg-menu-bar").contains("View").click(); cy.get(".tg-menu-bar-popover").contains("Labels").click(); - cy.get(".tg-menu-bar-popover").contains("Label Line Intensity").click(); + cy.get(".tg-menu-bar-popover") + .contains("Label Line Intensity") + .click({ force: true }); cy.get(".tg-menu-bar-popover").contains("High").click({ force: true }); cy.get(".veLabelLine").should("have.css", "opacity", "0.9"); }); @@ -294,7 +302,9 @@ describe("editor", function () { ); cy.get(".tg-menu-bar").contains("View").click(); cy.get(".tg-menu-bar-popover").contains("Labels").click(); - cy.get(".tg-menu-bar-popover").contains("Circular Label Size").click(); + cy.get(".tg-menu-bar-popover") + .contains("Circular Label Size") + .click({ force: true }); cy.get(".tg-menu-bar-popover").contains("50%").click({ force: true }); cy.get(".veCircularViewLabelText").then((fiftyPercentText) => { const halfFontSize = parseFloat( @@ -346,7 +356,9 @@ describe("editor", function () { it(`should handle very long external labels in RowView`, () => { cy.get(".tg-menu-bar").contains("View").click(); cy.get(".tg-menu-bar-popover").contains("Labels").click(); - cy.get(".tg-menu-bar-popover").contains("External Labels").click(); + cy.get(".tg-menu-bar-popover") + .contains("External Labels") + .click({ force: true }); cy.contains(".veLabelText", "Part 0").rightclick(); cy.contains(".bp3-menu-item", "Edit Part").click(); const longName = diff --git a/cypress/integration/findTool.spec.js b/cypress/integration/findTool.spec.js index a62c37a9e..39e74ac77 100644 --- a/cypress/integration/findTool.spec.js +++ b/cypress/integration/findTool.spec.js @@ -67,7 +67,7 @@ describe("find tool", function () { .should("be.visible") .rightclick(); //click the search layer cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.contains(".bp3-radio", "Positive") .find("input") .should("not.be.checked"); diff --git a/cypress/integration/menuBar.spec.js b/cypress/integration/menuBar.spec.js index 8a3367fcb..bbd611e47 100644 --- a/cypress/integration/menuBar.spec.js +++ b/cypress/integration/menuBar.spec.js @@ -19,7 +19,7 @@ describe("menuBar", function () { cy.contains(".bp3-menu-item", "Features").trigger("mouseover"); cy.contains(".bp3-menu-item", "Filter Individually") .contains("22/22") - .trigger("mouseover"); + .trigger("mouseover", { force: true }); cy.contains(".bp3-menu-item", "araD").click({ force: true }); cy.contains(".bp3-menu-item", "araC").click({ force: true }); @@ -35,7 +35,7 @@ describe("menuBar", function () { cy.contains(".bp3-menu-item", "Parts").trigger("mouseover"); cy.contains(".bp3-menu-item", "Filter Individually") .contains("3/3") - .trigger("mouseover"); + .trigger("mouseover", { force: true }); cy.contains(".bp3-menu-item", "Part 0").click({ force: true }); cy.contains(".veLabelText", "Part 0").should("not.exist"); cy.contains(".bp3-menu-item", "Uncheck All").click({ force: true }); @@ -48,14 +48,16 @@ describe("menuBar", function () { cy.get(`[data-test="cutsiteHideShowTool"]`).click(); cy.contains(".tg-menu-bar button", "View").click(); cy.contains(".bp3-menu-item", "Features").trigger("mouseover"); - cy.get("[data-test=filter-feature-length]").click("top"); + cy.get("[data-test=filter-feature-length]").click("top", { force: true }); cy.contains(".veLabelText", "pSC101**").should("not.exist"); cy.contains(".veLabelText", "araD").should("not.exist"); cy.contains(".veLabelText", "araC").should("not.exist"); - cy.get('[data-test="max-feature-length"]').type("{selectall}900"); + cy.get('[data-test="max-feature-length"]').type("{selectall}900", { + force: true + }); cy.contains(".veLabelText", "araD").should("exist"); cy.contains(".veLabelText", "araC").should("exist"); - cy.get("[data-test=filter-feature-length]").click("top"); + cy.get("[data-test=filter-feature-length]").click("top", { force: true }); cy.contains(".veLabelText", "pSC101**").should("exist"); }); it("Should be able to filter part by length", () => { @@ -63,9 +65,11 @@ describe("menuBar", function () { cy.contains(".tg-menu-bar button", "View").click(); cy.contains("Part - pj5_00001 - Start: 1 End: 5299"); cy.contains(".bp3-menu-item", "Part").trigger("mouseover"); - cy.get("[data-test=filter-part-length]").click("top"); + cy.get("[data-test=filter-part-length]").click("top", { force: true }); cy.contains("Part - pj5_00001 - Start: 1 End: 5299").should("not.exist"); - cy.get('[data-test="max-part-length"]').type("{selectall}6000"); + cy.get('[data-test="max-part-length"]').type("{selectall}6000", { + force: true + }); cy.contains("Part - pj5_00001 - Start: 1 End: 5299"); }); it("Should be able to change circular/linear from the menu bar", () => { @@ -73,7 +77,7 @@ describe("menuBar", function () { cy.contains(".bp3-menu-item", "Change Circular/Linear").trigger( "mouseover" ); - cy.get(":nth-child(2) > .bp3-menu-item").click(); + cy.get(":nth-child(2) > .bp3-menu-item").click({ force: true }); cy.contains("Truncate Annotations").click(); cy.contains(".tg-menu-bar button", "Edit").click(); cy.contains(".bp3-menu-item", "Change Circular/Linear").trigger( @@ -104,11 +108,11 @@ describe("menuBar", function () { cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".rowViewTextContainer", "gacgtcttatga"); cy.contains(".bp3-menu-item", "Change Case").trigger("mouseover"); - cy.contains(".bp3-menu-item", "Upper Case Sequence").click(); + cy.contains(".bp3-menu-item", "Upper Case Sequence").click({ force: true }); cy.contains(".rowViewTextContainer", "GACGTCTTATGA"); cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".bp3-menu-item", "Change Case").trigger("mouseover"); - cy.contains(".bp3-menu-item", "Lower Case Sequence").click(); + cy.contains(".bp3-menu-item", "Lower Case Sequence").click({ force: true }); cy.contains(".rowViewTextContainer", "gacgtcttatga"); }); it(`should be able permanently change selected sequence case`, () => { @@ -138,7 +142,7 @@ describe("menuBar", function () { cy.contains(".bp3-menu-item", "Features").trigger("mouseover"); cy.contains(".bp3-menu-item", "Filter By Type") .contains("9/9") - .trigger("mouseover"); + .trigger("mouseover", { force: true }); cy.contains(".veLabelText", "araD"); cy.contains(".veLabelText", "araC"); cy.contains(".bp3-menu-item", "misc_feature").click({ force: true }); diff --git a/cypress/integration/partTags.spec.js b/cypress/integration/partTags.spec.js index 892401048..d0728f23a 100644 --- a/cypress/integration/partTags.spec.js +++ b/cypress/integration/partTags.spec.js @@ -44,7 +44,7 @@ describe("partTags", function () { it(`should be able to add/edit tags on parts`, () => { cy.get(".veRowViewSelectionLayer").trigger("contextmenu", { force: true }); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Part").click(); + cy.contains(".bp3-menu-item", "New Part").click({ force: true }); cy.focused().type("np"); cy.get(".tg-test-tags").click(); cy.contains(".bp3-menu-item", "status: ready").click(); diff --git a/cypress/integration/partTypes.spec.js b/cypress/integration/partTypes.spec.js index 7a090aa70..4d49aead9 100644 --- a/cypress/integration/partTypes.spec.js +++ b/cypress/integration/partTypes.spec.js @@ -43,7 +43,7 @@ describe("partTypes", function () { it(`should be able to add a part type`, () => { cy.get(".veRowViewSelectionLayer").trigger("contextmenu", { force: true }); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Part").click(); + cy.contains(".bp3-menu-item", "New Part").click({ force: true }); cy.get(".tg-test-type").click(); cy.contains(".tg-select-option", "misc_RNA").click(); cy.get(".tg-test-name input").type("test part"); @@ -60,7 +60,7 @@ describe("partTypes", function () { it("should be able to make a part from feature", () => { cy.get(".veRowViewSelectionLayer").trigger("contextmenu", { force: true }); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.get(".tg-test-name input").type("test feature"); cy.get(".tg-test-end input").type("0"); cy.get(".tg-select").click(); diff --git a/cypress/integration/proteinEditor.spec.js b/cypress/integration/proteinEditor.spec.js index 7f654dd2f..9332eedd3 100644 --- a/cypress/integration/proteinEditor.spec.js +++ b/cypress/integration/proteinEditor.spec.js @@ -22,7 +22,7 @@ describe("proteinEditor", function () { it(`feature/part add/edit should be AA indexed`, () => { cy.get(".tg-menu-bar").contains("Edit").click(); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.focused().type("NF"); cy.get(`.tg-test-start input[value="1"]`); cy.get(`.tg-test-end [value="1"]`); diff --git a/cypress/integration/virtualDigest.spec.js b/cypress/integration/virtualDigest.spec.js index c18086fa8..be033cc68 100644 --- a/cypress/integration/virtualDigest.spec.js +++ b/cypress/integration/virtualDigest.spec.js @@ -5,7 +5,7 @@ describe("virtualDigest", function () { it(`users should be able to choose between multiple ladders`, () => { cy.triggerFileCmd("Digest"); cy.contains("20000 bp"); - cy.contains("15000 bp").should('not.exist'); + cy.contains("15000 bp").should("not.exist"); cy.contains(".tg-select-value", "GeneRuler 1kb + DNA 75-20,000 bp"); cy.get(".tg-single-select").click(); cy.contains("Invitrogen 1kb").click(); @@ -26,7 +26,7 @@ describe("virtualDigest", function () { it(`should give a right click create feature/part option and have the annotation name autofilled`, () => { cy.triggerFileCmd("Digest"); cy.get(`[data-test="Pae17kI -- Cfr6I 5299 bps"]`).rightclick(); - cy.contains(".bp3-menu-item", "New Part").click(); + cy.contains(".bp3-menu-item", "New Part").click({ force: true }); cy.get(`.tg-test-name input`).should( "have.value", `Pae17kI -- Cfr6I 5299 bps` @@ -38,7 +38,7 @@ describe("virtualDigest", function () { cy.contains(".rt-td", "AvrII").click(); cy.get(".veSelectionLayer").first().rightclick(); cy.contains(".bp3-menu-item", "Create").click(); - cy.contains(".bp3-menu-item", "New Feature").click(); + cy.contains(".bp3-menu-item", "New Feature").click({ force: true }); cy.get(`.tg-test-name input`).should( "have.value",