mirror of
https://github.com/civitai/civitai.git
synced 2026-09-20 22:08:18 +08:00
37 lines
1.0 KiB
TypeScript
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();
|
|
});
|
|
});
|