mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
|
import { BasePage } from "../base";
|
||
|
|
||
|
export class MessageBox extends BasePage {
|
||
|
getters = {
|
||
|
modal: () => cy.get('.el-message-box', { withinSubject: null }),
|
||
|
header: () => this.getters.modal().find('.el-message-box__title'),
|
||
|
confirm: () => this.getters.modal().find('.btn--confirm'),
|
||
|
cancel: () => this.getters.modal().find('.btn--cancel'),
|
||
|
};
|
||
|
actions = {
|
||
|
confirm: () => {
|
||
|
this.getters.confirm().click();
|
||
|
},
|
||
|
cancel: () => {
|
||
|
this.getters.cancel().click();
|
||
|
},
|
||
|
};
|
||
|
}
|