mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
test: Add initial e2e tests for default owner setup (#4710)
* use user-folder override consistently everywhere, including for the `.cache` folder * use consistent config for e2e tesing, skipping config loading from env and config files * simplify all the cypress commands, and run all e2e tests on master * add tests for skipping owner setup * add todos Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
18
cypress/pages/modals/message-box.ts
Normal file
18
cypress/pages/modals/message-box.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user