Skip to content

Commit

Permalink
fix: anvil catalog test (#4321)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Jan 6, 2025
1 parent 433d439 commit d277176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/anvil-catalog/anvilcatalog-select-tabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ test("Expect the checkboxes in the 'Edit Columns' menu to add those columns to t
await testSelectableColumns(page, tab);
});

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

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

test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and disabled on the Workspaces tab", async ({
test("Expect the checkboxes for preselected columns in the 'Edit Columns' menu to be checked and enabled on the Workspaces tab", async ({
page,
}) => {
const tab = ANVIL_CATALOG_TABS.WORKSPACES;
Expand Down
4 changes: 2 additions & 2 deletions e2e/testFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export async function testSelectableColumns(

/**
* Checks that the preselected columns specified in the tab object appear
* in the "Edit Columns" menu and that their checkbox is checked and disabled
* in the "Edit Columns" menu and that their checkbox is checked and enabled.
* @param page - the Playwright page object
* @param tab - the tab object to test
*/
Expand All @@ -353,7 +353,7 @@ export async function testPreSelectedColumns(
.filter({ has: page.getByText(column.name, { exact: true }) }),
})
.getByRole("checkbox");
await expect(checkboxLocator).toBeDisabled();
await expect(checkboxLocator).toBeEnabled();
await expect(checkboxLocator).toBeChecked();
}
}
Expand Down

0 comments on commit d277176

Please sign in to comment.