Skip to content

Support shared Cypress test suites #2422

@Airiinnn

Description

@Airiinnn

What feature(s) would you like to see in RepoSense

With the recent addition of the portfolio mode of the report, we now have 2 different modes of the report. The previously existing Cypress tests only run on the default mode. There is an entirely different set of Cypress tests for the portfolio mode.

This is not ideal as we expect some of the existing functionalities to work the same way on both modes, but is currently not being tested for the portfolio mode.

Is the feature request related to a problem?

If possible, describe the solution

I propose refactoring the Cypress tests into:

  • cypress/tests/common: Majority of the older tests should for under here and ran on both report modes.
  • cypress/tests/default: For default exclusive behavior.
  • cypress/tests/portfolio: For portfolio exclusive behavior.

This would make tests easier to maintain while ensuring better test coverage of the portfolio mode.

If applicable, describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions