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

Retry.run doesn't sync with Protractor's control flow #5

Open
eolognt opened this issue May 27, 2015 · 0 comments
Open

Retry.run doesn't sync with Protractor's control flow #5

eolognt opened this issue May 27, 2015 · 0 comments

Comments

@eolognt
Copy link

eolognt commented May 27, 2015

Using this plugin with Protractor. Have these lines in my spec:

view.chat.sendMessage(1);
retry.run(function () {
    view.chat.sendMessage(2);
});
view.chat.sendMessage(3);

view.chat.sendMessage looks like this:

function () {
    element(by.model('message')).sendKeys(msg);
    return element(by.buttonText('Send')).click();
}

I expected this output in my chat:

1
2
3

but got this:

2
1
3

Shouldn't actions in the function passed onto retry.run be added to the control flow and be executed in the order I expected?

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

No branches or pull requests

1 participant