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

chore(cypress): Favor firefox in cypress #3121

Merged
merged 3 commits into from
Feb 21, 2020
Merged

Conversation

mattwr18
Copy link
Member

🍰 Pullrequest

Issues

  • None

Todo

  • None

@cypress
Copy link

cypress bot commented Feb 20, 2020



Test summary

66 0 0 0


Run details

Project Human-Connection
Status Passed
Commit a09a767
Started Feb 21, 2020 6:43 PM
Ended Feb 21, 2020 7:06 PM
Duration 23:32 💡
OS Linux Ubuntu Linux - 16.04
Browser Firefox 68

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Contributor

@roschaefer roschaefer left a comment

Choose a reason for hiding this comment

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

I merged #3119 and if that lets all the dependency PRs pass, I'd say let's close this?

"cypress:run": "cross-env cypress run",
"cypress:open": "cross-env cypress open",
"cypress:run": "cross-env cypress run --browser firefox",
"cypress:open": "cross-env cypress open --browser firefox",
Copy link
Contributor

Choose a reason for hiding this comment

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

That has the drawback that we cannot record our cypress tests anymore 😢 can we close?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, actually it doesn't, if you look at the build, or click on cypress, you can see that all the videos were recorded

Copy link
Member Author

Choose a reason for hiding this comment

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

I wouldn't close, is there any justifiable reason to use a different browser than what we recommend our users to use for e2e tests?

@@ -169,7 +169,7 @@ Then('each list item links to the post page', () => {
Then('I can visit the post page', () => {
cy.contains(annoyingUserWhoMutedModeratorTitle).click()
cy.location('pathname').should('contain', '/post')
.get('h3').should('contain', annoyingUserWhoMutedModeratorTitle)
.get('.ds-card-content .hyphenate-text').should('contain', annoyingUserWhoMutedModeratorTitle)
Copy link
Contributor

Choose a reason for hiding this comment

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

Code creep?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could be, yes.
It failed locally, but that was in headless. Also, I was reading cypress docs and they suggest to never use tags as selectors.
We could open another PR to clean up our cypress code though

@mattwr18 mattwr18 changed the title Favor firefox in cypress chore(cypress): Favor firefox in cypress Feb 21, 2020
Copy link
Contributor

@roschaefer roschaefer left a comment

Choose a reason for hiding this comment

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

👍 let's keep fingers crossed.

@roschaefer roschaefer force-pushed the favor-firefox-in-cypress branch from 482001d to 073d986 Compare February 21, 2020 11:04
- we have recommended our users to use firefox, so why should we test in
  Electron?
@mattwr18 mattwr18 force-pushed the favor-firefox-in-cypress branch from 073d986 to 2516da5 Compare February 21, 2020 13:50
@@ -169,7 +169,7 @@ Then('each list item links to the post page', () => {
Then('I can visit the post page', () => {
cy.contains(annoyingUserWhoMutedModeratorTitle).click()
cy.location('pathname').should('contain', '/post')
.get('title').should('contain', annoyingUserWhoMutedModeratorTitle)
.get('.base-card .title').should('contain', annoyingUserWhoMutedModeratorTitle)
Copy link
Member Author

Choose a reason for hiding this comment

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

not related to this PR directly, but not even sure how this was passing!? the title doesn't have a . indicating it's a class 🤷‍♀️

"baseUrl": "http://localhost:3000",
"env": {
"RETRIES": 2
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Also, not related to firefox as a test runner, but unless I'm missing something, does anyone think retries are actually occurring? hopefully, we can see some evidence that this works

@cypress
Copy link

cypress bot commented Feb 21, 2020



Test summary

66 0 0 0


Run details

Project Human-Connection
Status Passed
Commit 92ca890 ℹ️
Started Feb 21, 2020 7:08 PM
Ended Feb 21, 2020 7:31 PM
Duration 23:03 💡
OS Linux Ubuntu Linux - 16.04
Browser Firefox 68

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@roschaefer roschaefer merged commit b0505ec into master Feb 21, 2020
@roschaefer roschaefer deleted the favor-firefox-in-cypress branch February 21, 2020 21:04
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.

2 participants