Skip to content

Commit

Permalink
updated blog test (#102)
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 Apr 16, 2024
2 parents 3b1ea0d + f25989c commit 305e6fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/test_project/features/web/web_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Feature: OrangeHRM Login and Modus QA blog
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 'Please select the country where you are living' for element 'Modus_Site > Careers > form_dropdown'
And I click item 'Afghanistan' 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'
Expand Down
2 changes: 1 addition & 1 deletion frontend/test_project/locators/Web_locators.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"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']",
"form_dropdown": "//label[contains(text(),'{}')]/div",
"form_dropdown": "//label[contains(text(),'{}')]/div/a/span",
"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(),'{}')]",
Expand Down
3 changes: 3 additions & 0 deletions main/frontend/frontend_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def chrome_options(chrome_options, variables, proxy_url, env_variables, request)
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--disable-dev-shm-usage")
chrome_options.add_argument("--window-size=1367,768")
chrome_options.add_argument("--disable-cookies")
chrome_options.add_argument("--disable-extensions")

if os.environ.get("USING_DOCKER", False) == 'True':
chrome_options.add_argument("--ignore-certificate-errors")
if proxy_url:
Expand Down

0 comments on commit 305e6fc

Please sign in to comment.