2022-12-15 07:39:59 -08:00
|
|
|
import { BasePage } from '../base';
|
2022-11-24 03:52:09 -08:00
|
|
|
|
|
|
|
export class MessageBox extends BasePage {
|
|
|
|
getters = {
|
|
|
|
modal: () => cy.get('.el-message-box', { withinSubject: null }),
|
|
|
|
header: () => this.getters.modal().find('.el-message-box__title'),
|
2022-11-24 14:22:09 -08:00
|
|
|
content: () => this.getters.modal().find('.el-message-box__content'),
|
2022-11-24 03:52:09 -08:00
|
|
|
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();
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|