Skip to content

Commit

Permalink
Jobs search test case fixed (#145)
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
tauqirsarwar1 authored Jul 24, 2024
2 parents b6d5540 + 77e68c2 commit 546fad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/test_project/features/web/web_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ Feature: OrangeHRM Login and Modus QA blog
And Browser is maximized
And The title is 'Modus Create | Consulting and Product Development Partner'
When The element 'Modus_Site > main_heading' is displayed
And I hover over 'Modus_Site > header_menu_link' and click element 'sub_header_link'
And I hover over 'Modus_Site > jobs_link' and click element 'Modus_Site > jobs_link'
And The title is 'Modus Create - Careers | Digital Transformation Consultants'
And The element 'Modus_Site > Careers > dropdown_area' is displayed
And The element 'Modus_Site > Careers > job_container' is displayed
And I move to element 'Modus_Site > Careers > dropdown_area'
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 'Bazel Engineer' for element 'Modus_Site > Careers > job_title'
And I click item 'Android Engineer' for element 'Modus_Site > Careers > job_title'
Then The page url contains 'com/careers/'
When The element 'Modus_Site > Careers > main_iframe' is displayed
And I switch to iframe 'Modus_Site > Careers > main_iframe'
Expand Down
3 changes: 1 addition & 2 deletions frontend/test_project/locators/Web_locators.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
},
"Modus_Site": {
"header_link": "//ul[@class='brex-mega-menu']//a[normalize-space()='{}']",
"header_menu_link": "//ul[@class='brex-mega-menu']//a[normalize-space()='WHO WE ARE']",
"sub_header_link": "//strong[normalize-space()='Careers']",
"jobs_link": "//p/a[contains(text(),'Careers')]",
"main_heading": "//span[normalize-space()='World-Class Product Partner']",
"dropdown": "//select[@class='facetwp-dropdown']",
"search_bar": "//input[@placeholder='Search']",
Expand Down

0 comments on commit 546fad6

Please sign in to comment.