Skip to content

Commit

Permalink
Add cypress dashboard (#343)
Browse files Browse the repository at this point in the history
* no message

* add tests status to readme

* increase retries

* bring back the video

* increase timeout

* change video config

* add wait to fight flakiness

* remove videoUploadOnPasses
  • Loading branch information
jpita authored Mar 10, 2021
1 parent 6a14796 commit d2a292a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
"no-only-tests"
],
"rules": {
"no-only-tests/no-only-tests": "error"
"no-only-tests/no-only-tests": "error",
"cypress/no-unnecessary-waiting": "warn"
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![wikipedia-kaios](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/detailed/7izdto&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/7izdto/runs)
[![CircleCI](https://circleci.com/gh/wikimedia/wikipedia-kaios/tree/master.svg?style=svg)](https://circleci.com/gh/wikimedia/wikipedia-kaios/tree/master)

# Wikipedia KaiOS
Expand Down
15 changes: 7 additions & 8 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"viewportWidth": 240,
"viewportHeight": 290,
"videoUploadOnPasses": false,
"modifyObstructiveCode": false,
"baseUrl": "http://127.0.0.1:8080",
"video": false,
"retries": 3
{
"viewportWidth": 240,
"viewportHeight": 290,
"videoUploadOnPasses": false,
"baseUrl": "http://127.0.0.1:8080",
"retries": 5,
"defaultCommandTimeout": 8000
}
1 change: 1 addition & 0 deletions cypress/integration/search-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe('Article search', () => {
searchPage.search('cat')
cy.getCenterSoftkeyButton().should('not.have.text')
searchPage.results().first()
cy.wait(500)
cy.downArrow()
cy.getCenterSoftkeyButton().should('have.text', enJson['centerkey-select'])
cy.upArrow()
Expand Down
1 change: 1 addition & 0 deletions cypress/integration/special-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe('special cases tests', () => {

it('gallery opens from a non-english article', () => {
cy.navigateToPageWithoutOnboarding('article/pl/Tupolew_Tu-154/Użytkownicy[24]')
cy.wait(500)
articlePage.title().should('have.text', 'Użytkownicy[24]')
cy.rightArrow()
cy.enter()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"cypress:fix-lint": "eslint cypress/ --fix",
"cypress:run": "cypress run",
"cypress:run:firefox": "cypress run --browser firefox",
"cypress:run:firefox:headless": "cypress run --browser firefox --headless",
"cypress:run:firefox:headless": "cypress run --browser firefox --headless --record --key $CYPRESS_RECORD_KEY",
"cypress:open": "cypress open"
},
"repository": {
Expand Down

0 comments on commit d2a292a

Please sign in to comment.