Skip to content

Commit

Permalink
[test] Correction test Cypress document-context-menu
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Rouëné <florian.rouene@obeosoft.com>
  • Loading branch information
frouene authored and sbegaudeau committed May 22, 2023
1 parent 8bf722d commit 6cd122f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ describe('/projects/:projectId/edit - Document Context Menu', () => {
cy.getByTestId('type').click();
cy.get('[data-value="System"]').click();

cy.getByTestId('type').children('[role="button"]').invoke('text').should('have.length.gt', 1);
cy.getByTestId('type').click().get('[data-value="System"]').click();

cy.getByTestId('create-object').click();

cy.getByTestId('explorerTree').contains('System');
Expand All @@ -57,6 +60,9 @@ describe('/projects/:projectId/edit - Document Context Menu', () => {
cy.getByTestId('type').click();
cy.get('[data-value="System"]').click();

cy.getByTestId('type').children('[role="button"]').invoke('text').should('have.length.gt', 1);
cy.getByTestId('type').click().get('[data-value="System"]').click();

cy.getByTestId('create-object').click();

cy.getByTestId('explorerTree').contains('System');
Expand Down

0 comments on commit 6cd122f

Please sign in to comment.