Skip to content

Commit

Permalink
Favor firefox as test runner in cypress
Browse files Browse the repository at this point in the history
- we have recommended our users to use firefox, so why should we test in
  Electron?
  • Loading branch information
mattwr18 committed Feb 20, 2020
1 parent 0df4038 commit 482001d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ addons:
- libgconf-2-4
snaps:
- docker

firefox: "latest-esr"

install:
- yarn global add wait-on
# Install Codecov
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/common/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

When("they have a post someone has reported", () => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"cypress:backend": "cd backend && yarn run dev",
"cypress:webapp": "cd webapp && yarn run dev",
"cypress:setup": "run-p cypress:backend cypress:webapp",
"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",
"cucumber:setup": "cd backend && yarn run dev",
"cucumber": "wait-on tcp:4000 && cucumber-js --require-module @babel/register --exit",
"release": "standard-version",
Expand Down

0 comments on commit 482001d

Please sign in to comment.