-
Notifications
You must be signed in to change notification settings - Fork 117
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): turn on new cypress tests in ci #2056
Conversation
|
@@ -85,7 +85,7 @@ declare namespace Cypress { | |||
Cypress.Commands.add('getDocsPageContentArea', () => cy.get('#paste-docs-content-area')); | |||
|
|||
Cypress.Commands.add('pageHeaderShouldBeVisible', (headerText) => { | |||
cy.contains('h1', headerText).shouldBeVisible(); | |||
cy.contains('h1', headerText, {matchCase: false}).shouldBeVisible(); |
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.
Turning on loose text matching since we are already matching the header with the h1
element.
@@ -70,7 +70,7 @@ | |||
"test:tools": "jest ./tools/ -c ./tools/jest.config.js", | |||
"test:tools-16": "USE_REACT_16=true jest ./tools/ -c ./tools/jest.config.js", | |||
"test:coverage": "yarn pre-test && jest --coverage", | |||
"test:website": "start-server-and-test 'yarn serve:website' http://localhost:9000 'yarn cypress run --record --spec ./cypress/integration/**/*.spec.ts'", | |||
"test:website": "start-server-and-test 'yarn serve:website' http://localhost:9000 'yarn cypress run --record --spec ./cypress/integration/**/**/*.spec.ts'", |
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.
Include all specs in ci tests.
✔️ Deploy Preview for paste-theme-designer ready! 🔨 Explore the source changes: 33f0826 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-theme-designer/deploys/619729641f4c390007b1ea8b 😎 Browse the preview: https://deploy-preview-2056--paste-theme-designer.netlify.app |
✔️ Deploy Preview for paste-docs ready! 🔨 Explore the source changes: 33f0826 🔍 Inspect the deploy log: https://app.netlify.com/sites/paste-docs/deploys/61972964a2139d0007522d53 😎 Browse the preview: https://deploy-preview-2056--paste-docs.netlify.app |
Size Change: 0 B Total Size: 449 kB ℹ️ View Unchanged
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5b27fd4:
|
Test summaryRun details
View run in Cypress Dashboard ➡️ FailuresThis 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 |
The code looks ok, but I am worried that 2 of the tests timed out on cypress.. This happened before with the sidebar and we ended up having to change the test bc cypress wouldn't scroll to find the sidebar links. Is it always the same tests that time out (Tabs and Stack)? Or would it fluctuate from run to run? |
@TheSisb @shleewhite I'll look at these now. FWIW I ran these tests 10 times locally and they all passed (including the flakey tests check). With regard to the fix up for the sidebar, I have a separate branch with an upgrade to cypress v8 and that is not an ideal solution for the problem. I added a cypress command to find items in a fixed container, which also works for sidebar. Will post an update when I have one. |
7a3fb9d
to
9da8464
Compare
8a04ed5
to
c78fe79
Compare
Closing in favor of: #2063 |
Contributing to Twilio