diff --git a/cypress/e2e/26-resource-locator.cy.ts b/cypress/e2e/26-resource-locator.cy.ts index 38de738b56..060650cc22 100644 --- a/cypress/e2e/26-resource-locator.cy.ts +++ b/cypress/e2e/26-resource-locator.cy.ts @@ -7,6 +7,7 @@ const credentialsModal = new CredentialsModal(); const NO_CREDENTIALS_MESSAGE = 'Please add your credential'; const INVALID_CREDENTIALS_MESSAGE = 'Please check your credential'; +const MODE_SELECTOR_LIST = 'From list'; describe('Resource Locator', () => { beforeEach(() => { @@ -18,6 +19,14 @@ describe('Resource Locator', () => { workflowPage.actions.addNodeToCanvas('Google Sheets', true, true); ndv.getters.resourceLocator('documentId').should('be.visible'); ndv.getters.resourceLocator('sheetName').should('be.visible'); + ndv.getters + .resourceLocatorModeSelector('documentId') + .find('input') + .should('have.value', MODE_SELECTOR_LIST); + ndv.getters + .resourceLocatorModeSelector('sheetName') + .find('input') + .should('have.value', MODE_SELECTOR_LIST); }); it('should show appropriate error when credentials are not set', () => { diff --git a/packages/editor-ui/src/components/ResourceLocator/ResourceLocator.vue b/packages/editor-ui/src/components/ResourceLocator/ResourceLocator.vue index dac92a2fdd..4cb9f98b3e 100644 --- a/packages/editor-ui/src/components/ResourceLocator/ResourceLocator.vue +++ b/packages/editor-ui/src/components/ResourceLocator/ResourceLocator.vue @@ -58,6 +58,7 @@ v-for="mode in parameter.modes" :key="mode.name" :value="mode.name" + :label="getModeLabel(mode)" :disabled="isValueExpression && mode.name === 'list'" :title=" isValueExpression && mode.name === 'list' @@ -65,7 +66,7 @@ : '' " > - {{ getModeLabel(mode.name) || mode.displayName }} + {{ getModeLabel(mode) }} @@ -143,8 +144,27 @@