mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
af3ac2db28
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
28 lines
737 B
TypeScript
28 lines
737 B
TypeScript
import { BasePage } from '../base';
|
|
|
|
export class WorkflowSharingModal extends BasePage {
|
|
getters = {
|
|
modal: () => cy.getByTestId('workflowShare-modal', { timeout: 5000 }),
|
|
usersSelect: () => cy.getByTestId('project-sharing-select'),
|
|
saveButton: () => cy.getByTestId('workflow-sharing-modal-save-button'),
|
|
closeButton: () => this.getters.modal().find('.el-dialog__close').first(),
|
|
};
|
|
|
|
actions = {
|
|
addUser: (email: string) => {
|
|
this.getters.usersSelect().click();
|
|
this.getters
|
|
.usersSelect()
|
|
.get('.el-select-dropdown__item')
|
|
.contains(email.toLowerCase())
|
|
.click();
|
|
},
|
|
save: () => {
|
|
this.getters.saveButton().click();
|
|
},
|
|
closeModal: () => {
|
|
this.getters.closeButton().click();
|
|
},
|
|
};
|
|
}
|