-
Notifications
You must be signed in to change notification settings - Fork 222
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
Use page object pattern for e2e tests #1041
Conversation
…n, sidebar-left, navigation
✅ Deploy Preview for activist-org ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thank you for the pull request!The activist team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Development rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you! Maintainer checklist
|
Great I'm running into the |
Hi Colin, Looking at the log for the PR Frontend Checks, I see only the following errors:
While it's never a fun time to hit a snag like this, it looks like this is a relatively straight-forward typing error involving EventMenu.ts, in one of the e2e tests. The $t issue is / was something else, and it doesn't look like it appears in the Frontend Checks log. Could you please reply here and let me know if you're running into $t errors? Specifically, it would be helpful to know where you are finding them. Also, please keep in mind that the $t issue doesn't look like it has any negative functional or performative effects, meaning that it doesn't appear to have any real-time, production-related effects on the app. I've been pursuing it simply because I make a point of chasing down these sorts of oddball system messages. That means, don't stress on the $t thing too much :) Thanks for all of the great work! |
This is really great that we've found a workable solution here, @cquinn540! Do we want to document this somewhere in the contributing guide? :) |
I can document how to run it, but I think it needs to be refactored before adding a guide on how to contribute to the e2e tests. |
Or if you mean the |
@cquinn540 FWIW, I tried the five steps you mentioned above, and still get the $t issue. Re-enabling the vue-i18n.d.ts file makes the $t issue go away. Please let me know when you find an explanation / solution for this. Very curious to see how this can be resolved. |
I'll put the directions for the i18n file back in the contributing guide :) |
Ok so post a yarn outage we're passing in frontend, but still failing in e2e. Here are the failed tests: [chromium] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[chromium] › landing-page.spec.ts:118:7 › Landing Page › Landing Page has no detectable accessibility issues
[chromium] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[chromium] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[webkit] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[webkit] › landing-page.spec.ts:118:7 › Landing Page › Landing Page has no detectable accessibility issues
[webkit] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[webkit] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[Mobile Chrome] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[Mobile Chrome] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[Mobile Chrome] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[Mobile Safari] › home-page.spec.ts:31:7 › Home Page › Navigation links should be functional ───
[Mobile Safari] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[Mobile Safari] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[Mobile Safari] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[Mobile Samsung] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[Mobile Samsung] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[Mobile Samsung] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[Mobile iPad Portrait] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[Mobile iPad Portrait] › landing-page.spec.ts:118:7 › Landing Page › Landing Page has no detectable accessibility issues
[Mobile iPad Portrait] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[Mobile iPad Portrait] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues
[Mobile iPad Landscape] › home-page.spec.ts:74:7 › Home Page › Home Page has no detectable accessibility issues
[Mobile iPad Landscape] › landing-page.spec.ts:118:7 › Landing Page › Landing Page has no detectable accessibility issues
[Mobile iPad Landscape] › sign-in-page.spec.ts:100:7 › Sign In Page › should show error for invalid credentials
[Mobile iPad Landscape] › sign-in-page.spec.ts:111:7 › Sign In Page › Sign In Page has no detectable accessibility issues We can look into these in the future :) |
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.
Thanks so much for the work to bring all of this in, @cquinn540! Looking forward to the further steps to bring all this up to Playwright standards 😊
Contributor checklist
Description
This change adds tests for the landing, home, and sign-in pages, and it updates the playwright tests to use the page object patternbased on the work of @aasimsyed
I also changed the test directory from
tests
totest-e2e
to better differentiate it from our component tests, as well as some various bug fixes.Related issue