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

Consolidate testcontainer used by WebDriver test #112

Merged
merged 2 commits into from Jun 18, 2019

Conversation

hstonec
Copy link
Contributor

@hstonec hstonec commented Jun 15, 2019

Previously, we hard coded the version of the docker image for
provisioning Chrome browser and WebDriver server because the
version of the Chrome browser has to match the version of
the webdriver client, otherwise the screenshot test will fail.

Changing to use BrowserWebDriverContainer can delegate the match
to the library itself because it chooses the correct docker image
version based on the WebDriver version on our classpath.


This change is Reviewable

Previously, we hard coded the version of the docker image for
provisioning Chrome browser and WebDriver server because the
version of the Chrome browser has to match the version of
the webdriver client, otherwise the screenshot test will fail.

Changing to use BrowserWebDriverContainer can delegate the match
to the library itself because it chooses the correct docker image
version based on the WebDriver version on our classpath.
@jianglai
Copy link
Collaborator

Please don't push to the google/nomulus repo in the future. Push to your fork and initiate a pull request from there. This keeps the upstream repo clean of feature branches.

Copy link
Collaborator

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jianglai)

Copy link
Collaborator

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jianglai)

Copy link
Collaborator

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jianglai)

@jianglai jianglai self-requested a review June 18, 2019 02:59
Copy link
Collaborator

@jianglai jianglai left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r1.
Reviewable status: 1 of 3 files reviewed, 2 unresolved discussions (waiting on @hstonec and @jianglai)


core/src/test/java/google/registry/webdriver/README.md, line 26 at r1 (raw file):

-webkit-transition

Why removing this flag?


core/src/test/java/google/registry/webdriver/WebDriverPlusScreenDifferRule.java, line 61 at r1 (raw file):

20

Is this change to suppress test flakiness? If so you can mention the change in the PR description as well?

Copy link
Collaborator

@jianglai jianglai left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 3 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @hstonec)

This is to supress the test flakness after switching to use
BrowserWebDriverContainer to provision browser and webdriver
service.
@hstonec hstonec force-pushed the sc/consolidate-testcontainers branch from d64ecf4 to 262eccd Compare June 18, 2019 14:38
Copy link
Contributor Author

@hstonec hstonec left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @jianglai)


core/src/test/java/google/registry/webdriver/README.md, line 26 at r1 (raw file):

Previously, jianglai (Lai Jiang) wrote…
-webkit-transition

Why removing this flag?

This is just some weird metadata I don't know why and when it got generated. It is useless and breaks the parsing of this paragraph. See here https://github.com/google/nomulus/tree/master/core/src/test/java/google/registry/webdriver


core/src/test/java/google/registry/webdriver/WebDriverPlusScreenDifferRule.java, line 61 at r1 (raw file):

Previously, jianglai (Lai Jiang) wrote…
20

Is this change to suppress test flakiness? If so you can mention the change in the PR description as well?

Done.

Copy link
Collaborator

@jianglai jianglai left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @weiminyu)


core/src/test/java/google/registry/webdriver/README.md, line 26 at r1 (raw file):

Previously, hstonec (Shicong Huang) wrote…

This is just some weird metadata I don't know why and when it got generated. It is useless and breaks the parsing of this paragraph. See here https://github.com/google/nomulus/tree/master/core/src/test/java/google/registry/webdriver

LoL of course it breaks parsing, it is outside of the triple backtick quote :)


core/src/test/java/google/registry/webdriver/WebDriverPlusScreenDifferRule.java, line 61 at r1 (raw file):

Previously, hstonec (Shicong Huang) wrote…

Done.

Remember to include the added comment when you squash and merge.

@hstonec hstonec closed this Jun 18, 2019
@hstonec hstonec deleted the sc/consolidate-testcontainers branch June 18, 2019 15:51
@hstonec hstonec merged commit 6ca5cab into master Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants