parent
79c9c8571a
commit
1e0822eaa2
21 changed files with 126 additions and 47 deletions
|
|
@ -2,6 +2,7 @@ import { expect, test, type APIRequestContext } from '@playwright/test';
|
|||
import { Wallet } from 'ethers';
|
||||
import { createWalletContext } from '../setup/wallet-provider';
|
||||
import { getStackConfig, validateStackHealthy } from '../setup/stack';
|
||||
import { navigateSPA } from '../setup/navigate';
|
||||
import { TAX_RATE_OPTIONS } from '../../kraiken-lib/src/taxRates';
|
||||
|
||||
const ACCOUNT_PRIVATE_KEY = '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80';
|
||||
|
|
@ -163,8 +164,8 @@ test.describe('Max Stake All Tax Rates', () => {
|
|||
|
||||
// Step 1: Mint test ETH
|
||||
console.log('[TEST] Navigating to cheats page...');
|
||||
await page.goto(`${STACK_WEBAPP_URL}/app/#/cheats`);
|
||||
await expect(page.getByRole('heading', { name: 'Cheat Console' })).toBeVisible();
|
||||
await navigateSPA(page, '/app/cheats');
|
||||
await expect(page.getByRole('heading', { name: 'Cheat Console' })).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
console.log('[TEST] Minting test ETH (10 ETH)...');
|
||||
await page.getByLabel('RPC URL').fill(STACK_RPC_URL);
|
||||
|
|
@ -217,7 +218,7 @@ test.describe('Max Stake All Tax Rates', () => {
|
|||
|
||||
// Step 3: Navigate to stake page
|
||||
console.log('[TEST] Navigating to stake page...');
|
||||
await page.goto(`${STACK_WEBAPP_URL}/app/#/stake`);
|
||||
await navigateSPA(page, '/app/stake');
|
||||
await page.waitForTimeout(2_000);
|
||||
|
||||
const tokenAmountSlider = page.getByRole('slider', { name: 'Token Amount' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue