Skip to content

Commit 233bf6d

Browse files
Fran McDadeFran McDade
authored andcommitted
fix: e2e sort test (#4453)
1 parent dd60bdf commit 233bf6d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

e2e/testFunctions.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ export async function testTab(
140140
}
141141
}
142142

143-
// The test id for the column sorted icon
144-
const COLUMN_SORT_ICON_TEST_ID = "SouthRoundedIcon";
145-
146143
/**
147144
* Checks that sorting the tab causes the sort icon to appear
148145
* This test does not check whether the sort order is correct.
@@ -189,8 +186,8 @@ export async function testSortAzul(
189186
name: columnObject.name,
190187
});
191188
// Locator for the column sort icon
192-
const sortIconLocator = columnSortLocator.getByTestId(
193-
COLUMN_SORT_ICON_TEST_ID
189+
const sortIconLocator = columnSortLocator.locator(
190+
".MuiTableSortLabel-icon"
194191
);
195192
// If on the first cell, expect the sort icon to be visible. Otherwise, expect it not to be
196193
if (columnPosition === 0) {

0 commit comments

Comments
 (0)