Files
civitai__civitai/tests/auction.spec.ts
T
Brett Woodward 8ab42f4981 logical rep setup
2025-08-12 13:20:21 -04:00

37 lines
1.0 KiB
TypeScript

import { test } from '@playwright/test';
import { authDegen } from './auth/data';
test.describe('bidding', () => {
test.use(authDegen);
test('bid first', async ({ page }) => {
await page.goto('/auctions');
const skipTour = page.getByRole('button', { name: 'Skip' });
if (await skipTour.isVisible()) {
await skipTour.click();
}
await page.getByRole('button', { name: 'Select model' }).click();
const confirmBtn = page.getByRole('button', { name: 'Close' });
if (await confirmBtn.isVisible()) {
await confirmBtn.click();
}
await page.getByText('ALL', { exact: true }).click();
await page
.getByTestId('resource-select-items')
.getByRole('button', { name: 'Select' })
.first()
.click();
// TODO get name here...
await page.getByRole('button', { name: '1st' }).click();
await page.getByTestId('place-bid-button').click();
// TODO insert name, make sure it's the first item
// await expect(page.getByText('1FrugalGovernanceV08,546 1 Bid')).toBeVisible();
});
});