/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/e2e/src/standalone/modal-sheet-inline.spec.ts
34 строки
1 KB
Shane
fix(modal): allow sheet modals to skip focus trap (#30689)
24 сен 2025, 22:29
Не верифицирован
24 сен 2025, 22:29
a40d957
Код
Авторство
О чём код?
import { expect, test } from '@playwright/test'; test.describe('Modals: Inline Sheet (standalone)', () => { test.beforeEach(async ({ page }) => { await page.goto('/standalone/modal-sheet-inline'); }); test('should open inline sheet modal', async ({ page }) => { await page.locator('#present-inline-sheet-modal').click(); await expect(page.locator('ion-modal')).toBeVisible(); await expect(page.locator('#current-breakpoint')).toHaveText('0.2'); await expect(page.locator('ion-modal ion-item')).toHaveCount(4); }); test('should expand to 0.75 breakpoint when searchbar is clicked', async ({ page }) => { await page.locator('#present-inline-sheet-modal').click(); await expect(page.locator('#current-breakpoint')).toHaveText('0.2'); await page.locator('ion-modal ion-searchbar').click(); await expect(page.locator('#current-breakpoint')).toHaveText('0.75'); }); test('should allow interacting with background content while sheet is open', async ({ page }) => { await page.locator('#present-inline-sheet-modal').click(); await expect(page.locator('ion-modal')).toBeVisible(); await page.locator('#background-action').click(); await expect(page.locator('#background-action-count')).toHaveText('1'); }); });