feat: support message creation from url query (#960)
This commit is contained in:
parent
f18af236a0
commit
451a866c73
4 changed files with 35 additions and 3 deletions
|
|
@ -152,7 +152,10 @@ export class ChatPage {
|
|||
const messageElements = await this.page.getByTestId('message-user').all();
|
||||
const lastMessageElement = messageElements[messageElements.length - 1];
|
||||
|
||||
const content = await lastMessageElement.innerText();
|
||||
const content = await lastMessageElement
|
||||
.getByTestId('message-content')
|
||||
.innerText()
|
||||
.catch(() => null);
|
||||
|
||||
const hasAttachments = await lastMessageElement
|
||||
.getByTestId('message-attachments')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue