From ec2a7be6fd3af95ce143fac49cb085beb8dcfeb5 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Thu, 23 Nov 2023 13:33:29 +0300 Subject: [PATCH] chore(demo-cypress): improve test for `InputFiles` (#6074) --- .../cypress/tests/kit/input-files/input-files.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/demo-cypress/cypress/tests/kit/input-files/input-files.cy.ts b/projects/demo-cypress/cypress/tests/kit/input-files/input-files.cy.ts index 900ae08fe431..ef887e558964 100644 --- a/projects/demo-cypress/cypress/tests/kit/input-files/input-files.cy.ts +++ b/projects/demo-cypress/cypress/tests/kit/input-files/input-files.cy.ts @@ -32,13 +32,13 @@ describe(`InputFiles`, () => { cy.get(`[tuiInputFiles]`).selectFile(`cypress/fixtures/stubs/web-api.svg`); cy.get(`#demo-content tui-file`) - .should(`contain.text`, `File is too large 2 KiB`) + .contains(/File is too large 2 Ki?B/) .matchImageSnapshot(`02-01-input-files-[english]-file-too-large`); cy.tuiSetLanguage(`dutch`); cy.get(`#demo-content tui-file`) - .should(`contain.text`, `Bestandsgrootte overschreden 2 KiB`) + .contains(/Bestandsgrootte overschreden 2 Ki?B/) .matchImageSnapshot(`02-02-input-files-[dutch]-file-too-large`); });