piccolo-orm / piccolo_admin

A powerful web admin for your database.
https://piccolo-orm.com/ecosystem/
MIT License
299 stars 35 forks source link

Add E2E tests for arrays #373

Closed dantownsend closed 3 months ago

dantownsend commented 3 months ago

Array columns work very differently from other column types, so it would be useful to have a bunch of Playwright tests for them.

We should add a new table to example.py called something like ArrayColumns.

Initially we can test basic Array column types like Array(Integer()), Array(Email()) and Array(Varchar()).

We should make sure that for Array(Integer()) only integer values are allowed, and for Array(Email()) only email values are allowed.

In the future, we can expand upon these new tests, to cover all of the possible permutations of Array columns.