Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit ff2f2a8

Browse files
committed
Fix context set
1 parent 371e11f commit ff2f2a8

File tree

4 files changed

+26
-23
lines changed

4 files changed

+26
-23
lines changed

cypress/support/commands.js

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ Cypress.Commands.overwrite('as', (originalFn, obj, alias) => {
152152

153153
Cypress.Commands.add('resetContext', () => {
154154
let aliases = cy.state('aliases');
155+
if (typeof aliases === 'undefined') {
156+
aliases = {};
157+
}
155158
aliases['_context'] = undefined;
156159
cy.state('aliases', aliases);
157160
});

docker-src/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM cypress/included:8.2.0 as base
1+
FROM cypress/included:9.0.0 as base
22

33
ENV XDG_CONFIG_HOME="/tmp"
44
ENV XDG_RUNTIME_DIR="/tmp"

package-lock.json

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"aws-sdk": "^2.951.0",
2020
"axios": "^0.21.0",
2121
"braintree-jsdoc-template": "^3.3.0",
22-
"cypress": "^8.2.0",
22+
"cypress": "^9.0.0",
2323
"cypress-cucumber-preprocessor": "^4.2.0",
2424
"express": "^4.17.1",
2525
"fs-extra": "^10.0.0",

0 commit comments

Comments
 (0)