diff --git a/package.json b/package.json index 8fbb041..dcc7d53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress-ncatestify-plugin", - "version": "2.1.1", + "version": "2.1.2", "description": "NCA TESTIFY commands and tests", "main": "src/index.js", "types": "src/index.d.ts", diff --git a/src/commands/tt-cookie-all-accept.js b/src/commands/tt-cookie-all-accept.js index 34665a9..5a1e0c1 100644 --- a/src/commands/tt-cookie-all-accept.js +++ b/src/commands/tt-cookie-all-accept.js @@ -1,4 +1,4 @@ export const ttCookieAllAcceptClick = (cookieButtonString = 'alle akzeptieren') => { cy.log('ttCookieAllAcceptClick - NCA TESTIFY'); - return cy.contains(cookieButtonString, { matchCase: false }).click(); + return cy.contains(cookieButtonString, { matchCase: false }).click({ force: true }); }; diff --git a/src/commands/tt-cookie-all-accept.ts b/src/commands/tt-cookie-all-accept.ts index 1600515..96f731e 100644 --- a/src/commands/tt-cookie-all-accept.ts +++ b/src/commands/tt-cookie-all-accept.ts @@ -2,5 +2,5 @@ export const ttCookieAllAcceptClick = ( cookieButtonString: string = 'alle akzeptieren', ) => { cy.log('ttCookieAllAcceptClick - NCA TESTIFY') - return cy.contains(cookieButtonString, { matchCase: false }).click() + return cy.contains(cookieButtonString, { matchCase: false}).click({force: true}) } diff --git a/update.md b/update.md index dc185c1..001797b 100644 --- a/update.md +++ b/update.md @@ -1,4 +1,6 @@ # Update md file +2.1.2 +Use force click in accept all cookies command. 2.1.0 Use peer dependencies to have less problems with cypress, chai and axe.