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
Hi, I have an issue with the newly added global configuration for retries option. I can see in the logs that the number of retries is properly identified however it's not applied in my case. What am I doing wrong? Explicitly setting the .retry(X) when defining the scenario it's still working as expected. For the retry object I tried all the possible ways defined in the Codeceptjs-retry and my last resort was to use all of them as seen in another issue (which was about typescript but I still gave it a try) and it's still not working. I really hope I'm doing something wrong and there is no actual issue. Any suggestions/workarounds are highly appreciated. Thank you!
What are you trying to achieve?
Use the global retry config option.
What do you get instead?
The options are not used.
Provide console output if related. Use --verbose mode for more details.
host:[~/test]$ codeceptjs run my_test.js --steps --debug --verbose
CodeceptJS v3.4.1 #StandWithUkraine
Using test root "/root/test"
Helpers: Playwright
Plugins: screenshotOnFail
Check retries --
[1] Starting recording promises
Retries: {"grep":"","Feature":0,"Scenario":3,"Before":3,"BeforeSuite":3,"After":0,"AfterSuite":0}
Timeouts: 3
› [Session] Starting singleton browser session
test I should retry
Retries: 3
› Test Timeout: 3s
I am on page "/"
I see "Moreee information..."
[1] Error | Error
[1] Error | Error
[1] <teardown> Stopping recording promises
› <screenshotOnFail> Test failed, try to save a screenshot
› Screenshot is saving to /root/test/output/test_I_should_retry.failed.png
✖ FAILED in 449ms
[2] Starting recording promises
-- FAILURES:
1) Check retries
test I should retry:
expected web application to include "Moreee information..."
+ expected - actual
-Example Domain
-
-This domain is forusein illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
-
-More information...
+Moreee information...
Scenario Steps:
- I.see("Moreee information...") at Test.<anonymous> (./my_test.js:6:6)
- I.amOnPage("/") at Test.<anonymous> (./my_test.js:5:6)
Artifacts:
- screenshot: /root/test/output/test_I_should_retry.failed.png
Provide test source code if related
Feature('Check retries');Scenario('test I should retry',({ I })=>{I.amOnPage("/");I.see("Moreee information...");});
Hi, I have an issue with the newly added global configuration for retries option. I can see in the logs that the number of retries is properly identified however it's not applied in my case. What am I doing wrong? Explicitly setting the
.retry(X)
when defining the scenario it's still working as expected. For the retry object I tried all the possible ways defined in the Codeceptjs-retry and my last resort was to use all of them as seen in another issue (which was about typescript but I still gave it a try) and it's still not working. I really hope I'm doing something wrong and there is no actual issue. Any suggestions/workarounds are highly appreciated. Thank you!What are you trying to achieve?
Use the global retry config option.
What do you get instead?
The options are not used.
Details
The text was updated successfully, but these errors were encountered: