From 77e68c259d69ef90b1f159968cae0e002c593f89 Mon Sep 17 00:00:00 2001
From: tauqirsarwar1 <tauqir.sarwar@pfizer.com>
Date: Wed, 24 Jul 2024 17:52:27 +0500
Subject: [PATCH] Jobs search test case fixed

---
 frontend/test_project/features/web/web_tests.feature | 4 ++--
 frontend/test_project/locators/Web_locators.json     | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/frontend/test_project/features/web/web_tests.feature b/frontend/test_project/features/web/web_tests.feature
index e264871e..69d263c9 100644
--- a/frontend/test_project/features/web/web_tests.feature
+++ b/frontend/test_project/features/web/web_tests.feature
@@ -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'
diff --git a/frontend/test_project/locators/Web_locators.json b/frontend/test_project/locators/Web_locators.json
index 1f51e2eb..6328c4d2 100644
--- a/frontend/test_project/locators/Web_locators.json
+++ b/frontend/test_project/locators/Web_locators.json
@@ -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']",