mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-15 16:01:34 -05:00
* Migrations * Arrange admin UI * Load staff from DB * Fix TODO * Can add/remove staff * isTournamentAdmin / isTournamentOrganizer * Show chat to streamer * User titles in the chat * chat name color * Unique constraint * TO Staff E2E tests * Casts on stream page * Streamer test * Fix test
16 lines
433 B
TypeScript
16 lines
433 B
TypeScript
import { type Page } from "@playwright/test";
|
|
import { impersonate, navigate, seed } from "~/utils/playwright";
|
|
import { tournamentBracketsPage } from "~/utils/urls";
|
|
|
|
export const startBracket = async (page: Page, tournamentId = 2) => {
|
|
await seed(page);
|
|
await impersonate(page);
|
|
|
|
await navigate({
|
|
page,
|
|
url: tournamentBracketsPage(tournamentId),
|
|
});
|
|
|
|
await page.getByTestId("finalize-bracket-button").click();
|
|
};
|