Skip to content

Commit 23fa813

Browse files
committed
tests: overflow assertion
1 parent 68714a4 commit 23fa813

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/playwright-test/ui-mode-test-network-tab.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,25 @@ test('should not duplicate network entries from beforeAll', {
200200
await page.getByText('Network', { exact: true }).click();
201201
await expect(page.getByTestId('network-list').getByText('empty.html')).toHaveCount(1);
202202
});
203+
204+
test('should render network tabs with overflow dropdown', async ({ runUITest, server }) => {
205+
const { page } = await runUITest({
206+
'network-tab.test.ts': `
207+
import { test, expect } from '@playwright/test';
208+
test('network tab test', async ({ page }) => {
209+
await page.goto('${server.PREFIX}/network-tab/network.html');
210+
await page.evaluate(() => (window as any).donePromise);
211+
});
212+
`,
213+
});
214+
215+
await page.getByText('network tab test').dblclick();
216+
await page.getByText('Network', { exact: true }).click();
217+
218+
const sidebar = await page.locator('.network-filters-resource-types');
219+
await sidebar.evaluate(element => {
220+
element.style.width = '300px';
221+
});
222+
223+
await expect(page.locator('.network-filters-resource-types .tabbed-pane-tab')).toHaveCount(4);
224+
});

0 commit comments

Comments
 (0)