refactor: replace isLoading with status (#861)
This commit is contained in:
parent
8e561dced4
commit
553a3d825a
10 changed files with 72 additions and 109 deletions
|
|
@ -179,15 +179,4 @@ export class ChatPage {
|
|||
},
|
||||
};
|
||||
}
|
||||
|
||||
async waitForMessageGeneration(timeout = 10000) {
|
||||
await this.page.waitForFunction(
|
||||
() => {
|
||||
return document.querySelector('[data-testid="send-button"]') !== null;
|
||||
},
|
||||
{ timeout },
|
||||
);
|
||||
|
||||
await this.page.waitForTimeout(500);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue