Skip to content
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

Merged
merged 2 commits into from
Apr 11, 2018

Conversation

AlexKamaev
Copy link
Contributor

No description provided.

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit f2eb748 have passed. See details:

@AlexKamaev AlexKamaev changed the title [WIP]should restore cookie correctly when using useRole with the preserveUrl option (closes #2282) should restore cookie correctly when using useRole with the preserveUrl option (closes #2282) Apr 5, 2018
@AlexanderMoskovkin AlexanderMoskovkin requested review from helen-dikareva and removed request for AndreyBelym April 5, 2018 13:23

this._assignFrom(obj, true);
}

_getAssignableProperties () {
return [
{ name: 'url', type: urlArgument, required: true },
{ name: 'storages', type: nullableStringArgument }
{ name: 'stateSnapshot', type: nullableStringArgument }
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still is

Copy link
Collaborator

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');
Copy link
Collaborator

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)
Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@AlexKamaev AlexKamaev closed this Apr 10, 2018
@AlexKamaev AlexKamaev reopened this Apr 10, 2018
@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 2ff8010 have passed. See details:

@AlexKamaev AlexKamaev merged commit f773c21 into DevExpress:master Apr 11, 2018
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this pull request Dec 18, 2019
…rl option (closes DevExpress#2282) (DevExpress#2285)

* should restore cookie correctly when using useRole with the preserveUrl option (closes DevExpress#2282)

* changes after request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants