-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from Revvity/main-CLN-76758
fix open dialog issue for multiple Editor
- Loading branch information
Showing
2 changed files
with
69 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,68 @@ | ||
describe("Global Dialogs", () => { | ||
it(`feature/primer dialog should be able to open/close for multiple Editor`, () => { | ||
cy.visit(""); | ||
|
||
const fistNodeSelector = ".standaloneDemoNode .veEditor.StandaloneEditor"; | ||
const secondNodeSelector = ".standaloneDemoNode2 .veEditor.vector-editor2"; | ||
|
||
cy.contains(".bp3-button-text", "Show Sidebar").click(); | ||
cy.contains(".demo-nav-link", "Standalone").should("exist"); | ||
cy.contains(".demo-nav-link", "Standalone").click(); | ||
|
||
cy.contains(".bp3-button-text", "Open a second editor").click(); | ||
cy.get(fistNodeSelector).should("exist"); | ||
cy.get(secondNodeSelector).should("exist"); | ||
|
||
cy.contains( | ||
`${fistNodeSelector} .ve-draggable-tabs .veTabProperties`, | ||
"Properties" | ||
).click(); | ||
cy.get( | ||
`${fistNodeSelector} .ve-propertiesPanel .bp3-tabs .bp3-tab#bp3-tab-title_undefined_features` | ||
).click(); | ||
cy.contains( | ||
`${fistNodeSelector} .bp3-tab-panel .tg-cell-wrapper`, | ||
"araC" | ||
).should("exist"); | ||
|
||
cy.contains( | ||
`${secondNodeSelector} .ve-draggable-tabs .veTabProperties`, | ||
"Properties" | ||
).click(); | ||
cy.get( | ||
`${secondNodeSelector} .ve-propertiesPanel .bp3-tabs .bp3-tab#bp3-tab-title_undefined_features` | ||
).click(); | ||
cy.contains( | ||
`${secondNodeSelector} .bp3-tab-panel .tg-cell-wrapper`, | ||
"Untitled annotation" | ||
).should("exist"); | ||
|
||
cy.get( | ||
`${fistNodeSelector} .veCircularView .circularViewSvg .veCircularViewTextWrapper` | ||
).click(); | ||
cy.contains( | ||
`${fistNodeSelector} .bp3-tab-panel .tg-cell-wrapper`, | ||
"araC" | ||
).dblclick(); | ||
cy.contains( | ||
".bp3-dialog .bp3-dialog-header .bp3-heading", | ||
"Edit Feature" | ||
).should("exist"); | ||
cy.get('.bp3-dialog input[value="araC"]').should("exist"); | ||
cy.get(".bp3-dialog .bp3-dialog-close-button").click(); | ||
|
||
cy.get( | ||
`${secondNodeSelector} .veCircularView .circularViewSvg .veCircularViewTextWrapper` | ||
).click(); | ||
cy.contains( | ||
`${secondNodeSelector} .bp3-tab-panel .tg-cell-wrapper`, | ||
"Untitled annotation" | ||
).dblclick(); | ||
cy.contains( | ||
".bp3-dialog .bp3-dialog-header .bp3-heading", | ||
"Edit Feature" | ||
).should("exist"); | ||
cy.get('.bp3-dialog input[value="Untitled annotation"]').should("exist"); | ||
cy.get(".bp3-dialog .bp3-dialog-close-button").click(); | ||
}); | ||
}); |
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