Skip to content

Commit

Permalink
Develop (#83)
Browse files Browse the repository at this point in the history
### To be filled by the PR creator:

* A brief description of the changes made - 

* Do we have clean latest run report (Docker or Browserstack) attached
with this PR?
  * [ ] Yes
  * [ ] No (Please explain why)

* Does the PR contain changes to any core file?
  * [ ] Yes (Needs approval from at least 1 people)
  * [ ] No

* Is it
  * [ ] New Testcase
  * [ ] Fix


### To be filled by the PR reviewer:

* [ ] Verify the attached run report passed in GitHub Actions (Docker or
Browserstack run)

* General
    * [ ] Use the best strategy to locate the elements
    * [ ] Comments wherever the code is not readable by itself
    * [ ] Use of the right data structure for the use case
    * [ ] Reuse logic/functionality as much as possible
    * [ ] Cleanup of any test data that is generated by the tests
    * [ ] No static waits
  • Loading branch information
Tauqir Sarwar authored Apr 3, 2024
2 parents 8446773 + 5c549bb commit e50506e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ Feature: OrangeHRM Login and Modus QA blog
And I click on element 'SourceDemo_Site > login_button'
Then The element 'SourceDemo_Site > login_error_message' is displayed


@job_search @automated
Scenario: Check QA modus job Search
Given I set web base url 'https://moduscreate.com'
Expand All @@ -141,4 +140,36 @@ Feature: OrangeHRM Login and Modus QA blog
And The element 'Modus_Site > Careers > job_container' is clickable
And I select the option 'Global' by value for element 'Modus_Site > Careers > dropdown_filter'
And I click item 'Android Engineer' for element 'Modus_Site > Careers > job_title'
Then The page url contains '4325051003'
Then The page url contains '4325051003'
When The element 'Modus_Site > Careers > main_iframe' is displayed
And I switch to iframe 'Modus_Site > Careers > main_iframe'
And I set text 'Tauqir' to field 'Modus_Site > Careers > first_name'
And I set text 'Sarwar' to field 'Modus_Site > Careers > last_name'
And I set text '[email protected]' to field 'Modus_Site > Careers > email'
And I set text '+921112563256' to field 'Modus_Site > Careers > phone'
And I click on button 'Modus_Site > Careers > location_link'
When The element 'Modus_Site > Careers > resume_link' is displayed
And I click on button 'Modus_Site > Careers > resume_link'
And I set text 'testing resume' to field 'Modus_Site > Careers > resume_text'
And I click item 'Please select the country' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Pakistan' for element 'Modus_Site > Careers > country_dropdown'
And I set text 'Modus Create' to field 'Modus_Site > Careers > current_company'
And I set text 'QA Consultant' to field 'Modus_Site > Careers > current_title'
And I click item 'Do you have a legal' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > legal_dropdown'
And I click item 'your consent in order' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > consent_dropdown'
And I click item 'work restricted' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > restricted_dropdown'
And I click item 'working for Modus as a Contract' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > contract_dropdown'
And I click item 'Modus before in any capacity' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > capacity_dropdown'
And I click item 'Please provide your salary expectations' for element 'Modus_Site > Careers > form_dropdown'
And I click item '$12,000 - $12,500' for element 'Modus_Site > Careers > salary_dropdown'
And I click item 'current notice period' for element 'Modus_Site > Careers > form_dropdown'
And I click item '1-2 weeks' for element 'Modus_Site > Careers > notice_dropdown'
And I click item 'Contractor. Understanding' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > position_dropdown'
And I click item 'data protection apps upon hire' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Yes' for element 'Modus_Site > Careers > protection_dropdown'
13 changes: 11 additions & 2 deletions frontend/test_project/locators/Web_locators.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@
"country_value": "//div/ul[@id='select2List0']/li/div[contains(text(),'{}')]",
"current_company": "//input[@id='job_application_answers_attributes_3_text_value']",
"current_title": "//input[@id='job_application_answers_attributes_4_text_value']",
"legal_right": "//div[@class='select2-result-label']"

"form_dropdown": "//label[contains(text(),'{}')]/div",
"country_dropdown": "//ul[@id='select2List0']/li/div[contains(text(),'{}')]",
"legal_dropdown": "//ul[@id='select2List1']/li/div[contains(text(),'{}')]",
"consent_dropdown": "//ul[@id='select2List2']/li/div[contains(text(),'{}')]",
"restricted_dropdown": "//ul[@id='select2List3']/li/div[contains(text(),'{}')]",
"contract_dropdown": "//ul[@id='select2List4']/li/div[contains(text(),'{}')]",
"capacity_dropdown": "//ul[@id='select2List5']/li/div[contains(text(),'{}')]",
"salary_dropdown": "//ul[@id='select2List6']/li/div[contains(text(),'{}')]",
"notice_dropdown": "//ul[@id='select2List7']/li/div[contains(text(),'{}')]",
"position_dropdown": "//ul[@id='select2List8']/li/div[contains(text(),'{}')]",
"protection_dropdown": "//ul[@id='select2List9']/li/div[contains(text(),'{}')]"
}
},
"SourceDemo_Site": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from frontend.test_project.step_definitions.shared_steps.common_steps import *
from main.plugin import PROJECT_DIR

scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/web/login_tests.feature"))
scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/web/web_tests.feature"))
scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/visual/visual_tests.feature"))


Expand Down

0 comments on commit e50506e

Please sign in to comment.