Skip to content

Commit

Permalink
Merge pull request #138 from internetee/add-cookie-consent
Browse files Browse the repository at this point in the history
Added cookie consent
  • Loading branch information
vohmar authored Dec 7, 2023
2 parents 57a0301 + fe73c26 commit c9e8236
Show file tree
Hide file tree
Showing 20 changed files with 3,568 additions and 31,269 deletions.
5 changes: 3 additions & 2 deletions cypress/integration/integration_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('Integration tests', () => {
});

it('Should accept cookies', () => {
cy.get('.cookie-notice button').click();
cy.getCookie('cookiesAccepted').should('exist');
cy.get('#c-p-bn').click(); // accept cookie consent
cy.getCookie('cc_cookie').should('exist');
});

it('Should load dashboard', () => {
Expand Down Expand Up @@ -139,6 +139,7 @@ describe('Integration tests', () => {
});

it('Sends API request to change WhoIs visibility', () => {
cy.get('#c-p-bn').click(); // accept cookie consent
cy.get('.adv-field-group input[name="name"] + label').click();
cy.get('.form-actions button').click();
cy.get('[data-test="change-contacts"]').click();
Expand Down
Loading

0 comments on commit c9e8236

Please sign in to comment.