fix(bots): move adapter debugger to configuration

This commit is contained in:
RockChinQ
2026-08-26 23:07:02 +08:00
parent 3d692fa8db
commit a7badf6258
8 changed files with 49 additions and 13 deletions
+10 -1
View File
@@ -445,6 +445,9 @@ test.describe('bot advanced flows', () => {
const routingCard = page
.locator('[data-slot="card"]')
.filter({ has: page.getByText('Event Routing', { exact: true }) });
const adapterCard = page.locator('[data-slot="card"]').filter({
has: page.getByText('Adapter Configuration', { exact: true }),
});
const dangerCard = page
.locator('[data-slot="card"]')
.filter({ has: page.getByText('Danger Zone', { exact: true }) });
@@ -532,7 +535,13 @@ test.describe('bot advanced flows', () => {
expect(dialogBox!.height).toBeLessThan(500);
await routeDialog.getByRole('button', { name: 'Close' }).first().click();
await routingCard
await expect(
routingCard.getByRole('button', { name: 'Listen for platform events' }),
).toHaveCount(0);
await expect(
adapterCard.getByText('Test adapter configuration'),
).toBeVisible();
await adapterCard
.getByRole('button', { name: 'Listen for platform events' })
.click();
const adapterDialog = page.getByRole('dialog');