Explorar o código

chore: enableExpression, broken test and config

jamesread hai 6 meses
pai
achega
3d5268d1c9

+ 1 - 1
integration-tests/tests/enabledExpression/enabledExpression.mjs

@@ -19,7 +19,7 @@ describe('config: enabledExpression', function () {
     takeScreenshotOnFailure(this.currentTest, webdriver);
   });
 
-  it('Action with enabledExpression false is disabled', async function() {
+  it('Action with enabledExpression for lights enable the correct action', async function() {
     await getRootAndWait()
 
     // Navigate to the Lights Dashboard

+ 1 - 0
service/internal/config/config.go

@@ -28,6 +28,7 @@ type Action struct {
 	Arguments              []ActionArgument `koanf:"arguments"`
 	PopupOnStart           string           `koanf:"popupOnStart"`
 	SaveLogs               SaveLogsConfig   `koanf:"saveLogs"`
+	EnabledExpression      string           `koanf:"enabledExpression"`
 }
 
 // ActionArgument objects appear on Actions.