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
I have 70+ tests with userRole and runs with quarantine mode on.
What is the Current behavior?
If login page fails to render for an unknown reason (for example due to rendering issue, page fails to load) in the Role initialization sequence. All my tests are marked as failed with 'Error in Role initializer'. I don't see quarantine mode attempt happening in this case. See attached test code.
What is the Expected behavior?
I would like to see quarantine mode happen if error in role initializer occurs until it passes or fails three times.
What is your web application and your TestCafe test code?
Your website URL (or attach your complete example):Your complete test code (or attach your test files):
import{Selector,Role}from'testcafe';constuser=Role(`http://testing-ground.scraping.pro/login`,asynct=>{lettimesRun=1;awaitconsole.log(timesRun++);awaitt.expect(Selector('.xyz').exists).ok('Test should fail here.');},{preserveUrl: true});fixture`My Fixture`test('test 1',asynct=>{awaitt.useRole(user);});test('test 2',asynct=>{awaitt.useRole(user);});test('test 3',asynct=>{awaitt.useRole(user);});test('test 4',asynct=>{awaitt.useRole(user);});
Role is initialized only once. So, a function passed to 'Role' as an argument will be called only once even in quarantine mode. I suggest you move the code that you want to execute in quarantine mode outside of the Role's initialization.
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.
What is your Test Scenario?
I have 70+ tests with userRole and runs with quarantine mode on.
What is the Current behavior?
If login page fails to render for an unknown reason (for example due to rendering issue, page fails to load) in the Role initialization sequence. All my tests are marked as failed with 'Error in Role initializer'. I don't see quarantine mode attempt happening in this case. See attached test code.
What is the Expected behavior?
I would like to see quarantine mode happen if error in role initializer occurs until it passes or fails three times.
What is your web application and your TestCafe test code?
Your website URL (or attach your complete example):
Your complete test code (or attach your test files):
Your complete configuration file (if any):
Your complete test report:
Screenshots:
Steps to Reproduce:
Your Environment details:
The text was updated successfully, but these errors were encountered: