Skip to content

Commit 5f9bc65

Browse files
committed
fix: state
Signed-off-by: Anton Misskii <[email protected]>
1 parent 0b1b356 commit 5f9bc65

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/playwright/src/model/ai-lab-service-details-page.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ export class AILabServiceDetailsPage extends AILabBasePage {
5858
}
5959

6060
async getServiceState(): Promise<string> {
61-
const serviceState = this.webview.getByRole('status').getAttribute('title');
62-
if ((await serviceState) === 'RUNNING') {
61+
const serviceState = await this.webview.getByRole('status').getAttribute('title');
62+
if (serviceState === 'RUNNING') {
6363
return 'RUNNING';
6464
}
65-
66-
return 'UNKNOWN';
65+
return serviceState ?? 'UNKNOWN';
6766
}
6867
}

0 commit comments

Comments
 (0)