Merge pull request #3121 from Human-Connection/favor-firefox-in-cypress

chore(cypress): Favor firefox in cypress
This commit is contained in:
Robert Schäfer 2020-02-21 22:04:16 +01:00 committed by GitHub
commit b0505ecccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 6 deletions

View File

@ -6,7 +6,8 @@ addons:
- libgconf-2-4
snaps:
- docker
firefox: "latest-esr"
install:
- yarn global add wait-on
# Install Codecov

View File

@ -1,5 +1,8 @@
{
"projectId": "qa7fe2",
"ignoreTestFiles": "*.js",
"baseUrl": "http://localhost:3000"
"baseUrl": "http://localhost:3000",
"env": {
"RETRIES": 2
}
}

View File

@ -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)
})
When("they have a post someone has reported", () => {

View File

@ -167,7 +167,8 @@ When("I fill in my email and password combination and click submit", () => {
});
When(/(?:when )?I refresh the page/, () => {
cy.reload();
cy.visit('/')
.reload();
});
When("I log out through the menu in the top right corner", () => {

View File

@ -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",