feat(xml-formatter): added happy path e2e tests

This commit is contained in:
Corentin Thomasset 2023-06-18 12:10:27 +02:00
parent bc0c02bd01
commit 403ea97e3d
No known key found for this signature in database
GPG key ID: DBD997E935996158
3 changed files with 4 additions and 4 deletions

View file

@ -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'],

View file

@ -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 }) => {

View file

@ -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"