Shun Miyazawa 4 лет назад
Родитель
Сommit
835b46f57b

+ 6 - 6
packages/app/test/cypress/integration/2-basic-features/open-presentation-modal.spec.ts

@@ -22,8 +22,8 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for "/" is shown successfully', () => {
     cy.visit('/');
-    cy.getByTestid('open-page-item-control-button').first().click();
-    cy.getByTestid('open-presentation-modal-btn').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click({force: true});
+    cy.getByTestid('open-presentation-modal-btn').first().click({force: true});
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);
     cy.screenshot(`${ssPrefix}-opne-top`, { capture: 'viewport' });
@@ -31,8 +31,8 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for "/Sandbox/Bootstrap4" is shown successfully', () => {
     cy.visit('/Sandbox/Bootstrap4');
-    cy.getByTestid('open-page-item-control-button').first().click();
-    cy.getByTestid('open-presentation-modal-btn').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click({force: true});
+    cy.getByTestid('open-presentation-modal-btn').first().click({force: true});
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);
     cy.screenshot(`${ssPrefix}-open-bootstrap4`, { capture: 'viewport' });
@@ -40,8 +40,8 @@ context('Open presentation modal', () => {
 
   it('PageCreateModal for /Sandbox/Bootstrap4#Cards" is shown successfully', () => {
     cy.visit('/Sandbox/Bootstrap4#Cards');
-    cy.getByTestid('open-page-item-control-button').first().click();
-    cy.getByTestid('open-presentation-modal-btn').first().click();
+    cy.getByTestid('open-page-item-control-button').first().click({force: true});
+    cy.getByTestid('open-presentation-modal-btn').first().click({force: true});
     // eslint-disable-next-line cypress/no-unnecessary-waiting
     cy.wait(1500);
     cy.screenshot(`${ssPrefix}-open-bootstrap4-with-ancker-link`, { capture: 'viewport' });