forked from evolvedbinary/fusion-studio-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start new operations spec see evolvedbinary#413 evolvedbinary#403
- Loading branch information
Showing
4 changed files
with
74 additions
and
6 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
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
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
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 @@ | ||
/// <reference types="Cypress" /> | ||
context('Basic Operations', () => { | ||
describe('working with tree view', () => { | ||
before(() => { | ||
cy.connect() | ||
}) | ||
|
||
describe('db context menu', () => { | ||
// TODO #413 | ||
it('should display creation options', () => { | ||
cy.visit('/') | ||
cy.get('.ReactVirtualized__Grid') | ||
.should('be.visible') | ||
cy.get('.fusion-item') | ||
.click() | ||
// all we need is the final part of the node-id attribute | ||
cy.get('[node-id$=db]') | ||
.rightclick() | ||
// TODO(DP): see if not using then allows for better flow | ||
.then(() => { | ||
cy.get('.p-Menu') | ||
.should('be.visible') | ||
.contains('New document') | ||
.trigger('mousemove') | ||
cy.get('[data-command="fusion.new-document"] > .p-Menu-itemLabel') | ||
.should('be.visible') | ||
.click() | ||
}) | ||
// TODO(DP): | ||
// - add test for #413, | ||
// - check if tree view is deselected, | ||
// - check if Explorer is updated properly, | ||
// - check if editor window is opening the newly create doc in a new tab | ||
// - two routes one with follow-up dialog (xquery lib) one without (txt, xml) | ||
}) | ||
|
||
// Get rid of this: | ||
// cy.addDocument(mkApiPathUrl('admin', '/db/test_col'), 'text_file.txt'); | ||
|
||
it.skip('should let users create documents', () => { | ||
cy.get('[node-id$=db]') | ||
.click() | ||
.type('{enter}') | ||
.contains('untitled') | ||
}) | ||
}) | ||
}) | ||
|
||
describe('working with collections', () => { | ||
it.skip('should create a connection', () => { | ||
cy.visit('/') | ||
// see it in action | ||
cy.get('.ReactVirtualized__Grid') | ||
.should('be.visible') | ||
.should('contain', 'localhost') | ||
cy.get('.fusion-item') | ||
.click() | ||
.then(() => { | ||
cy.get('.ReactVirtualized__Grid__innerScrollContainer') | ||
.should('contain', 'db') | ||
.should('contain', 'RestXQ') | ||
}) | ||
}) | ||
|
||
}) | ||
|
||
|
||
}) |