Retry is not working when it is added in describe block -2nd attempt hangs forever #27957
Unanswered
cihanaygunes
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Retry option is not working when i add it in describe block. First attempt fails, however during the second attempt, it hangs in there and stays forever doing nothing. Neither it fails the test or passes. Here is what my test looks like.
Has anyone experienced such an issue? I saw similar issues with retry but it seems theirs usually happens during validations. Thanks in advance.
`const story = 'Do something';
describe(
${story}
,{
retries: 1,
},
() => {
beforeEach(async () => {
await stageTestData(Scenario.secretWay, house.secretAddress, brand?.name);
});
it('should do some validations', { tags: ['@regression', '@house'] }, () => {
cy.visit('www.something.com');
cy.login();
cy.get('[data-testid=some-secret-id]').click();
cy.get('.serviceCompletion', { timeout: 0 }).get('[data-testid=submit]').should('have.length', 1);
});
});`
Beta Was this translation helpful? Give feedback.
All reactions