Skip to content

Commit

Permalink
test: add min & max test cases in Table cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Jan 23, 2025
1 parent 286c272 commit c41229b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/brewery/TableParameters-invalid_files.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ const expectedErrorsFew = [
{ summary: 'Incorrect enum value' },
{ summary: 'Incorrect date value' },
{ summary: 'Incorrect number value' },
{ summary: 'Value out of range' },
{ summary: 'Value out of range' },
{ summary: 'Value out of range' },
{ summary: 'Value out of range' },
{ summary: 'Value out of range' },
{ summary: 'Value out of range' },
];

const expectedErrorsFewCSV = [{ summary: 'Too few fields', loc: 'Line 2' }, ...expectedErrorsFew];
Expand Down
2 changes: 2 additions & 0 deletions cypress/fixtures/customers_invalid.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ Bob,15,false,bad_enum,01/01/2000,1.70
Bob,15,false,AppleJuice,bad_date,1.70
Bob,15,false,AppleJuice,01/01/2000,bad_number
Bob,bad_int,bad_bool,bad_enum,bad_date,bad_number
Bob,-1,false,AppleJuice,01/01/1899,-0.1
Bob,999,false,AppleJuice,01/01/2999,99.9
Bob,15,false,AppleJuice,01/01/2000,1.70
Binary file modified cypress/fixtures/customers_invalid.xlsx
Binary file not shown.

0 comments on commit c41229b

Please sign in to comment.