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();
simpleWebhookCall({
method: 'GET',

View file

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

View file

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

View file

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