Skip to content

Commit

Permalink
test: Wait for game mode dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Senryoku committed Nov 25, 2023
1 parent d555f05 commit 731e594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions test/frontend/housman.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { describe, it } from "mocha";
import chai from "chai";
const expect = chai.expect;

import {
getSessionLink,
pages,
Expand Down
3 changes: 3 additions & 0 deletions test/frontend/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,7 @@ export function expectNCardsInTotal(n: number) {
export async function launchMode(mode: string) {
await waitAndClickSelector(pages[0], ".handle");
await waitAndClickXpath(pages[0], `//button[contains(., '${mode}')]`);

// Rochester draft starts immediately without dialog
if (mode !== "Rochester") await pages[0].waitForSelector(".confirm");
}

0 comments on commit 731e594

Please sign in to comment.