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

Golang test cases for main.go, env.go; Playwright test cases for home page, chapter list & add chapter screens #2

Merged
merged 8 commits into from
Dec 2, 2024

Conversation

ankurcdoshi
Copy link
Collaborator

@ankurcdoshi ankurcdoshi commented Nov 11, 2024

  1. Code refactoring required to make code testable
  2. Test cases for env.go & main.go files
  3. Playwright tests on home page load and tabs, dropdown selection change, chapter list screen, columns' sort state, add chapter screen, delete chapter

1. Code refactoring required to make code testable
2. Test cases for env.go & main.go files
Playwright tests on dropdown selection change, chapter list screen, columns' sort state, add chapter screen
Sort icon related test case was failing when run together with all other tests, although it was working fine individually. Fixed by correcting sort state related code - Update sort state only if url has sort related query parameter, not otherwise.
@ankurcdoshi ankurcdoshi merged commit 09a76a3 into main Dec 2, 2024
1 check failed
@ankurcdoshi ankurcdoshi deleted the feat/test-cases branch December 2, 2024 12:43
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.

1 participant