aboutsummaryrefslogtreecommitdiff
path: root/src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts
diff options
context:
space:
mode:
authorGravatar hieudt-2054 <55786352+hieudt-2054@users.noreply.github.com> 2024-01-31 16:55:18 +0700
committerGravatar GitHub <noreply@github.com> 2024-01-31 09:55:18 +0000
commitc46207f1bb9fcd0691898be63bd20dfb5164de4b (patch)
tree5dcd90771eefeee5a9a1310e0a6f7b21095db920 /src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts
parent670f735501b5830ad31af52ef7cdaa17e9e51bab (diff)
downloadit-tools-c46207f1bb9fcd0691898be63bd20dfb5164de4b.tar.gz
it-tools-c46207f1bb9fcd0691898be63bd20dfb5164de4b.tar.zst
it-tools-c46207f1bb9fcd0691898be63bd20dfb5164de4b.zip
feat(new-tool): added unicode conversion utilities (#858)
* feat: add Text to Unicode tool * Update src/tools/text-to-unicode/index.ts --------- Co-authored-by: Corentin THOMASSET <corentin.thomasset74@gmail.com>
Diffstat (limited to 'src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts')
-rw-r--r--src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts b/src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts
new file mode 100644
index 0000000..761828f
--- /dev/null
+++ b/src/tools/text-to-unicode/text-to-unicode.e2e.spec.ts
@@ -0,0 +1,25 @@
+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('&#105;&#116;&#45;&#116;&#111;&#111;&#108;&#115;');
+ });
+
+ test('Unicode to text conversion', async ({ page }) => {
+ await page.getByTestId('unicode-to-text-input').fill('&#105;&#116;&#45;&#116;&#111;&#111;&#108;&#115;');
+ const text = await page.getByTestId('unicode-to-text-output').inputValue();
+
+ expect(text).toEqual('it-tools');
+ });
+});
jarred/throw-if'>jarred/throw-if Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/websocket-server (unfollow)
AgeCommit message (Collapse)AuthorFilesLines