-
Notifications
You must be signed in to change notification settings - Fork 6.8k
test: add class with e2e test utilities #2070
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
This will need a little more work once #2051 is merged. |
6184c90
to
34743ce
Compare
34743ce
to
31a943c
Compare
Should be good to go now. |
3fc52a8
to
3823135
Compare
Can we get this one through @jelbourn? It should make writing e2e tests a little simpler. |
/** | ||
* A set of utility functions for writing E2E tests. | ||
*/ | ||
export class E2EUtils { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of things I want to rearrange here:
- I think we should just export / use the standalone functions without them being in a class (similar to
coerceBooleanProperty
orapplyCssTransform
in core). - I want to avoid having one big "utils" file and instead divide the functions into more tightly-scoped files. I was thinking we could have something
util/asserts.ts
,util/geometry.ts
,util/actions.ts
, andutil/query.ts
* Adds a class that simplifies some common and hard to remember Protractor expressions. * Refactors the existing tests to use the new utilities. Fixes angular#2025.
2b847b2
to
55eac99
Compare
Split the E2E class into a few smaller files @jelbourn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just add the "merge ready" label after rebase
# Conflicts: # e2e/components/button/button.e2e.ts # e2e/components/dialog/dialog.e2e.ts # e2e/components/menu/menu-page.ts
* test: add class with e2e test utilities * Adds a class that simplifies some common and hard to remember Protractor expressions. * Refactors the existing tests to use the new utilities. Fixes angular#2025. * Add types to the e2e utils and fix the selector on the dialog tests. * Remove unnecessary rounding. * Remove `any` cast. * Simplify the slide toggle tests. * Split the E2E utils class into smaller files. * Fix a leftover.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #2025.