Преглед на файлове

chore: enableExpression, broken test and config

jamesread преди 7 месеца
родител
ревизия
3d5268d1c9
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      integration-tests/tests/enabledExpression/enabledExpression.mjs
  2. 1 0
      service/internal/config/config.go

+ 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.