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

Fix a stale element re-selection bug #67

Merged
merged 1 commit into from
May 23, 2018

Conversation

scriby
Copy link
Contributor

@scriby scriby commented May 22, 2018

Fix an issue with re-selecting a stale element when the selection filtered out non-visible elements.

//If elements were removed due to visibility then the list needs to be re-indexed.
filtered.forEach((elementFinder, i) => {
elementFinder.selectionOrdinal = i;
});

Choose a reason for hiding this comment

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

Thanks for doing this one! We ran into this with one of our Ultra devs recently.

appendStaleTestArea('second');

expect(el.hasClass('second')).toEqual(true);
}));

Choose a reason for hiding this comment

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

So I may be overthinking this one. I see what the test is doing here and it looks good!
( Re-adding the .second class and verifying that the element contains it. )

What I'm not sure about is when I add this protractor_sync_test.ts file back to my local develop, I'm expecting the test to fail (pre selection.ts change above) but it's succeeding.

I've cleaned the build and re-ran the build. Not sure if I'm missing something.

Thanks!

EDIT: Never mind the above, I didn't have the test spec file in the right spot. I was able to recreate the test error earlier. Approving.

@scriby
Copy link
Contributor Author

scriby commented May 23, 2018

Fire when ready!

@shermaneric shermaneric merged commit cd85f73 into blackboard:develop May 23, 2018
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.

3 participants