You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
in BDD or Gherkin mode, the After is not synchronous where next scenario starts (while the After is still executing) #4288
In BDD / Gherkin mode, After to be synchronous so it run to completion before the next scenario starts
Scenario 1
After --- run completely before Scenario 2 start
Scenario 2
What do you get instead?
After is asynchronous so it might still running while the next scenario already starting
It seems that the After implementation is based on event which is independent from the promise chain.
this is closely related to this #3870 but in this case, we are on After where we requires teardown of certain UI steps (which means we need to use the I and the approach of recorder doesn't work for us) before proceeding to next scenario
Agreed… this is really troubling a lot especially handling the after test events in the UI. Would be great if @kobenguyent you can fix this. I believe there was a similar issue with WebdriverIO and they fixed it.
@DavertMik@kobenguyent - could you please address this? At least if we could use the “I” object in the hooks, it would help us. Currently, adding the “I” object to the recorder inside a hook does nothing and just hangs.
@nnanoob I totally forgot to add this comment earlier. While revisiting the issues I raised, I realized that as a workaround, you can always use the hooks available by extending the Helper (https://codecept.io/helpers/#development). It runs flawlessly without issues.
Activity
nnanoob commentedon Apr 4, 2024
this is closely related to this #3870 but in this case, we are on
Afterwhere we requires teardown of certain UI steps (which means we need to use theIand the approach of recorder doesn't work for us) before proceeding to next scenariomyrepojuly commentedon Apr 4, 2024
Agreed… this is really troubling a lot especially handling the after test events in the UI. Would be great if @kobenguyent you can fix this. I believe there was a similar issue with WebdriverIO and they fixed it.
myrepojuly commentedon Apr 5, 2024
@DavertMik would you be able to help us with this issue? Pls let us of you need more info…
DavertMik commentedon Apr 12, 2024
@nnanoob @myrepojuly1987
sorry, I don't think I can provide a quick fix on this
maybe you could use
recorderto synchonize actions inside it?If you have better suggestion, please send a PR
myrepojuly commentedon Apr 13, 2024
@DavertMik Adding the actions to the recorder does not work and it just hangs. Sure, will check for better suggestions.
github-actions commentedon Jul 13, 2024
This issue is stale because it has been open for 90 days with no activity.
myrepojuly commentedon Oct 25, 2024
@DavertMik @kobenguyent - could you please address this? At least if we could use the “I” object in the hooks, it would help us. Currently, adding the “I” object to the recorder inside a hook does nothing and just hangs.
github-actions commentedon Jan 25, 2025
This issue is stale because it has been open for 90 days with no activity.
myrepojuly commentedon Aug 31, 2025
@nnanoob I totally forgot to add this comment earlier. While revisiting the issues I raised, I realized that as a workaround, you can always use the hooks available by extending the Helper (https://codecept.io/helpers/#development). It runs flawlessly without issues.
@kobenguyent - just FYI