Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use force in accept all cookies click to avoid side effects and make it #80

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/tt-cookie-all-accept.js
Original file line number Diff line number Diff line change
@@ -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 });
};
2 changes: 1 addition & 1 deletion src/commands/tt-cookie-all-accept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
2 changes: 2 additions & 0 deletions update.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
Loading