Skip to content

Commit 0d97bb8

Browse files
Fran McDadeNoopDog
authored andcommitted
fix: anvil catalog test (#4321)
1 parent 2148ded commit 0d97bb8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

e2e/anvil-catalog/anvilcatalog-select-tabs.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ test("Expect the checkboxes in the 'Edit Columns' menu to add those columns to t
1212
await testSelectableColumns(page, tab);
1313
});
1414

15-
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and disabled on the Consortia tab", async ({
15+
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and enabled on the Consortia tab", async ({
1616
page,
1717
}) => {
1818
const tab = ANVIL_CATALOG_TABS.CONSORTIA;
1919
await testPreSelectedColumns(page, tab);
2020
});
2121

22-
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and disabled on the Studies tab", async ({
22+
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and enabled on the Studies tab", async ({
2323
page,
2424
}) => {
2525
const tab = ANVIL_CATALOG_TABS.STUDIES;
2626
await testPreSelectedColumns(page, tab);
2727
});
2828

29-
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and disabled on the Workspaces tab", async ({
29+
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and enabled on the Workspaces tab", async ({
3030
page,
3131
}) => {
3232
const tab = ANVIL_CATALOG_TABS.WORKSPACES;

e2e/testFunctions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export async function testSelectableColumns(
332332

333333
/**
334334
* Checks that the preselected columns specified in the tab object appear
335-
* in the "Edit Columns" menu and that their checkbox is checked and disabled
335+
* in the "Edit Columns" menu and that their checkbox is checked and enabled.
336336
* @param page - the Playwright page object
337337
* @param tab - the tab object to test
338338
*/
@@ -353,7 +353,7 @@ export async function testPreSelectedColumns(
353353
.filter({ has: page.getByText(column.name, { exact: true }) }),
354354
})
355355
.getByRole("checkbox");
356-
await expect(checkboxLocator).toBeDisabled();
356+
await expect(checkboxLocator).toBeEnabled();
357357
await expect(checkboxLocator).toBeChecked();
358358
}
359359
}

0 commit comments

Comments
 (0)