diff --git a/.github/workflows/ui_suites_workflow.yml b/.github/workflows/ui_suites_workflow.yml index 7be673fb..a9407199 100644 --- a/.github/workflows/ui_suites_workflow.yml +++ b/.github/workflows/ui_suites_workflow.yml @@ -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 diff --git a/main/frontend/common/step_definitions/email.py b/main/frontend/common/step_definitions/email.py index 4c1d57e4..a9b59448 100644 --- a/main/frontend/common/step_definitions/email.py +++ b/main/frontend/common/step_definitions/email.py @@ -29,7 +29,7 @@ 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) @@ -37,7 +37,7 @@ def check_email(user_type, selenium_generics: SeleniumGenerics): for i in data: value = i if ("Test Project Data" in value["Subject"] and "tauqirsarwar1@gmail.com" 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])