Skip to content

Commit 447fe9b

Browse files
Comp0teclaude
andcommitted
test(e2e): match 'More' button exactly in staking specs
The token-details market data banner renders a "Learn more" link (cspr.trade) when market data loads, and the substring selector getByText('More') then resolves to two elements, failing the staking specs with a strict mode violation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b5504e5 commit 447fe9b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

e2e-tests/popup/stakes/delegate.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ popup.describe('Popup UI: Delegation', () => {
1111
route.fulfill(RPC_RESPONSE.success)
1212
);
1313

14-
await popupPage.getByText('More').click();
14+
await popupPage.getByText('More', { exact: true }).click();
1515

1616
await popupPage.getByText('Delegate', { exact: true }).click();
1717

e2e-tests/popup/stakes/redelagation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ popup.describe('Popup UI: Redelegation', () => {
1616
route.fulfill(RPC_RESPONSE.success)
1717
);
1818

19-
await popupPage.getByText('More').click();
19+
await popupPage.getByText('More', { exact: true }).click();
2020

2121
await popupPage.getByText('Redelegate', { exact: true }).click();
2222

e2e-tests/popup/stakes/undelegate.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ popup.describe('Popup UI: Undelegation', () => {
1111
route.fulfill(RPC_RESPONSE.success)
1212
);
1313

14-
await popupPage.getByText('More').click();
14+
await popupPage.getByText('More', { exact: true }).click();
1515

1616
await popupPage.getByText('Undelegate', { exact: true }).click();
1717

0 commit comments

Comments
 (0)