Skip to content

Commit

Permalink
Modus Header test cases fixed (#144)
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 40bfae7 + 8079a8f commit b6d5540
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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 @@ -64,7 +64,7 @@ Feature: OrangeHRM Login and Modus QA blog
And The browser resolution is '1024' per '768'
And The title is 'Modus Create | Consulting and Product Development Partner'
When The element 'Modus_Site > main_heading' is displayed
And I click item 'Blog' for element 'Modus_Site > header_link'
And I click item 'OUR RESOURCES' for element 'Modus_Site > header_link'
And The title is 'Blog | Digital Transformation Insights - Modus Create'
When The element 'Modus_Site > dropdown' is displayed
# Dropdown has some specific values now so can't select
Expand Down Expand Up @@ -133,7 +133,7 @@ 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 click item 'Careers' for element 'Modus_Site > header_link'
And I hover over 'Modus_Site > header_menu_link' and click element 'sub_header_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
Expand Down
4 changes: 3 additions & 1 deletion frontend/test_project/locators/Web_locators.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
}
},
"Modus_Site": {
"header_link": "//ul[@id='menu-main-nav-1']//a[@class='nav-link'][normalize-space()='{}']",
"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']",
"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 b6d5540

Please sign in to comment.