/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/input/test/input.e2e.ts
16 строк
594 B
Liam DeBeasi
test(input): migrate to generators (#27321)
02 май 2023, 00:30
Не верифицирован
02 май 2023, 00:30
aae9b61
Код
Авторство
О чём код?
import { expect } from '@playwright/test'; import { configs, test } from '@utils/test/playwright'; /** * Rendering is the same across platforms */ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => { test.describe(title('input: rendering'), () => { test('should not render the label element if no label was passed', async ({ page }) => { await page.setContent(`<ion-input aria-label="my hidden label"></ion-label>`, config); const label = page.locator('ion-input .label-text-wrapper'); await expect(label).toBeHidden(); }); }); });