mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
26 lines
906 B
TypeScript
26 lines
906 B
TypeScript
![]() |
import { expect, test } from '@playwright/test';
|
||
|
|
||
|
test.describe('Tool - Text to Unicode', () => {
|
||
|
test.beforeEach(async ({ page }) => {
|
||
|
await page.goto('/text-to-unicode');
|
||
|
});
|
||
|
|
||
|
test('Has correct title', async ({ page }) => {
|
||
|
await expect(page).toHaveTitle('Text to Unicode - IT Tools');
|
||
|
});
|
||
|
|
||
|
test('Text to unicode conversion', async ({ page }) => {
|
||
|
await page.getByTestId('text-to-unicode-input').fill('it-tools');
|
||
|
const unicode = await page.getByTestId('text-to-unicode-output').inputValue();
|
||
|
|
||
|
expect(unicode).toEqual('it-tools');
|
||
|
});
|
||
|
|
||
|
test('Unicode to text conversion', async ({ page }) => {
|
||
|
await page.getByTestId('unicode-to-text-input').fill('it-tools');
|
||
|
const text = await page.getByTestId('unicode-to-text-output').inputValue();
|
||
|
|
||
|
expect(text).toEqual('it-tools');
|
||
|
});
|
||
|
});
|