+
diff --git a/frontend/syson-components/src/extensions/registry/SysONExtensionRegistry.tsx b/frontend/syson-components/src/extensions/registry/SysONExtensionRegistry.tsx
index c89a4e42b..5a3a94be3 100644
--- a/frontend/syson-components/src/extensions/registry/SysONExtensionRegistry.tsx
+++ b/frontend/syson-components/src/extensions/registry/SysONExtensionRegistry.tsx
@@ -239,7 +239,7 @@ sysONExtensionRegistry.putData(widgetContributionExtensionPoint, {
previewComponent: () => null,
component: (widget: GQLWidget): PropertySectionComponent | null => {
let propertySectionComponent: PropertySectionComponent | null = null;
- if (widget.__typename == 'Textarea' && widget.label.startsWith('syson:expression-value-widget')) {
+ if (widget.__typename == 'LabelWidget' && widget.label.startsWith('syson:expression-value-widget')) {
propertySectionComponent = ExpressionPropertySection as PropertySectionComponent;
}
return propertySectionComponent;
diff --git a/integration-tests-cypress/cypress/e2e/project/details/details.cy.ts b/integration-tests-cypress/cypress/e2e/project/details/details.cy.ts
index 150ca4f8b..38e210425 100644
--- a/integration-tests-cypress/cypress/e2e/project/details/details.cy.ts
+++ b/integration-tests-cypress/cypress/e2e/project/details/details.cy.ts
@@ -110,5 +110,19 @@ describe('Details View Tests', () => {
cy.getByTestId('details-expression-value').should('have.text', '80 [SI::centimetre]');
});
});
+
+ context('When we select a TransitionUsage with a guard Expression', () => {
+ beforeEach(() => {
+ explorer.select('Drive Batmobile');
+ explorer.expand('Drive Batmobile');
+ // The TransitionUsage is anonymous so select the closest named item and move down using the keyboard
+ explorer.select('scanEnvironment');
+ cy.getByTestId('scanEnvironment').type('{downArrow}{downArrow}{downArrow}');
+ });
+ it("Then the Details view shows the child expression's textual value", () => {
+ cy.getByTestId('details-expression-value').should('exist');
+ cy.getByTestId('details-expression-value').should('have.text', 'scanEnvironment.status == StatusKind::safe');
+ });
+ });
});
});