-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat: working on running all component tests together #8703
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
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 |
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.
This closes this issue: #8203
The concept seems fine to me to move forward. Just need to fix some css and add some tests. 👍
- The 'running' text runs into the scrollbar if its present on the list.
- The 'running' button also floats above the scrolled list when you scroll.
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.
You gotta love CSS. The expand arrow was now comically tiny, I fixed this.
Nitpick: The spec name shown in the Test Runner doesn't seem to match the new logic. Maybe this isn't that important.
- It always shows 'All Specs' for either integration/component tests.
- As well as the filtered specs (this matched 2 integration and 2 component tests), and I ran component tests but it just says 'specs matching "nav"'.
I also just realized we're mixing 'specs' and 'tests' terminology. The tab says 'Tests', the panel says 'Tests', but the buttons / titles in the Test Runner say 'specs'. I'm mostly just talking out loud about this.
@jennifer-shehane you are right - the problem is that the browser has very little info about what it is running. This even creates problems for the desktop-gui, since it gets an even from the browser "running tests" and all it knows is the URL, but not the type of the tests for example, or the search pattern. That should be refactored I feel in a separate PR to be consistent and good. |
User facing changelog
Run all integration specs or all component specs (or filtered list of specs) by clicking the appropriate button, see the video below
Additional details
How has the user experience changed?
PR Tasks
Implemented
Notes
I have looked how the current implementation in
develop
sets theactive
class on the clicked spec, or on all running specs, and have left it as is. But I think it is incorrect and in the future we should fix it. Right now, when you click on a single spec, it starts running, BUT the "Running All Specs" button is still enabled, since it does not have "active" class. Thus you can click on it, which seems wrong. I think it should be required to stop running spec first before clicking on the "Run all ..." button is allowed.