test: Migrate Cypress E2E tests to Playwright (#18970)

This commit is contained in:
shortstacked
2025-09-02 10:16:32 +01:00
committed by GitHub
parent d183652c0d
commit 38de3ee8a4
17 changed files with 423 additions and 374 deletions

View File

@@ -41,6 +41,9 @@ export class CredentialsPage extends BasePage {
await field.click();
await field.fill(value);
}
get saveCredentialButton() {
return this.page.getByRole('button', { name: 'Save' });
}
async saveCredential() {
await this.clickButtonByName('Save');
@@ -62,4 +65,16 @@ export class CredentialsPage extends BasePage {
await this.page.getByText('Connection tested successfully').waitFor({ state: 'visible' });
await this.closeCredentialDialog();
}
getOauthConnectButton() {
return this.page.getByTestId('oauth-connect-button');
}
getOauthConnectSuccessBanner() {
return this.page.getByTestId('oauth-connect-success-banner');
}
getSaveButton() {
return this.page.getByTestId('credential-save-button');
}
}