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:
authorAzul <azul@riseup.net>2021-12-30 16:13:50 +0300
committerAzul <azul@riseup.net>2021-12-30 18:12:24 +0300
commit1e5259bdf77f55ce9ed4e26c9a75ed82447fa791 (patch)
tree51ec0b6ecbe5b1e3f51512b7c6860b3ee8251d9c /cypress.json
parent75876791e29ec9089339f11657c49f8591e49226 (diff)
fix: cypress login with new session feature
Use the new session feature to create and reuse sessions: https://docs.cypress.io/api/commands/session The first time `login` with a given name is called the steps described in the login function are performed and cookies and localstorage are cached. The next time `login` is called with the same name cookies and localStorage are restored and used again. This allows us to keep fast test runs while still separating the tests more cleanly. The old logout command was broken because of the way we used `Cypress.Cookies.defaults({ preserve })` before: Cypress runs all the `cy.*` commands during initialization and builds a list of commands that are then executed during the tests. However `Cypress.Cookies.defaults` is evaluated when preparing the list not while performing the actual steps. Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'cypress.json')
-rw-r--r--cypress.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/cypress.json b/cypress.json
index f58dd3916..93841dbc8 100644
--- a/cypress.json
+++ b/cypress.json
@@ -2,5 +2,6 @@
"baseUrl": "https://localhost:8081/index.php/",
"projectId": "hx9gqy",
"viewportWidth": 1280,
- "viewportHeight": 720
+ "viewportHeight": 720,
+ "experimentalSessionSupport": true
}