File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
typescript-sdk/apps/dojo/e2e Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Page , Locator , expect } from '@playwright/test' ;
2+
3+ export class A2AChatPage {
4+ readonly page : Page ;
5+ readonly mainChatTab : Locator ;
6+
7+ constructor ( page : Page ) {
8+ this . page = page ;
9+ this . mainChatTab = page . getByRole ( 'tab' , { name : 'Main Chat' } ) ;
10+ }
11+
12+ async openChat ( ) {
13+ await this . mainChatTab . isVisible ( ) ;
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ import {
2+ test ,
3+ expect ,
4+ waitForAIResponse ,
5+ retryOnAIFailure ,
6+ } from "../../test-isolation-helper" ;
7+ import { A2AChatPage } from "../../pages/a2aMiddlewarePages/A2AChatPage" ;
8+
9+ test . describe ( "A2A Chat Feature" , ( ) => {
10+ test ( "[A2A Middleware] Tab bar exists" , async ( {
11+ page,
12+ } ) => {
13+ await retryOnAIFailure ( async ( ) => {
14+ await page . goto (
15+ "/a2a-middleware/feature/a2a_chat"
16+ ) ;
17+
18+ const chat = new A2AChatPage ( page ) ;
19+
20+ await chat . openChat ( ) ;
21+ // This should already be handled previously but we just need a base case
22+ await chat . mainChatTab . waitFor ( { state : "visible" } ) ;
23+ } ) ;
24+ } ) ;
25+ } ) ;
You can’t perform that action at this time.
0 commit comments