Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test block to SPEC
  • Loading branch information
jbdalton committed Jan 24, 2026
commit b1f554369372c7786b5a35afac7d39f9d2dcc1a5
3 changes: 1 addition & 2 deletions playwright/pages/item-metadata.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,8 @@ export default class ItemMetadataPage {
for (let i = 0; i < ItemMetadataPage.EXPECTED_RESOURCE_TYPES.length; i++) {
const expectedText = ItemMetadataPage.EXPECTED_RESOURCE_TYPES[i];
const currentLink = typeLinks.nth(i);

await expect(currentLink).toBeVisible();
await expect(currentLink).toHaveText(expectedText);
await expect(currentLink).toBeVisible();
}
}

Expand Down
20 changes: 20 additions & 0 deletions playwright/tests/item-metadata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,23 @@ test.describe("Verify Sample Record 2", () => {
});
});
});

test.describe("Verify Sample Record 3", () => {
test.beforeEach(async ({ page }) => {
await itemMetadataPage.loadScenario("SAMPLE3");
});

test.describe("Type of Resource", () => {
test("should include correct resource type values", async () => {
await itemMetadataPage.verifyTypeValues();
});

test("should contain the correct number of resource types", async () => {
await itemMetadataPage.verifyTypeCount();
});

test("should display resource types as links", async () => {
await itemMetadataPage.verifyTypeLinks();
});
});
});