Skip to content

Commit

Permalink
add redsqure specs
Browse files Browse the repository at this point in the history
  • Loading branch information
davikstone2 committed Jan 17, 2024
1 parent 5c72928 commit 6be7c6b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/mods/redsquare/redsquare_page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { type Page, type Locator, expect } from '@playwright/test'
import ModulePage from "../module_page";

export default class ArcadePage extends ModulePage {

constructor(page: Page) {
super(page, "/redsquare");
}

async openChat() {

}

async createChessGame() {
let chessMenuItem = this.page.locator("#Chess");
await chessMenuItem.waitFor();
expect(chessMenuItem).toBeTruthy();
await chessMenuItem.click();

let createGameButton = this.page.locator(".saito-multi-select_btn_options", { hasText: "create public invite" });
await chessMenuItem.waitFor();
expect(createGameButton).toBeTruthy();
await createGameButton.click();
}
}

Empty file added tests/mods/redsquare.spec.ts
Empty file.

0 comments on commit 6be7c6b

Please sign in to comment.