Skip to content

Commit 006db36

Browse files
test: fix Documentation e2e test
1 parent 7e695d5 commit 006db36

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/specs/Documentation.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Documentation accordion', { scrollBehavior: false }, () => {
4949
cy.contains('Advanced').click({ force: true });
5050
cy.tick(accordionOpenAnimationTime);
5151
cy.get('iframe.tox-edit-area__iframe').should('not.be.visible');
52-
cy.contains('Documentation').click();
52+
cy.contains('Documentation').click({ force: true });
5353
cy.tick(accordionOpenAnimationTime);
5454
getTinyMceEditor().should('be.visible');
5555

@@ -67,7 +67,7 @@ describe('Documentation accordion', { scrollBehavior: false }, () => {
6767

6868
clickAndDropElement(type, position);
6969
waitToRenderAllShapes();
70-
cy.contains('Documentation').click();
70+
cy.contains('Documentation').click({ force: true });
7171
cy.tick(accordionOpenAnimationTime);
7272
getTinyMceEditor().clear().type(docString);
7373
assertDownloadedXmlContainsExpected(docString);
@@ -84,14 +84,14 @@ describe('Documentation accordion', { scrollBehavior: false }, () => {
8484
it('can allow the documentation editor modal to edit the documentation', () => {
8585
clickAndDropElement(nodeTypes.task, position);
8686
waitToRenderAllShapes();
87-
cy.contains('Documentation').click();
87+
cy.contains('Documentation').click({ force: true });
8888
cy.wait(accordionOpenAnimationTime);
8989

9090
const documentationFromInspector = 'some documentation';
9191
getTinyMceEditor().type(documentationFromInspector);
9292
cy.wait(modalAnimationTime);
9393

94-
cy.get('[data-test="documentation-modal-button"]').click();
94+
cy.get('[data-test="documentation-modal-button"]').click({ force: true });
9595

9696
const documentationFromModal = 'this is the documentation modal';
9797
getTinyMceEditorInModal().type(documentationFromModal);

0 commit comments

Comments
 (0)