fix: e2e test uses getByRole('combobox', { name: 'Tax' }) against a label 'Position Cost (Tax Rate)' (#467)

This commit is contained in:
openhands 2026-03-05 22:41:00 +00:00
parent 89134800c2
commit 660204ac14

View file

@ -238,7 +238,7 @@ test.describe('Acquire & Stake', () => {
await stakeAmountInput.fill('1000'); await stakeAmountInput.fill('1000');
console.log('[TEST] Filled staking amount!'); console.log('[TEST] Filled staking amount!');
const taxSelect = page.getByRole('combobox', { name: 'Tax' }); const taxSelect = page.getByRole('combobox', { name: 'Position Cost (Tax Rate)' });
console.log('[TEST] Selecting tax rate...'); console.log('[TEST] Selecting tax rate...');
await taxSelect.selectOption({ value: '2' }); await taxSelect.selectOption({ value: '2' });
console.log('[TEST] Tax rate selected!'); console.log('[TEST] Tax rate selected!');