🐛(e2e) sync doc grid sorting check

The sorting check was not the same between
what django provide and what the e2e test
check, it was giving some flakiness.
Django seems to ignore the punctuation (space)
in its sorting.
We improve other test to be more robust
as well.
This commit is contained in:
Anthony LC
2024-07-09 13:57:14 +02:00
committed by Anthony LC
parent 164ed885ca
commit 132da0837f
5 changed files with 20 additions and 8 deletions

View File

@@ -120,11 +120,13 @@ export const goToGridDoc = async (
const header = page.locator('header').first();
await header.locator('h2').getByText('Docs').click();
const rows = page
const datagrid = page
.getByLabel('Datagrid of the documents page 1')
.getByRole('table')
.getByRole('row');
.getByRole('table');
await expect(datagrid.getByLabel('Loading data')).toBeHidden();
const rows = datagrid.getByRole('row');
const row = title
? rows.filter({
hasText: title,