mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix: Correctly allow sharees to test credential when opening the modal (#6111)
* fix: Prevent incorrect error message when sharee opens a credential * test: Add testing for automated credential testing * chore: Remove unnecessary comments
This commit is contained in:
@@ -58,8 +58,8 @@ Cypress.Commands.add('waitForLoad', (waitForIntercepts = true) => {
|
||||
// These aliases are set-up before each test in cypress/support/e2e.ts
|
||||
// we can't set them up here because at this point it would be too late
|
||||
// and the requests would already have been made
|
||||
if(waitForIntercepts) {
|
||||
cy.wait(['@loadSettings', '@loadLogin'])
|
||||
if (waitForIntercepts) {
|
||||
cy.wait(['@loadSettings', '@loadLogin']);
|
||||
}
|
||||
cy.getByTestId('node-view-loader', { timeout: 20000 }).should('not.exist');
|
||||
cy.get('.el-loading-mask', { timeout: 20000 }).should('not.exist');
|
||||
@@ -243,8 +243,8 @@ Cypress.Commands.add('drag', (selector, pos, options) => {
|
||||
element.trigger('mousedown');
|
||||
element.trigger('mousemove', {
|
||||
which: 1,
|
||||
pageX: options?.abs? xDiff: originalLocation.right + xDiff,
|
||||
pageY: options?.abs? yDiff: originalLocation.top + yDiff,
|
||||
pageX: options?.abs ? xDiff : originalLocation.right + xDiff,
|
||||
pageY: options?.abs ? yDiff : originalLocation.top + yDiff,
|
||||
force: true,
|
||||
});
|
||||
element.trigger('mouseup', { force: true });
|
||||
|
||||
Reference in New Issue
Block a user