summaryrefslogtreecommitdiffstats
path: root/pkg/integration
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/integration')
-rw-r--r--pkg/integration/components/test_test.go2
-rw-r--r--pkg/integration/components/view_driver.go4
-rw-r--r--pkg/integration/types/types.go1
3 files changed, 6 insertions, 1 deletions
diff --git a/pkg/integration/components/test_test.go b/pkg/integration/components/test_test.go
index 047ee507c..ea1c79124 100644
--- a/pkg/integration/components/test_test.go
+++ b/pkg/integration/components/test_test.go
@@ -84,6 +84,8 @@ func (self *fakeGuiDriver) NextToast() *string {
func (self *fakeGuiDriver) CheckAllToastsAcknowledged() {}
+func (self *fakeGuiDriver) Headless() bool { return false }
+
func TestManualFailure(t *testing.T) {
test := NewIntegrationTest(NewIntegrationTestArgs{
Description: unitTestDescription,
diff --git a/pkg/integration/components/view_driver.go b/pkg/integration/components/view_driver.go
index 8d9b336d6..4d8e75217 100644
--- a/pkg/integration/components/view_driver.go
+++ b/pkg/integration/components/view_driver.go
@@ -601,7 +601,9 @@ func (self *ViewDriver) SetCaptionPrefix(prefix string) *ViewDriver {
}
func (self *ViewDriver) Wait(milliseconds int) *ViewDriver {
- self.t.Wait(milliseconds)
+ if !self.t.gui.Headless() {
+ self.t.Wait(milliseconds)
+ }
return self
}
diff --git a/pkg/integration/types/types.go b/pkg/integration/types/types.go
index a30aeb055..9c4f057d2 100644
--- a/pkg/integration/types/types.go
+++ b/pkg/integration/types/types.go
@@ -46,4 +46,5 @@ type GuiDriver interface {
// Pop the next toast that was displayed; returns nil if there was none
NextToast() *string
CheckAllToastsAcknowledged()
+ Headless() bool
}