-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rework selenium tests - Draft #180
Open
hussainsabir52
wants to merge
21
commits into
1-include-selenium-tests
Choose a base branch
from
rework-selenium-tests-hussain-2
base: 1-include-selenium-tests
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rework selenium tests - Draft #180
hussainsabir52
wants to merge
21
commits into
1-include-selenium-tests
from
rework-selenium-tests-hussain-2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…nteraction across multiple templates, including bundle, clinic, questionnaire, and user components.
- Introduced AuthenticationHelper, BundleHelper, ClinicHelper, QuestionHelper, QuestionnaireHelper, and supporting classes. - Added utility functions for managing and interacting with Selenium elements, such as click, fill, and scroll. - Implemented specific selectors for various test cases. - Enhanced navigation and element interaction for streamlined testing.
- Add type annotations and modularize helpers (Scores, Conditions, Bundles, etc.). - Extend with , , and . - Add navigation for questionnaire questions and scores. - Update HTML with missing element IDs.
- Added unique IDs for better element targeting: - Bundle links, login link, body part buttons, questionnaire rows, and score table. - Fixed typo in German message: 'Anworten' → 'Antworten'.
…um utility functions - AuthenticationAssertHelper: Introduced new helper for authentication-related tests with additional selectors. - BundleHelper: Refactoring for cleaner code structure. - ClinicHelper: Added new selectors and refactored existing methods for better maintainability. - ConditionHelper: Updated functions to enable actual condition creation, with new tests in the ConditionAssertHelper. - QuestionsHelper: Added new selectors, refactored to remove redundancy, and introduced new functions. Created tests for all question types in QuestionAssertHelper along with other question-related tests. - QuestionnaireHelper: Refactored code and added new selectors. Introduced QuestionnaireAssertHelper with initial tests. - ScoreHelper: Implemented functionality to create scores, supported by new tests in ScoreAssertHelper. - SeleniumUtils: Added utility functions like `drag_and_drop`, `fill_number_field`, and `scroll_to_bottom`.
- Unified methods for triggered and threshold-based questions. - Added using IDs. - Improved for empty table handling. - Enhanced for question types. - Added IDs to elements in condition tables for better referencing.
- Added page refresh to ensure UI updates, e.g., condition creation button visibility. - Improved validation after drag-and-drop operations.
- Split `test_admin_interface_tests` into smaller test cases (`login`, `index`, `questionnaire_question_types_score`, and `conditions`).
- Merged latest updates from Hussain’s branch into 'rework-selenium-tests-lueder'
…to rework-selenium-tests-hussain-2
Test Results:
|
Selenium Test Results
|
Selenium Test Results
|
Test Results:
|
Test Results:
|
Selenium Test Results
|
Test Results:
|
Selenium Test Results
|
Test Results:
|
Selenium Test Results
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rework selenium tests