Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

refactor functional test to use conditional afterEach #2813

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

ArtjomsPorss
Copy link
Contributor

@ArtjomsPorss ArtjomsPorss commented Nov 28, 2024

Description

refactor ui functional tests - moved cleanup out of the test into afterEach step.
afterEach checks which test was run and executes corresponding cleanup logic.
Cannot use after step because these run after execution of all tests in the file and it doesn't help when separate tests test same functionality and require it to be in clean state.

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review November 29, 2024 13:58
@ArtjomsPorss ArtjomsPorss changed the title fix functional test to use conditional afterEach refactor functional test to use conditional afterEach Nov 29, 2024
@havetisyan havetisyan merged commit e160d02 into AthenZ:master Nov 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants