Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e-test/pages/HomePage.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def start_over(self):
# Step 1: Click on START_OVER_BUTTON
logger.info("Step 1: Clicking on START_OVER_BUTTON...")
start_over_btn = self.page.locator(self.START_OVER_BUTTON)
expect(start_over_btn).to_be_visible(timeout=10000)
expect(start_over_btn).to_be_visible(timeout=30000)
start_over_btn.click()
self.page.wait_for_timeout(3000)
logger.info("✓ START_OVER_BUTTON clicked")
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-test/sample_dotenv_file.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MACAE_WEB_URL="https://your-web-app-url.com"
url="https://your-web-app-url.com"
11 changes: 4 additions & 7 deletions tests/e2e-test/tests/test_content_gen_gp_tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ def test_validate_start_over(login_logout, request):
Steps:
1. Validate home page elements are visible
2. Send prompt from quick link
3. Confirm brief
4. Stop generation while content is being generated
5. Click Start over and validate start over text is displayed
3. Click Start over and validate start over text is displayed
Comment thread
Ragini-Microsoft marked this conversation as resolved.
"""
page = login_logout
page.goto(URL)
Expand All @@ -426,17 +424,16 @@ def test_validate_start_over(login_logout, request):
home.send_prompt(home.USER_MESSAGE)
step2_end = time.time()


# Step 3: Start Over
step4_start = time.time()
step3_start = time.time()
home.start_over()
step4_end = time.time()
step3_end = time.time()

# Log test summary
step_times = [
("Step 1 (Home Page Validation)", step1_end - step1_start),
("Step 2 (Send Prompt)", step2_end - step2_start),
("Step 3 (Start Over)", step4_end - step4_start)
("Step 3 (Start Over)", step3_end - step3_start)
]
total_duration = log_test_summary(start_time, step_times, "Start Over Test")

Expand Down
Loading