-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
should restore cookie correctly when using useRole with the preserveUrl option (closes #2282) #2285
Conversation
✅ Tests for the commit f2eb748 have passed. See details: |
|
||
this._assignFrom(obj, true); | ||
} | ||
|
||
_getAssignableProperties () { | ||
return [ | ||
{ name: 'url', type: urlArgument, required: true }, | ||
{ name: 'storages', type: nullableStringArgument } | ||
{ name: 'stateSnapshot', type: nullableStringArgument } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stateSnapshot
isn't 'string or null' anymore, is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I see now
if (!document.cookie || document.cookie === 'auth=false') | ||
location.href = './login.html'; | ||
else { | ||
var result = document.getElementById('result'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add new line after new var
|
||
test('Login and save cookies in the role', async t => { | ||
await t | ||
.useRole(role) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move useRole
to fixture.beforeEach
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
✅ Tests for the commit 2ff8010 have passed. See details: |
…rl option (closes DevExpress#2282) (DevExpress#2285) * should restore cookie correctly when using useRole with the preserveUrl option (closes DevExpress#2282) * changes after request
No description provided.