mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-08 15:15:02 -04:00
feat(xml-formatter): added happy path e2e tests
This commit is contained in:
parent
bc0c02bd01
commit
403ea97e3d
3 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ import { Code } from '@vicons/tabler';
|
|||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Xml formatter',
|
||||
name: 'XML formatter',
|
||||
path: '/xml-formatter',
|
||||
description: 'Prettify your XML string to a human friendly readable format.',
|
||||
keywords: ['xml', 'prettify', 'format'],
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.describe('Tool - Xml formatter', () => {
|
||||
test.describe('Tool - XML formatter', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/xml-formatter');
|
||||
});
|
||||
|
||||
test('Has correct title', async ({ page }) => {
|
||||
await expect(page).toHaveTitle('Xml formatter - IT Tools');
|
||||
await expect(page).toHaveTitle('XML formatter - IT Tools');
|
||||
});
|
||||
|
||||
test('XML is converted into a human readable format', async ({ page }) => {
|
||||
|
|
|
@ -36,7 +36,7 @@ const rules: UseValidationRule<string>[] = [
|
|||
|
||||
<format-transformer
|
||||
input-label="Your XML"
|
||||
input-placeholder="Paste your xml here..."
|
||||
input-placeholder="Paste your XML here..."
|
||||
output-label="Formatted XML from your XML"
|
||||
output-language="xml"
|
||||
:input-validation-rules="rules"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue