Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

chore(promises): move element wdpromise to native Promise #5047

Merged
merged 5 commits into from
Nov 19, 2018

Conversation

cnishina
Copy link
Member

No description provided.

@cnishina
Copy link
Member Author

Work in progress. I want to pass the full CI (not on my computer)

@cnishina cnishina force-pushed the you_made_me_promises_promises branch from 9873b32 to 4fcad51 Compare November 16, 2018 19:14
@cnishina cnishina force-pushed the you_made_me_promises_promises branch from 4fcad51 to 86b4dcd Compare November 16, 2018 19:22
@cnishina cnishina force-pushed the you_made_me_promises_promises branch from 1ef106d to e276c6a Compare November 16, 2018 20:48
lib/element.ts Outdated Show resolved Hide resolved
return wdpromise.fullyResolved(mapResult) as wdpromise.Promise<T>;
});
return wdpromise.all(list);
async map<T>(mapFn: (elementFinder?: ElementFinder, index?: number) => T | any): Promise<T[]> {
Copy link
Contributor

@CrispusDH CrispusDH Nov 16, 2018

Choose a reason for hiding this comment

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

it would be great if we add tests for map, filter, each, reduce functions with big (ten for example) elements in array. Protractor has a big concurrent issue with it. In my common usage I wrapped Fn function to be sequential instead of concurrent. I don't know, maybe it was resolved in selenium4 but again would be nice to have some tests to cover this case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you write an issue about this? We will address this later. (Procrastination 😛)

@cnishina cnishina force-pushed the you_made_me_promises_promises branch from 0474681 to abe590c Compare November 16, 2018 22:30
@cnishina cnishina merged commit beb961d into angular:selenium4 Nov 19, 2018
cnishina added a commit to cnishina/protractor that referenced this pull request Dec 19, 2018
cnishina added a commit to cnishina/protractor that referenced this pull request Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants