feat(ui): skill levels + titles on CREW tab and team-builder (#45)
CI / build + unit + e2e (pull_request) Successful in 3m7s
CI / build + unit + e2e (pull_request) Successful in 3m7s
This commit is contained in:
+3
-1
@@ -334,7 +334,9 @@ test('CREW tab renders real roster cards, each showing both traits and an origin
|
||||
await expect(heading).toBeVisible();
|
||||
// The card is the third div ancestor of the title (flex row → CardHeader → Card).
|
||||
const card = heading.locator('xpath=ancestor::div[3]');
|
||||
await expect(card.getByText(member.role)).toBeVisible();
|
||||
// exact: the new skill line renders 'ENGINEERING', which a loose 'ENGINEER' role search
|
||||
// would also match (substring) — the role line is the only element with the role's exact text.
|
||||
await expect(card.getByText(member.role, { exact: true })).toBeVisible();
|
||||
await expect(card.getByText(member.traitGood)).toBeVisible();
|
||||
await expect(card.getByText(member.traitBad)).toBeVisible();
|
||||
await expect(card.getByText(`ORIGIN // ${member.origin.toUpperCase()}`)).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user