mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
b5b44d1b59
* fix: Fix inferred type of X cannot be named error after pnpm update * feat: Change page objects to expose actions and getters. Add credential creation suite
18 lines
828 B
TypeScript
18 lines
828 B
TypeScript
import { BasePage } from "./base";
|
|
|
|
export class CredentialsPage extends BasePage {
|
|
url = '/credentials';
|
|
getters = {
|
|
emptyListCreateCredentialButton: () => cy.getByTestId('empty-resources-list').find('button'),
|
|
createCredentialButton: () => cy.getByTestId('resources-list-add'),
|
|
searchBar: () => cy.getByTestId('resources-list-search'),
|
|
credentialCards: () => cy.getByTestId('credential-card'),
|
|
credentialCard: (credentialName: string) => cy.getByTestId('credential-card')
|
|
.contains(credentialName)
|
|
.parents('[data-test-id="credential-card"]'),
|
|
credentialCardActions: (credentialName: string) => this.getters.credentialCard(credentialName)
|
|
.findChildByTestId('credential-card-actions'),
|
|
credentialDeleteButton: () => cy.getByTestId('action-toggle-dropdown').filter(':visible').contains('Delete')
|
|
};
|
|
}
|