mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
test: Migrate Cypress E2E tests to Playwright (#18970)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user