Skip to content

Test bed with context discovery #26211

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

Conversation

pkozlowski-opensource
Copy link
Member

This PR re-implements TestBed for ivy on top of context discovery. Please review only the last commit ( refactor(ivy): use context discovery in TestBed implementation) - the 2 first ones are part of existing PRs #26113 and #26210

@pkozlowski-opensource pkozlowski-opensource added state: WIP action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release comp: ivy labels Oct 2, 2018
@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 3316be8 to eba6795 Compare October 2, 2018 14:14
@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from eba6795 to 2bedc95 Compare October 2, 2018 14:27
@mhevery
Copy link
Contributor

mhevery commented Oct 3, 2018

The Last SHA LGTM

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch 4 times, most recently from 70c5497 to b885930 Compare October 8, 2018 08:52
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from b885930 to 821af4d Compare October 8, 2018 09:17
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@angular angular deleted a comment from mary-poppins Oct 8, 2018
@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 821af4d to 8b69fd4 Compare October 8, 2018 10:04
@mary-poppins
Copy link

You can preview 8b69fd4 at https://pr26211-8b69fd4.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 8b69fd4 to b473dd7 Compare October 8, 2018 10:39
@mary-poppins
Copy link

You can preview b473dd7 at https://pr26211-b473dd7.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 9f0923c at https://pr26211-9f0923c.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 28293c3 at https://pr26211-28293c3.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 28293c3 to d144989 Compare October 9, 2018 11:09
@mary-poppins
Copy link

You can preview d144989 at https://pr26211-d144989.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from d144989 to 74fa57f Compare October 9, 2018 11:41
@mary-poppins
Copy link

You can preview 74fa57f at https://pr26211-74fa57f.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 74fa57f to fbb1cb7 Compare October 9, 2018 12:31
@mary-poppins
Copy link

You can preview fbb1cb7 at https://pr26211-fbb1cb7.ngbuilds.io/.

});

it('should display: Hello Foo! via name attribute', function () {
browser.get('hello-world.html');
const helloWorldEl = element(by.css('hello-world-el'));
const input = element(by.css('input[type=text]'));
input.sendKeys('F', 'o', 'o');
expect(helloWorldEl.getText()).toEqual('Hello Foo!');
Copy link
Member Author

@pkozlowski-opensource pkozlowski-opensource Oct 9, 2018

Choose a reason for hiding this comment

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

Changes to this file are due to the flaky e2e tests that seem to be unrelated to this PR as I saw it on other, completely different PRs, ex.:

Seems like getText() is async and we wait for on it in other tests:

div.getText().then(t => expect(t).toEqual(`Hello world!`));

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe @robwormald has additional input here - my Protractor kung-fu is too weak here...

Copy link
Member

Choose a reason for hiding this comment

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

getText() is indeed async, but (theoretically at least) waiting shouldn't make any difference (because Protractor will internally wait for async WebDriver methods before checking assertions).
This test is indeed quite flakey lately. If this change makes it less flakey, \o/

Copy link
Member

Choose a reason for hiding this comment

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

Apparently, many people have found this workaround useful. Maybe worth trying (if promise chaining doesn't make a difference).

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from fbb1cb7 to 646c714 Compare October 9, 2018 12:49
@mary-poppins
Copy link

You can preview 646c714 at https://pr26211-646c714.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from 646c714 to c410d67 Compare October 9, 2018 13:14
@mary-poppins
Copy link

You can preview c410d67 at https://pr26211-c410d67.ngbuilds.io/.

@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 9, 2018
@mhevery
Copy link
Contributor

mhevery commented Oct 9, 2018

@pkozlowski-opensource pkozlowski-opensource force-pushed the test_bed_with_context_discovery branch from c410d67 to be28148 Compare October 10, 2018 09:30
@mary-poppins
Copy link

You can preview be28148 at https://pr26211-be28148.ngbuilds.io/.

@mhevery mhevery closed this in 053bf27 Oct 11, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants