mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
test: Add e2e tests for workflow/credential migrations when enabling UM (#4719)
* 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>
This commit is contained in:
@@ -6,13 +6,15 @@ export class CredentialsModal extends BasePage {
|
||||
newCredentialTypeSelect: () => cy.getByTestId('new-credential-type-select'),
|
||||
newCredentialTypeOption: (credentialType: string) => cy.getByTestId('new-credential-type-select-option').contains(credentialType),
|
||||
newCredentialTypeButton: () => cy.getByTestId('new-credential-type-button'),
|
||||
editCredentialModal: () => cy.getByTestId('editCredential-modal', { timeout: 5000 }),
|
||||
connectionParameters: () => cy.getByTestId('credential-connection-parameter'),
|
||||
connectionParameter: (fieldName: string) => this.getters.connectionParameters().contains(fieldName)
|
||||
.parents('[data-test-id="credential-connection-parameter"]')
|
||||
.find('.n8n-input input'),
|
||||
name: () => cy.getByTestId('credential-name'),
|
||||
nameInput: () => cy.getByTestId('credential-name').find('input'),
|
||||
saveButton: () => cy.getByTestId('credential-save-button')
|
||||
saveButton: () => cy.getByTestId('credential-save-button'),
|
||||
closeButton: () => this.getters.editCredentialModal().find('.el-dialog__close'),
|
||||
};
|
||||
actions = {
|
||||
setName: (name: string) => {
|
||||
@@ -21,6 +23,9 @@ export class CredentialsModal extends BasePage {
|
||||
},
|
||||
save: () => {
|
||||
this.getters.saveButton().click();
|
||||
}
|
||||
},
|
||||
close: () => {
|
||||
this.getters.closeButton().click();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user