Skip to content

Commit

Permalink
Develop (#95)
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 15, 2024
2 parents dabab93 + ec82fff commit edbebf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ allure-report/*
reports/screenshots/*
/test_data/visualtesting/test/*
/output/
/test_data/files/*
/test_data/files/*.json
/test_data/files/*.txt
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 @@ -45,7 +45,7 @@ def check_email(user_type, selenium_generics: SeleniumGenerics):
decoded_data = base64.b64decode(value["Message"])
soup = BeautifulSoup(decoded_data, "lxml")
email_body = str(soup.body()[0])
url = re.findall('https://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*, ]|(?:%[0-9a-fA-F][0-9a-fA-F]))+',
url = re.findall('https?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|%[0-9a-fA-F][0-9a-fA-F])+',
email_body)
final_url = ""
if len(url) >= 1:
Expand All @@ -54,7 +54,7 @@ def check_email(user_type, selenium_generics: SeleniumGenerics):
decoded_data = base64.b64decode(value["Url"])
soup = BeautifulSoup(decoded_data, "lxml")
email_body = str(soup.body()[0])
url = re.findall('https://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*, ]|(?:%[0-9a-fA-F][0-9a-fA-F]))+',
url = re.findall('https?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|%[0-9a-fA-F][0-9a-fA-F])+',
email_body)
new_url = ''
for j in url:
Expand Down

0 comments on commit edbebf4

Please sign in to comment.