test: harden webhook tests

This commit is contained in:
Jakub P.
2024-08-22 12:05:52 +02:00
parent 53f63996bd
commit e008087c4a
2 changed files with 10 additions and 7 deletions

View File

@@ -11,7 +11,6 @@ export class FlowEditorPage extends AuthenticatedPage {
constructor(page) {
super(page);
this.page = page;
this.appAutocomplete = this.page.getByTestId('choose-app-autocomplete');
this.eventAutocomplete = this.page.getByTestId('choose-event-autocomplete');
this.continueButton = this.page.getByTestId('flow-substep-continue-button');
@@ -77,7 +76,8 @@ export class FlowEditorPage extends AuthenticatedPage {
}
async testAndContinue() {
await this.continueButton.last().click();
await expect(this.continueButton).toHaveCount(1);
await this.continueButton.click();
await expect(this.testOutput).toBeVisible();
await this.continueButton.click();
}