Skip to content

Commit

Permalink
fix test: "Should whitelist staking pool and create stake delegation …
Browse files Browse the repository at this point in the history
…request"

more specific locator on create stake request button
  • Loading branch information
petersalomonsen committed Dec 27, 2024
1 parent 0718530 commit 947e78b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,13 @@ async function openLockupStakingForm({ page, daoAccount, lockupContract }) {
exact: true,
});
await createRequestButton.click();
await page.getByText("Stake", { exact: true }).click();
await page
.locator(
'div[data-component="treasury-devdao.near/widget/pages.stake-delegation.CreateButton"] .option',
{ hasText: "Stake" }
)
.first()
.click();
await page.waitForTimeout(10_000);
await selectLockupAccount({
page,
Expand Down

0 comments on commit 947e78b

Please sign in to comment.