Skip to content

Commit

Permalink
Develop (#108)
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 19, 2024
2 parents 9a9e135 + 8b0a396 commit fcb3b44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ui_suites_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,30 @@ jobs:
tags: 'web_tests and healthcheck'
config_file: ./env_configs/win_chrome.json
html_report: win-chrome
suite_name: 'Health Check'

- name: Win Firefox
baseurl: https://opensource-demo.orangehrmlive.com
tags: 'web_tests and firefox and smoke'
config_file: ./env_configs/win_firefox.json
html_report: win-firefox
suite_name: 'Smoke'

- name: Win Edge
baseurl: https://opensource-demo.orangehrmlive.com
tags: 'web_tests and sanity'
config_file: ./env_configs/win_edge.json
html_report: win-edge
suite_name: 'Sanity'

- name: Mac Safari
baseurl: https://opensource-demo.orangehrmlive.com
tags: 'web_tests and regression'
config_file: ./env_configs/mac_safari.json
html_report: mac-safari
suite_name: 'Regression'

name: ${{ matrix.name }} - Regression
name: ${{ matrix.name }} - ${{ matrix.suite_name }}
runs-on: ubuntu-latest
steps:
- name: Setup Python
Expand Down
4 changes: 2 additions & 2 deletions main/frontend/common/step_definitions/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ def check_email(user_type, selenium_generics: SeleniumGenerics):

yesterday = today - timedelta(days=1)
date_today = today.strftime("%d %b %Y")
date_yesterday = yesterday.strftime("%d %b %Y")
date_old = yesterday.strftime("%d %b %Y")
if '0' in date_today[0]:
date_today = date_today[1:]
f = open(test_data_dir)
data = json.load(f)
for i in data:
value = i
if ("Test Project Data" in value["Subject"] and "[email protected]" in value["From"]) \
and (date_today in value["Date"] or date_yesterday in value["Date"]) and (user_type in value["To"]):
and (date_old < value["Date"]) and (user_type in value["To"]):
decoded_data = base64.b64decode(value["Message"])
soup = BeautifulSoup(decoded_data, "lxml")
email_body = str(soup.body()[0])
Expand Down

0 comments on commit fcb3b44

Please sign in to comment.