diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-31 18:32:38 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-31 22:33:04 +1000 |
commit | 9cc1d6528068d6552fd72461a2ad49987edd39da (patch) | |
tree | 9aeaf86ce1fa3d2bb5fc19c227042c78fbd5f2a0 /pkg/gui/gui_common.go | |
parent | 71d2fd37e2ff8214d5af3135ab3a355971789dc2 (diff) |
Add demo test variant
We're piggybacking on our existing integration test framework to record demos that we can include in our docs
Diffstat (limited to 'pkg/gui/gui_common.go')
-rw-r--r-- | pkg/gui/gui_common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/gui_common.go b/pkg/gui/gui_common.go index 4ca3ca8f5..72662f1c1 100644 --- a/pkg/gui/gui_common.go +++ b/pkg/gui/gui_common.go @@ -181,3 +181,7 @@ func (self *guiCommon) AfterLayout(f func() error) { self.gui.c.Log.Error("afterLayoutFuncs channel is full, skipping function") } } + +func (self *guiCommon) InDemo() bool { + return self.gui.integrationTest != nil && self.gui.integrationTest.IsDemo() +} |