fix: fix 17-sharing e2e suite

This commit is contained in:
Alex Grozav 2023-07-25 14:01:27 +03:00
parent 8616f28516
commit d72a396ab5
4 changed files with 15 additions and 21 deletions

View file

@ -250,7 +250,7 @@ describe('Webhook Trigger node', async () => {
}); });
}); });
it.only('should listen for a GET request with Basic Authentication', () => { it('should listen for a GET request with Basic Authentication', () => {
const webhookPath = uuid(); const webhookPath = uuid();
simpleWebhookCall({ simpleWebhookCall({
method: 'GET', method: 'GET',

View file

@ -48,7 +48,7 @@ describe('Sharing', { disableAutoLogin: true }, () => {
workflowPage.actions.setWorkflowName('Workflow W1'); workflowPage.actions.setWorkflowName('Workflow W1');
workflowPage.actions.addInitialNodeToCanvas('Manual Trigger'); workflowPage.actions.addInitialNodeToCanvas('Manual Trigger');
workflowPage.actions.addNodeToCanvas('Notion', true, true); workflowPage.actions.addNodeToCanvas('Notion', true, true);
ndv.getters.credentialInput().should('contain', 'Credential C1'); ndv.getters.credentialInput().find('input').should('have.value', 'Credential C1');
ndv.actions.close(); ndv.actions.close();
workflowPage.actions.openShareModal(); workflowPage.actions.openShareModal();
@ -87,16 +87,12 @@ describe('Sharing', { disableAutoLogin: true }, () => {
workflowsPage.getters.workflowCards().should('have.length', 1); workflowsPage.getters.workflowCards().should('have.length', 1);
workflowsPage.getters.workflowCard('Workflow W1').click(); workflowsPage.getters.workflowCard('Workflow W1').click();
workflowPage.actions.addNodeToCanvas('Airtable', true, true); workflowPage.actions.addNodeToCanvas('Airtable', true, true);
ndv.getters.credentialInput().should('contain', 'Credential C2'); ndv.getters.credentialInput().find('input').should('have.value', 'Credential C2');
ndv.actions.close(); ndv.actions.close();
workflowPage.actions.saveWorkflowOnButtonClick(); workflowPage.actions.saveWorkflowOnButtonClick();
workflowPage.actions.openNode('Notion'); workflowPage.actions.openNode('Notion');
ndv.getters ndv.getters.credentialInput().should('have.value', 'Credential C1').should('be.disabled');
.credentialInput()
.find('input')
.should('have.value', 'Credential C1')
.should('be.disabled');
ndv.actions.close(); ndv.actions.close();
}); });
@ -116,11 +112,7 @@ describe('Sharing', { disableAutoLogin: true }, () => {
workflowsPage.getters.workflowCards().should('have.length', 2); workflowsPage.getters.workflowCards().should('have.length', 2);
workflowsPage.getters.workflowCard('Workflow W1').click(); workflowsPage.getters.workflowCard('Workflow W1').click();
workflowPage.actions.openNode('Notion'); workflowPage.actions.openNode('Notion');
ndv.getters ndv.getters.credentialInput().should('have.value', 'Credential C1').should('be.disabled');
.credentialInput()
.find('input')
.should('have.value', 'Credential C1')
.should('be.disabled');
ndv.actions.close(); ndv.actions.close();
cy.waitForLoad(); cy.waitForLoad();

View file

@ -99,7 +99,7 @@ export default {
}, },
methods: { methods: {
onInput() { onInput() {
this.$emit('input'); this.$emit(onUpdate);
}, },
onCheckboxChecked(eventName: string, checked: boolean) { onCheckboxChecked(eventName: string, checked: boolean) {
this.logStreamingStore.setSelectedInGroup(this.destinationId, eventName, checked); this.logStreamingStore.setSelectedInGroup(this.destinationId, eventName, checked);

View file

@ -1,10 +1,12 @@
<template> <template>
<n8n-menu <div class="resource-ownership-select">
:items="menuItems" <n8n-menu
mode="tabs" :items="menuItems"
:modelValue="value ? 'owner' : 'all'" mode="tabs"
@update:modelValue="onSelectOwner" :modelValue="value ? 'owner' : 'all'"
/> @update:modelValue="onSelectOwner"
/>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -46,7 +48,7 @@ export default defineComponent({
}, },
methods: { methods: {
onSelectOwner(type: string) { onSelectOwner(type: string) {
this.$emit('input', type === 'owner'); this.$emit('update:modelValue', type === 'owner');
}, },
}, },
}); });