Skip to content

Commit aee8a07

Browse files
committed
fix some strict mode errors
1 parent 5f7120a commit aee8a07

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

typescript-sdk/apps/dojo/e2e/pages/crewAIPages/PredictiveStateUpdatesPage.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class PredictiveStateUpdatesPage {
3030
this.userMessage = page.locator('.copilotKitUserMessage');
3131
}
3232

33-
async openChat() {
33+
async openChat() {
3434
await this.agentGreeting.isVisible();
3535
}
3636

@@ -54,13 +54,13 @@ export class PredictiveStateUpdatesPage {
5454
}
5555

5656
async getUserApproval() {
57-
await this.userApprovalModal.isVisible();
57+
await this.userApprovalModal.last().isVisible();
5858
await this.getButton(this.page, "Confirm");
59-
const acceptedLabel = this.userApprovalModal.locator('text=✓ Accepted');
59+
const acceptedLabel = this.userApprovalModal.last().locator('text=✓ Accepted');
6060
}
6161

6262
async getUserRejection() {
63-
await this.userApprovalModal.isVisible();
63+
await this.userApprovalModal.last().isVisible();
6464
await this.getButton(this.page, "Reject");
6565
const rejectedLabel = await this.getStatusLabelOfButton(this.page, "✕ Rejected");
6666
await rejectedLabel.isVisible();
@@ -85,15 +85,15 @@ export class PredictiveStateUpdatesPage {
8585
'div.tiptap em',
8686
'div.tiptap s'
8787
];
88-
88+
8989
let count = 0;
9090
for (const selector of highlightSelectors) {
9191
count = await this.page.locator(selector).count();
9292
if (count > 0) {
9393
break;
9494
}
9595
}
96-
96+
9797
if (count > 0) {
9898
expect(count).toBeGreaterThan(0);
9999
} else {

typescript-sdk/apps/dojo/e2e/pages/pydanticAIPages/PredictiveStateUpdatesPage.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class PredictiveStateUpdatesPage {
3030
this.userMessage = page.locator('.copilotKitUserMessage');
3131
}
3232

33-
async openChat() {
33+
async openChat() {
3434
await this.agentGreeting.isVisible();
3535
}
3636

@@ -54,13 +54,13 @@ export class PredictiveStateUpdatesPage {
5454
}
5555

5656
async getUserApproval() {
57-
await this.userApprovalModal.isVisible();
57+
await this.userApprovalModal.last().isVisible();
5858
await this.getButton(this.page, "Confirm");
59-
const acceptedLabel = this.userApprovalModal.locator('text=✓ Accepted');
59+
const acceptedLabel = this.userApprovalModal.last().locator('text=✓ Accepted');
6060
}
6161

6262
async getUserRejection() {
63-
await this.userApprovalModal.isVisible();
63+
await this.userApprovalModal.last().isVisible();
6464
await this.getButton(this.page, "Reject");
6565
const rejectedLabel = await this.getStatusLabelOfButton(this.page, "✕ Rejected");
6666
await rejectedLabel.isVisible();
@@ -85,15 +85,15 @@ export class PredictiveStateUpdatesPage {
8585
'div.tiptap em',
8686
'div.tiptap s'
8787
];
88-
88+
8989
let count = 0;
9090
for (const selector of highlightSelectors) {
9191
count = await this.page.locator(selector).count();
9292
if (count > 0) {
9393
break;
9494
}
9595
}
96-
96+
9797
if (count > 0) {
9898
expect(count).toBeGreaterThan(0);
9999
} else {

0 commit comments

Comments
 (0)