Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-07 12:40:21 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-17 11:34:33 +0300
commit01d2095bd83468dfb313a7710f42a45613886bca (patch)
treefe259979991540d1eb5729749ff3105c8fc84fb1
parent38e37dc1869f7ee0d26355769d4d46a1709d7307 (diff)
Fix preserve cookie parameter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--cypress/support/commands.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/support/commands.js b/cypress/support/commands.js
index e29fefb9d..1e4679e5f 100644
--- a/cypress/support/commands.js
+++ b/cypress/support/commands.js
@@ -31,7 +31,7 @@ Cypress.env('baseUrl', url)
Cypress.Commands.add('login', (user, password, route = '/apps/files') => {
cy.clearCookies()
Cypress.Cookies.defaults({
- whitelist: /^(oc|nc)/
+ preserve: /^(oc|nc)/
})
cy.visit(route)
cy.get('input[name=user]').type(user)
@@ -42,14 +42,14 @@ Cypress.Commands.add('login', (user, password, route = '/apps/files') => {
Cypress.Commands.add('logout', () => {
Cypress.Cookies.defaults({
- whitelist: []
+ preserve: []
})
cy.clearLocalStorage()
cy.clearCookies()
Cypress.Cookies.defaults({
- whitelist: /^(oc|nc)/
+ preserve: /^(oc|nc)/
})
})