Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
adding an additional info modal for cutsites and cutsite groups; upda…
Browse files Browse the repository at this point in the history
…ting browserslist
  • Loading branch information
tnrich committed Mar 10, 2021
1 parent 7317474 commit 820d01b
Show file tree
Hide file tree
Showing 6 changed files with 14,975 additions and 0 deletions.
37 changes: 37 additions & 0 deletions cypress/integration/cutsiteInfoView.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
describe("editor", function () {
beforeEach(() => {
cy.visit("");
});

it(`clicking a cutsite or cutsite group should provide more info`, () => {
cy.tgToggle("overrideManageEnzymes");
cy.get(`[data-test="cutsiteToolDropdown"]`).click();
cy.get(".tg-select-toggle").click();
cy.contains("someGroup").click();
cy.contains(".bp3-tag", "someGroup").click();
cy.contains("Compare..").click();
cy.contains("vs Single cutters").click();
cy.contains(`[data-test="tg-column-3"]`, "specialEnzyme2");
cy.contains(`[data-test="tg-column-3"]`, "XmlI (1 cut)");
cy.contains(`[data-test="tg-column-3"]`, "XmaI (1 cut)");
cy.contains(`[data-test="tg-column-2"]`, "specialEnzyme1 (1 cut)");
cy.contains(`[data-test="tg-column-1"]`, "bamhi (0 cuts)"); //tnr: should fix the name of the enzyme here
});
it(`clicking a cutsite should provide more info`, () => {
cy.tgToggle("overrideManageEnzymes");
cy.get(`[data-test="cutsiteToolDropdown"]`).click();
cy.get(".tg-select-toggle").click();
cy.contains(".tg-select-option", "specialEnzyme1").click();
cy.contains(".bp3-tag", "specialEnzyme1").click();

cy.contains(".rt-tr", "92").click();
cy.contains("Caret Between Bases 92 and 93");

cy.contains(".bp3-tag.bp3-intent-primary", "Single cutters");
cy.contains(".bp3-tag.bp3-intent-primary", "someGroup").should("not.exist");
cy.contains(".bp3-tag", "someGroup").click();

cy.contains("someGroup (inactive)");
cy.contains(".bp3-tag.bp3-intent-primary", "specialEnzyme1 (1 cut)");
});
});
Loading

0 comments on commit 820d01b

Please sign in to comment.