Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tests within the same script are marked as skipped after a domain change #179

Closed
nlclarke opened this issue Jan 3, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@nlclarke
Copy link

nlclarke commented Jan 3, 2023

Describe the bug
Tests within the same script are marked as skipped after a domain change.

If cy.visit() is executed on multiple "new" domain within the same test script, the Cypress Runner is refreshed/cleared.

All test cases that were executed before each restart are marked skipped in the generated json files and report.

Test Code to Reproduce:
https://github.com/nlclarke/cypress-allure-plugin-issue-1
(Steps to run included in readme)

In this example, all but the last test case are marked as skipped despite being run successfully.

To Reproduce
Steps to reproduce the behavior:

  1. Create a cypress script with 2 or more test case where you visit a different domain for each test
  2. Observe the generated allure test results to see that tests prior to last domain change are marked as skipped

Expected behavior
All test cases should have the correct result status

Environment (please complete the following information):

  • Cypress version: 12.2.0
  • OS: Windows
  • cypress-allure-plugin version: 2.34.0
@Shelex
Copy link
Owner

Shelex commented Apr 5, 2023

Hi @nlclarke
Issue is resolved in v2.38.3

Example report

@nlclarke
Copy link
Author

nlclarke commented Apr 6, 2023

Great everything looks to be working on my end. Thank you!

@nlclarke nlclarke closed this as completed Apr 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants