-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dce3bf1
commit ed6a466
Showing
2 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
import { test as base, expect } from '@playwright/test'; | ||
import FEATURE_TOGGLE from 'docs/src/featureToggle'; | ||
import { TestFixture } from './playwright.config'; | ||
|
||
const test = base.extend<TestFixture>({}); | ||
|
||
test('should see the selected icon popup that match the query', async ({ page }) => { | ||
await page.goto( | ||
FEATURE_TOGGLE.enable_redirects | ||
? '/material-ui/material-icons/?selected=AcUnit' | ||
: '/components/material-icons/?selected=AcUnit', | ||
{ waitUntil: 'networkidle' }, | ||
); | ||
test.only('should see the selected icon popup that match the query', async ({ page }) => { | ||
await page.goto('/material-ui/material-icons/?selected=AcUnit'); | ||
|
||
await expect(page.locator('h2:has-text("AcUnit")')).toBeVisible(); | ||
await expect(page.locator('.MuiDialog-container h2:has-text("AcUnit")')).toBeVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters