Skip to content

Commit 9b61119

Browse files
committed
Add rudimentary e2e test file
1 parent 786dadb commit 9b61119

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
});

0 commit comments

Comments
 (0)