fix: update ndv e2e tests

This commit is contained in:
Alex Grozav 2023-07-24 15:31:33 +03:00
parent d975b34794
commit d0a0c85352
3 changed files with 12 additions and 9 deletions

View file

@ -28,7 +28,10 @@ describe('NDV', () => {
cy.grantBrowserPermissions('clipboardReadWrite', 'clipboardSanitizedWrite'); cy.grantBrowserPermissions('clipboardReadWrite', 'clipboardSanitizedWrite');
cy.readClipboard().then((url) => { cy.window()
.focus()
.readClipboard()
.then((url) => {
cy.request({ cy.request({
method: 'GET', method: 'GET',
url, url,

View file

@ -5,6 +5,7 @@
</template> </template>
<div> <div>
<n8n-button <n8n-button
v-bind="$attrs"
:loading="nodeRunning && !isListeningForEvents && !isListeningForWorkflowEvents" :loading="nodeRunning && !isListeningForEvents && !isListeningForWorkflowEvents"
:disabled="disabled || !!disabledHint" :disabled="disabled || !!disabledHint"
:label="buttonLabel" :label="buttonLabel"
@ -32,6 +33,7 @@ import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { useToast, useMessage } from '@/composables'; import { useToast, useMessage } from '@/composables';
export default defineComponent({ export default defineComponent({
inheritAttrs: false,
mixins: [workflowRun, pinData], mixins: [workflowRun, pinData],
props: { props: {
nodeName: { nodeName: {

View file

@ -984,8 +984,6 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
nodes: [...this.workflow.nodes.slice(0, i), ...this.workflow.nodes.slice(i + 1)], nodes: [...this.workflow.nodes.slice(0, i), ...this.workflow.nodes.slice(i + 1)],
}; };
console.log(this.workflow);
uiStore.stateIsDirty = true; uiStore.stateIsDirty = true;
return; return;
} }