This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding an additional info modal for cutsites and cutsite groups; upda…
…ting browserslist
- Loading branch information
Showing
6 changed files
with
14,975 additions
and
0 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 |
---|---|---|
@@ -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)"); | ||
}); | ||
}); |
Oops, something went wrong.