fix: getByRole('button', { name: 'Buy' }).last() fragility is duplicated across e2e/01 and this scenario (#398)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
10643618f7
commit
68601c255a
4 changed files with 11 additions and 11 deletions
|
|
@ -6,9 +6,9 @@
|
|||
<template v-else>
|
||||
<div class="swap-field">
|
||||
<label for="local-swap-amount" class="swap-label">ETH to spend</label>
|
||||
<input id="local-swap-amount" :value="swapAmount" @input="swapAmount = ($event.target as HTMLInputElement).value" type="number" min="0" step="0.01" class="swap-input" :disabled="swapping" />
|
||||
<input id="local-swap-amount" data-testid="swap-amount-input" :value="swapAmount" @input="swapAmount = ($event.target as HTMLInputElement).value" type="number" min="0" step="0.01" class="swap-input" :disabled="swapping" />
|
||||
</div>
|
||||
<button class="swap-button" :disabled="swapping" @click="buyKrk">
|
||||
<button class="swap-button" data-testid="swap-buy-button" :disabled="swapping" @click="buyKrk">
|
||||
{{ swapping ? 'Submitting…' : 'Buy KRK' }}
|
||||
</button>
|
||||
<p class="swap-hint">Wraps ETH → WETH, approves the swap router, then trades into $KRK.</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue