mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: fix 17-sharing e2e suite
This commit is contained in:
parent
8616f28516
commit
d72a396ab5
|
@ -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',
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue