Skip to content

Commit 9e1ff27

Browse files
committed
fix flaky tests
1 parent eb311da commit 9e1ff27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/test/ava-tests/non-saas-tests/non-saas-user-admin-permissions-e2e.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,6 +3597,8 @@ test.serial(`${currentTest} should return array of table widgets for table`, asy
35973597
const getTableWidgetsRO = JSON.parse(getTableWidgets.text);
35983598
t.is(typeof getTableWidgetsRO, 'object');
35993599
t.is(getTableWidgetsRO.length, 2);
3600+
getTableWidgetsRO.sort((a, b) => a.field_name.localeCompare(b.field_name))
3601+
newTableWidgets.sort((a, b) => a.field_name.localeCompare(b.field_name))
36003602

36013603
t.is(getTableWidgetsRO[0].field_name, newTableWidgets[0].field_name);
36023604
t.is(getTableWidgetsRO[0].widget_type, newTableWidgets[0].widget_type);

0 commit comments

Comments
 (0)