Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix flaky 'should filter actions by text' (#40804)
Yury Semikhatskyca16d0128023
diff --git a/tests/library/trace-viewer.spec.ts b/tests/library/trace-viewer.spec.tsindex 237dd89130..813bd79351 100644--- a/tests/library/trace-viewer.spec.ts+++ b/tests/library/trace-viewer.spec.ts@@ -197,6 +197,7 @@ test('should filter actions by text', async ({ showTraceViewer }) => {const filterInput = traceViewer.page.getByRole('searchbox', { name: 'Filter actions' });await expect(filterInput).toBeVisible();+ await expect(traceViewer.actionTitles.filter({ hasText: 'Close page' })).toBeVisible();const fullCount = await traceViewer.actionTitles.count();await filterInput.fill('Click');await expect(traceViewer.actionTitles.filter({ hasText: 'Click' }).first()).toBeVisible();