mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Set up Cypress as pnpm workspace (no-changelog) (#6049)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -28,6 +28,7 @@ export class CredentialsModal extends BasePage {
|
||||
usersSelect: () => cy.getByTestId('project-sharing-select').filter(':visible'),
|
||||
testSuccessTag: () => cy.getByTestId('credentials-config-container-test-success'),
|
||||
};
|
||||
|
||||
actions = {
|
||||
addUser: (email: string) => {
|
||||
this.getters.usersSelect().click();
|
||||
@@ -45,7 +46,7 @@ export class CredentialsModal extends BasePage {
|
||||
if (test) cy.wait('@testCredential');
|
||||
this.getters.saveButton().should('contain.text', 'Saved');
|
||||
},
|
||||
saveSharing: (test = false) => {
|
||||
saveSharing: () => {
|
||||
cy.intercept('PUT', '/rest/credentials/*/share').as('shareCredential');
|
||||
this.getters.saveButton().click({ force: true });
|
||||
cy.wait('@shareCredential');
|
||||
|
||||
Reference in New Issue
Block a user