Skip to content

Commit

Permalink
cy.getcookie now gets ALL cookies from ALL domains
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Nov 1, 2019
1 parent f6c74b0 commit 4ce8f22
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/driver/src/cy/commands/cookies.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ mergeDefaults = (obj) ->
## we always want to be able to see and influence cookies
## on our superdomain
{ superDomain } = $Location.create(window.location.href)
# { hostname } = $Location.create(window.location.href)

merge = (o) ->
## we are hostOnly if we dont have an
## explicit domain
# o.hostOnly = !o.domain

## and if the user did not provide a domain
## then we know to set the default to be origin
_.defaults o, {domain: superDomain}
Expand Down Expand Up @@ -137,7 +132,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
obj
})

automateCookies("get:cookies", {}, options._log, options.timeout)
automateCookies("get:cookies", { domain: null }, options._log, options.timeout)
.then (resp) ->
options.cookies = resp

Expand Down

0 comments on commit 4ce8f22

Please sign in to comment.