mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
95b97078e8
* add tests * ci: Setup cypress tasks for resetting DB, and setting up an owner * add test tests to check for settings * add more tests * clean up * rename tag * update test id Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
20 lines
560 B
TypeScript
20 lines
560 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'),
|
|
content: () => this.getters.modal().find('.el-message-box__content'),
|
|
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();
|
|
},
|
|
};
|
|
}
|