1.0.41 • Published 4 months ago

@commercetools-frontend/cypress-cookie-consent v1.0.41

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@commercetools-frontend/cypress-cookie-consent

This package allows to set a cookie consent cookie using the @commercetools-frontend/cypress-cookie-consent package.

Installation

$ npm install --save @commercetools-frontend/cypress-cookie-consent

Usage

You need to extend your Cypress commands. You might have an e2e.ts file containing your library and custom commands. If so add this to it:

import '@commercetools-frontend/cypress-cookie-consent/add-commands';

This will register a setConsentCookie on Cypress which you can invoke as cy.setConsentCookie. It accepts an argument called commandOptions which has a property named consentGroups. The consent groups are the groups you want to give consent for, for your Cypress test. So in summary you may call it as:

cy.setConsentCookie({
  consentGroups: {
    essentialCookies: true,
    performanceCookies: true,
    functionalCookies: true,
    targetingCookies: true,
    socialMediaCookies: true,
  },
});
1.0.33

9 months ago

1.0.32

9 months ago

1.0.37

5 months ago

1.0.36

7 months ago

1.0.35

7 months ago

1.0.34

8 months ago

1.0.39

5 months ago

1.0.38

5 months ago

1.0.40

5 months ago

1.0.41

4 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.29

12 months ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.0

3 years ago