Skip to content

Commit 1e778a6

Browse files
committed
adding shadow DOM library for testing
1 parent 0fca5ca commit 1e778a6

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

cypress/support/commands.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,5 @@ Cypress.Commands.add("CloudSyncLink", {cacheAcrossSpecs: true}, () => {
261261
cy.visit('/admin1/')
262262
cy.get('.mi-mollie').click({fore:true})
263263
cy.get('#subtab-AdminMollieModule').click()
264-
cy.get('prestashop-accounts')
264+
cy.get('prestashop-accounts').shadow().find('[id="associate-shop-button"]').click()
265265
})

cypress/support/e2e.js

+2
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ import "@frsource/cypress-plugin-visual-regression-diff";
5858

5959
// javascript
6060
require("@frsource/cypress-plugin-visual-regression-diff");
61+
62+
import 'cypress-shadow-dom';

package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"cypress": "^13.7.1",
2626
"cypress-fail-fast": "^7.0.3",
2727
"cypress-iframe": "^1.0.1",
28+
"cypress-shadow-dom": "^1.4.1",
2829
"cypress-terminal-report": "^5.3.3",
2930
"cypress-testrail": "^2.10.0",
3031
"human-signals": "^3.0.1"

0 commit comments

Comments
 (0)