2023-02-14 06:13:00 -08:00
|
|
|
import { BasePage } from '../base';
|
|
|
|
|
|
|
|
export class WorkflowSharingModal extends BasePage {
|
|
|
|
getters = {
|
|
|
|
modal: () => cy.getByTestId('workflowShare-modal', { timeout: 5000 }),
|
2024-05-17 01:53:15 -07:00
|
|
|
usersSelect: () => cy.getByTestId('project-sharing-select'),
|
2023-02-14 06:13:00 -08:00
|
|
|
saveButton: () => cy.getByTestId('workflow-sharing-modal-save-button'),
|
|
|
|
closeButton: () => this.getters.modal().find('.el-dialog__close').first(),
|
|
|
|
};
|
2024-06-10 06:49:50 -07:00
|
|
|
|
2023-02-14 06:13:00 -08:00
|
|
|
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();
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|