MCPcopy Create free account
hub / github.com/GCWing/BitFun / isChatInputVisible

Method isChatInputVisible

tests/e2e/page-objects/ChatPage.ts:30–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 async isChatInputVisible(): Promise<boolean> {
31 const selectors = [
32 '[data-testid="chat-input-container"]',
33 '.chat-input-container',
34 '.chat-input',
35 'textarea[class*="chat"]',
36 ];
37
38 for (const selector of selectors) {
39 try {
40 const element = await $(selector);
41 const exists = await element.isExisting();
42 if (exists) {
43 return true;
44 }
45 } catch (e) {
46 // Continue
47 }
48 }
49 return false;
50 }
51
52 async typeMessage(message: string): Promise<void> {
53 const selectors = [

Callers 2

basic-chat.spec.tsFile · 0.80

Calls 1

$Function · 0.50

Tested by

no test coverage detected