diff --git a/tests/playwright/support/sections/FilesListPage.ts b/tests/playwright/support/sections/FilesListPage.ts index ae714ad24af31..dfa521366d87e 100644 --- a/tests/playwright/support/sections/FilesListPage.ts +++ b/tests/playwright/support/sections/FilesListPage.ts @@ -106,7 +106,11 @@ export class FilesListPage { /** Click a column header's sort button to toggle sorting by that column. */ async sortByColumn(name: string): Promise { + const saved = this.page.waitForResponse((r) => r.request().method() === 'PUT' && r.url().includes('/index.php/apps/files/api/v1/views')) + await this.getColumnHeader(name).getByRole('button', { name }).click() + + await saved } /** The per-row selection checkboxes. */