Files
omni-tools/src/pages/tools/string/join/string-join.e2e.spec.ts
2025-02-23 01:38:42 +01:00

19 lines
469 B
TypeScript

import { expect, test } from '@playwright/test';
test.describe('JoinText Component', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/string/join');
});
test('should merge text pieces with specified join character', async ({
page
}) => {
// Input the text pieces
await page.getByTestId('text-input').fill('1\n2');
const result = await page.getByTestId('text-result').inputValue();
expect(result).toBe('12');
});
});