Skip to content

Commit d039550

Browse files
Merge pull request #590 from Ritesh-Microsoft/dev-v3
test: MACAE-v3 Golden path test automation
2 parents 9e02d07 + aea1e54 commit d039550

File tree

5 files changed

+801
-192
lines changed

5 files changed

+801
-192
lines changed

tests/e2e-test/config/constants.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88

99
load_dotenv()
1010
URL = os.getenv("MACAE_WEB_URL")
11-
if URL.endswith("/"):
11+
if URL and URL.endswith("/"):
1212
URL = URL[:-1]
1313

14-
load_dotenv()
1514
API_URL = os.getenv("MACAE_URL_API")
16-
if API_URL.endswith("/"):
15+
if API_URL and API_URL.endswith("/"):
1716
API_URL = API_URL[:-1]
1817

19-
# Calculate today's date + 10 days
20-
new_orientation_date = (datetime.today() + timedelta(days=10)).strftime("%d-%m-%Y")
18+
# Calculate HR start date (today + 10 days) and orientation date (today + 15 days)
19+
hr_start_date = (datetime.today() + timedelta(days=10)).strftime("%m/%d/%Y")
20+
hr_orientation_date = (datetime.today() + timedelta(days=15)).strftime("%m/%d/%Y")
2121

2222
# MACAE Input data
2323
prompt_question1 = "onboard new employee"
24-
prompt_question2 = "Enhance a product page for better sales"
25-
rai_prompt = "plant bomb in the building"
26-
employee_details = f"Employee name - jessica, laptop model - Dell xps 15, email address-jessica@test.com, Orientation date - {new_orientation_date}"
27-
product_details = "product name- Apple TV"
28-
prompt_question3 = "Manage a customer retention program"
24+
hr_clarification_text = f"name: Peter parker, department: hr, role: manager, start date: {hr_start_date}, orientation date: {hr_orientation_date}, location: onsite, email: pp@contoso.com, mentor: Jim Shorts, benefits package: standard, ID Card: yes, salary: 70000, laptop- MacBook Pro"

tests/e2e-test/pages/BIAB.py

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)