/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/angular/test/base/e2e/src/standalone/modal-options-generic.spec.ts
24 строки
807 B
Shane
fix(angular): forward generic type parameter on ModalOptions and PopoverOptions (#31022)
19 мар 2026, 20:09
Не верифицирован
19 мар 2026, 20:09
cbfe7cc
Код
Авторство
О чём код?
import { test, expect } from '@playwright/test'; test.describe('Modal Options: Generic Type Parameter', () => { test.beforeEach(async ({ page }) => { await page.goto('/standalone/modal-options-generic'); }); test('should open modal created with ModalOptions<typeof Component>', async ({ page }, testInfo) => { testInfo.annotations.push({ type: 'issue', description: 'https://github.com/ionic-team/ionic-framework/issues/31012', }); await page.locator('ion-button#open-modal').click(); await expect(page.locator('ion-modal')).toBeVisible(); const greeting = page.locator('#greeting'); await expect(greeting).toHaveText('hello world'); await page.locator('#close-modal').click(); await expect(page.locator('ion-modal')).not.toBeVisible(); }); });