mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: Add workflow and credential sharing access e2e tests (#5463)
feat: add workflow and credential sharing access e2e tests
This commit is contained in:
@@ -26,8 +26,19 @@ export class CredentialsModal extends BasePage {
|
||||
credentialAuthTypeRadioButtons: () =>
|
||||
this.getters.credentialsAuthTypeSelector().find('label[role=radio]'),
|
||||
credentialInputs: () => cy.getByTestId('credential-connection-parameter'),
|
||||
menu: () => this.getters.editCredentialModal().get('.menu-container'),
|
||||
menuItem: (name: string) => this.getters.menu().get('.n8n-menu-item').contains(name),
|
||||
usersSelect: () => cy.getByTestId('credential-sharing-modal-users-select'),
|
||||
};
|
||||
actions = {
|
||||
addUser: (email: string) => {
|
||||
this.getters.usersSelect().click();
|
||||
this.getters
|
||||
.usersSelect()
|
||||
.get('.el-select-dropdown__item')
|
||||
.contains(email.toLowerCase())
|
||||
.click();
|
||||
},
|
||||
setName: (name: string) => {
|
||||
this.getters.name().click();
|
||||
this.getters.nameInput().clear().type(name);
|
||||
@@ -64,5 +75,8 @@ export class CredentialsModal extends BasePage {
|
||||
this.getters.nameInput().type(newName);
|
||||
this.getters.nameInput().type('{enter}');
|
||||
},
|
||||
changeTab: (tabName: string) => {
|
||||
this.getters.menuItem(tabName).click();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user