Skip to content

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

@eolognt

Description

@eolognt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions