Skip to content
Merged
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
5 changes: 3 additions & 2 deletions tests/e2e-test/pages/BIAB.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class BIABPage(BasePage):

WELCOME_PAGE_TITLE = "//span[normalize-space()='Multi-Agent Planner']"
NEW_TASK_PROMPT = "//textarea[@placeholder='Tell us what needs planning, building, or connecting—we'll handle the rest.']"
SEND_BUTTON = "//button[@type='button']"
SEND_BUTTON = "//div[@role='toolbar']"
CREATING_PLAN = "//span[normalize-space()='Creating a plan']"
TASK_LIST = "//span[contains(text(),'1.')]"
NEW_TASK = "//span[normalize-space()='New task']"
Expand Down Expand Up @@ -92,6 +92,7 @@ def enter_a_question(self, text):
def processing_different_stage(self):
"""Process and approve each stage sequentially if present."""
self.page.wait_for_timeout(3000)
total_count = self.page.locator(self.STAGES).count()
if self.page.locator(self.STAGES).count() >= 1:
for _ in range(self.page.locator(self.STAGES).count()):
approve_stages = self.page.locator(self.STAGES).nth(0)
Expand All @@ -105,5 +106,5 @@ def processing_different_stage(self):
BasePage.approve_plan_by_id(self, plan_id)
self.page.wait_for_timeout(7000)

expect(self.page.locator(self.COMPLETED_TASK)).to_contain_text("completed")
expect(self.page.locator(self.COMPLETED_TASK)).to_contain_text(f"{total_count} of {total_count} completed")

Loading