From 64203ff6a0bc5df85e6682361f762cadda412305 Mon Sep 17 00:00:00 2001 From: Ritesh Date: Fri, 11 Jul 2025 18:18:54 +0530 Subject: [PATCH 1/2] test: MACAE_Updated_locator_send_button --- tests/e2e-test/pages/BIAB.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e-test/pages/BIAB.py b/tests/e2e-test/pages/BIAB.py index 37f58d70..d3b404bd 100644 --- a/tests/e2e-test/pages/BIAB.py +++ b/tests/e2e-test/pages/BIAB.py @@ -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']" @@ -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) @@ -103,5 +104,6 @@ def processing_different_stage(self): plan_id = BasePage.get_first_plan_id(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") From 847baa79baf964d93bf48e14f228bd873dbabf61 Mon Sep 17 00:00:00 2001 From: Ritesh Date: Fri, 11 Jul 2025 18:29:21 +0530 Subject: [PATCH 2/2] test: MACAE_updated_Locator_send_button --- tests/e2e-test/pages/BIAB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e-test/pages/BIAB.py b/tests/e2e-test/pages/BIAB.py index ff7bf127..25b19d82 100644 --- a/tests/e2e-test/pages/BIAB.py +++ b/tests/e2e-test/pages/BIAB.py @@ -106,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")