diff --git a/app/gui2/e2e/widgets.spec.ts b/app/gui2/e2e/widgets.spec.ts index ca33d5a357a7..57f3925e5191 100644 --- a/app/gui2/e2e/widgets.spec.ts +++ b/app/gui2/e2e/widgets.spec.ts @@ -60,6 +60,10 @@ test('Selection widgets in Data.read node', async ({ page }) => { // Check initially visible arguments const node = locate.graphNodeByBinding(page, 'data') const argumentNames = node.locator('.WidgetArgumentName') + await expect(argumentNames).toHaveCount(1) + + // Check arguments after selecting node + await node.click() await expect(argumentNames).toHaveCount(3) // Set value on `on_problems` (static drop-down) @@ -129,6 +133,10 @@ test('Managing aggregates in `aggregate` node', async ({ page }) => { // Check initially visible arguments const node = locate.graphNodeByBinding(page, 'aggregated') const argumentNames = node.locator('.WidgetArgumentName') + await expect(argumentNames).toHaveCount(1) + + // Check arguments after selecting node + await node.click() await expect(argumentNames).toHaveCount(3) // Add first aggregate diff --git a/app/gui2/src/components/GraphEditor/GraphNode.vue b/app/gui2/src/components/GraphEditor/GraphNode.vue index 83783d3f79de..35083440a710 100644 --- a/app/gui2/src/components/GraphEditor/GraphNode.vue +++ b/app/gui2/src/components/GraphEditor/GraphNode.vue @@ -436,6 +436,7 @@ const documentation = computed(() => props.node.documentatio :icon="icon" :connectedSelfArgumentId="connectedSelfArgumentId" :potentialSelfArgumentId="potentialSelfArgumentId" + :extended="isOnlyOneSelected" @openFullMenu="openFullMenu" /> diff --git a/app/gui2/src/components/GraphEditor/NodeWidgetTree.vue b/app/gui2/src/components/GraphEditor/NodeWidgetTree.vue index b841b2557094..d043fbaf44b2 100644 --- a/app/gui2/src/components/GraphEditor/NodeWidgetTree.vue +++ b/app/gui2/src/components/GraphEditor/NodeWidgetTree.vue @@ -15,6 +15,7 @@ const props = defineProps<{ icon: Icon connectedSelfArgumentId: Ast.AstId | undefined potentialSelfArgumentId: Ast.AstId | undefined + extended: boolean }>() const emit = defineEmits<{ openFullMenu: [] @@ -69,6 +70,7 @@ provideWidgetTree( toRef(props, 'icon'), toRef(props, 'connectedSelfArgumentId'), toRef(props, 'potentialSelfArgumentId'), + toRef(props, 'extended'), layoutTransitions.active, () => { emit('openFullMenu') diff --git a/app/gui2/src/components/GraphEditor/widgets/WidgetApplication.vue b/app/gui2/src/components/GraphEditor/widgets/WidgetApplication.vue index 8da01424979b..2ba22aa2b6ce 100644 --- a/app/gui2/src/components/GraphEditor/widgets/WidgetApplication.vue +++ b/app/gui2/src/components/GraphEditor/widgets/WidgetApplication.vue @@ -1,11 +1,13 @@