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: update fileUploadComponent.spec.ts to improve test reliability, performance and readability #4856

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

anovazzi1
Copy link
Contributor

This pull request includes a refactoring of the fileUploadComponent.spec.ts file to improve the reliability and readability of the tests. The changes include updating the wait conditions in the tests to use waitForSelector instead of waitForTimeout for better synchronization. Additionally, the expectation for the visibility of a test file has been updated to use toBeVisible instead of isVisible for more accurate results. These changes aim to enhance the overall quality and maintainability of the test suite.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 26, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 26, 2024
@anovazzi1 anovazzi1 changed the title Refactor fileUploadComponent.spec.ts to improve test reliability, performance and readability Refactor: update fileUploadComponent.spec.ts to improve test reliability, performance and readability Nov 26, 2024
@anovazzi1 anovazzi1 enabled auto-merge (squash) November 27, 2024 13:00
@ogabrielluiz ogabrielluiz force-pushed the ImprovefileUploadComponentTest branch from c6712c9 to 6e0af12 Compare November 27, 2024 15:40
@anovazzi1 anovazzi1 merged commit 4d59959 into main Nov 27, 2024
18 checks passed
@anovazzi1 anovazzi1 deleted the ImprovefileUploadComponentTest branch November 27, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants