From 672a46f7a0fd694ffcd2a3cb4f59a14631fb66a4 Mon Sep 17 00:00:00 2001 From: David Dreschner Date: Tue, 14 Jul 2026 11:48:40 +0200 Subject: [PATCH] chore(playwright): Wait for server response before checking sorting result Signed-off-by: David Dreschner --- tests/playwright/support/sections/FilesListPage.ts | 4 ++++ 1 file changed, 4 insertions(+) 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. */