Skip to content

Commit

Permalink
chore(demo-cypress): improve test for InputFiles (#6074)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov authored Nov 23, 2023
1 parent 3313db4 commit ec2a7be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});

Expand Down

0 comments on commit ec2a7be

Please sign in to comment.