Skip to content

Commit

Permalink
locators updated (#74)
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 Mar 28, 2024
2 parents 35a5f1e + f18491f commit 7c8d530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/test_project/features/web/login_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ Feature: OrangeHRM Login and Modus QA blog
And The title is 'Modus Create - Careers | Digital Transformation Consultants'
And The element 'Modus_Site > Careers > dropdown_filter' is displayed
And I move to element 'Modus_Site > Careers > dropdown_filter'
And I pause for '2' s
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'
Expand All @@ -147,7 +146,7 @@ Feature: OrangeHRM Login and Modus QA blog
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'
And I set text 'Lahore, Punjab, Pakistan' to field 'Modus_Site > Careers > location_field'
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'
Expand Down
3 changes: 2 additions & 1 deletion frontend/test_project/locators/Web_locators.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"last_name": "//input[@id='last_name']",
"email": "//input[@id='email']",
"phone": "//input[@id='phone']",
"location": "//a[@class='locate-me']",
"location_link": "//a[@class='locate-me']",
"location_field": "//auto-complete/input[@id='auto_complete_input']",
"job_search": "//h2[@class='job-title']/a",
"resume_link": "//*[contains(text(),'or enter manually')]",
"resume_text": "//*[@id='resume_text']",
Expand Down

0 comments on commit 7c8d530

Please sign in to comment.