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
committerJulius Härtl <jus@bitgrid.net>2020-11-17 11:01:10 +0300
commiteaf6af7f8b6f49c696a3869c08b9232553c2505e (patch)
tree41971ba73967b6dc4baa4bbc51b373ca436da6c5 /cypress
parentd32796d49038982597d3f511369342c581d977ff (diff)
Fix preserve cookie parameter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-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)/
})
})