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,14 +28,17 @@ describe('NDV', () => {
cy.grantBrowserPermissions('clipboardReadWrite', 'clipboardSanitizedWrite');
cy.readClipboard().then((url) => {
cy.request({
method: 'GET',
url,
}).then((resp) => {
expect(resp.status).to.eq(200);
cy.window()
.focus()
.readClipboard()
.then((url) => {
cy.request({
method: 'GET',
url,
}).then((resp) => {
expect(resp.status).to.eq(200);
});
});
});
ndv.getters.outputDisplayMode().should('have.length.at.least', 1).and('be.visible');
});

View file

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