-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
after:run not run when closing the test runner #18955
Comments
Thanks for the detailed repro steps, I've verified that it's broken as described. Looks like after:run is supposed to be triggered from ProjectBase.close(), but this isn't getting invoked at all. I suspect this is an oversight in resetOpenProject, but I'm not super familiar with this area of code to be sure. |
This still seems to be true with 10.9.0 |
Any news regarding this issue? Still the same with v12.3.0... |
Messages are no longer lingering in the runtime, but passed along to the backend using tasks immediately. This is a prerequisite for the following issues: - 810 [1] - 824 [2] - 944 [3] This is not to say that these will be fixed shortly or even at all, but at least now it will be remotely possible. Furthermore, this removes any doubt regarding whether reports work in interactive mode. The experimental flag simply turns out to be too broken [4-5]. Interactive mode is now detected and reports turned off. Lastly, detecting interactive mode is a somewhat broken feature [6]. The workaround (using `isTextTerminal`) is only available in Cypress v10 and beyond. Thus is Cypress v9 now unsupported. [1] #810 [2] #824 [3] #944 [4] cypress-io/cypress#18955 [5] cypress-io/cypress#26634 [6] cypress-io/cypress#20789
Messages are no longer lingering in the runtime, but passed along to the backend using tasks immediately. This is a prerequisite for the following issues: - 810 [1] - 824 [2] - 944 [3] This is not to say that these will be fixed shortly or even at all, but at least now it will be remotely possible. Furthermore, this removes any doubt regarding whether reports work in interactive mode. The experimental flag simply turns out to be too broken [4-5]. Interactive mode is now detected and reports turned off. Lastly, detecting interactive mode is a somewhat broken feature [6]. The workaround (using `isTextTerminal`) is only available in Cypress v10 and beyond. Thus is Cypress v9 now unsupported. [1] #810 [2] #824 [3] #944 [4] cypress-io/cypress#18955 [5] cypress-io/cypress#26634 [6] cypress-io/cypress#20789
Messages are no longer lingering in the runtime, but passed along to the backend using tasks immediately. This is a prerequisite for the following issues: - 810 [1] - 824 [2] - 944 [3] This is not to say that these will be fixed shortly or even at all, but at least now it will be remotely possible. Furthermore, this removes any doubt regarding whether reports work in interactive mode. The experimental flag simply turns out to be too broken [4-5]. Interactive mode is now detected and reports turned off. Lastly, detecting interactive mode is a somewhat broken feature [6]. The workaround (using `isTextTerminal`) is only available in Cypress v10 and beyond. Thus is Cypress v9 now unsupported. [1] #810 [2] #824 [3] #944 [4] cypress-io/cypress#18955 [5] cypress-io/cypress#26634 [6] cypress-io/cypress#20789
Messages are no longer lingering in the runtime, but passed along to the backend using tasks immediately. This is a prerequisite for the following issues: - 810 [1] - 824 [2] - 944 [3] This is not to say that these will be fixed shortly or even at all, but at least now it will be remotely possible. Furthermore, this removes any doubt regarding whether reports work in interactive mode. The experimental flag simply turns out to be too broken [4-5]. Interactive mode is now detected and reports turned off. Lastly, detecting interactive mode is a somewhat broken feature [6]. The workaround (using `isTextTerminal`) is only available in Cypress v10 and beyond. Thus is Cypress v9 now unsupported. [1] #810 [2] #824 [3] #944 [4] cypress-io/cypress#18955 [5] cypress-io/cypress#26634 [6] cypress-io/cypress#20789
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This bug is still present in v12.17.1. |
Still present in 13.5.0 |
Any news here? |
Still happening in 14.0.0 |
Current behavior
From the after:run api documentation :
The after:run event fires after a run is finished. When running cypress via cypress open, the event will fire when closing a project.
The before:run event it triggered perfectly fine and I see the log output in the terminal. But when I close the test runner tool window nothing happens, there is no log output in the terminal. I tried different ways to close the project: by selecting close window from the menu, by pressing ctrl+c in the terminal and by closing the window using the window manager.
Desired behavior
On closing the test runner tool window after:run event is triggered
Test code to reproduce
Enable experimental flag in config file:
"experimentalInteractiveRunEvents": true
In plugins/index.js:
Cypress Version
8.7.0 and 9.0.0
Other
No response
The text was updated successfully, but these errors were encountered: