Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

[TASK] RT-2525 e2e tests for account rename #1748

Merged
merged 3 commits into from
Nov 25, 2014

Conversation

darkdarkdragon
Copy link
Contributor

No description provided.

@yongsoo
Copy link
Contributor

yongsoo commented Nov 4, 2014

LGTM

function pressRenameSubmit() {
$("form[name='renameForm'] button[type='submit']").click().then(function() {

browser.wait(function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can make this more concise with browser.wait($("div.showPublic div.alert-success").isDisplayed).

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree, please make the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll wait until you merge #1766 - I've added useful utility function there

@mrajvanshy
Copy link
Contributor

Merged #1766



it('should rename user', function(done) {
protractor.getInstance().ignoreSynchronization = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because, without that, protractor will wait for angular to finish all of it internal jobs.
but, when you submit password, ripple client start timer for 5 minutes to expire this password.
so protractor will wait for that to finish and will run out of time for test.
it took long time to identify this one.

Copy link
Contributor

Choose a reason for hiding this comment

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

@darkdarkdragon ok, makes sense.

@vhpoet
Copy link
Contributor

vhpoet commented Nov 25, 2014

LGTM

vhpoet added a commit that referenced this pull request Nov 25, 2014
[TASK] RT-2525 e2e tests for account rename
@vhpoet vhpoet merged commit 119701a into ripple:develop Nov 25, 2014
@darkdarkdragon darkdarkdragon deleted the develop-RT-2525 branch November 25, 2014 20:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants