@@ -66,9 +66,10 @@ func TestNewInjector_IgnoresUnknownBackends(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestInjector_Inject(t *testing.T) {
|
||||
// Skip integration tests in CI environments
|
||||
if os.Getenv("CI") == "true" {
|
||||
t.Skip("Skipping integration test in CI environment")
|
||||
// This test invokes real Wayland input tools and must run in a graphical
|
||||
// session, not merely outside CI.
|
||||
if os.Getenv("CI") == "true" || os.Getenv("WAYLAND_DISPLAY") == "" {
|
||||
t.Skip("Skipping integration test outside a Wayland session")
|
||||
}
|
||||
|
||||
tests := []struct {
|
||||
@@ -202,6 +203,13 @@ func TestClipboardBackend(t *testing.T) {
|
||||
t.Logf("clipboard is available")
|
||||
}
|
||||
|
||||
func TestClipboardPasteBackend(t *testing.T) {
|
||||
backend := NewClipboardPasteBackend()
|
||||
if backend.Name() != "clipboard-paste" {
|
||||
t.Errorf("Name() = %s, want clipboard-paste", backend.Name())
|
||||
}
|
||||
}
|
||||
|
||||
// TestInjector_ClipboardMode tests clipboard-only injection
|
||||
func TestInjector_ClipboardMode(t *testing.T) {
|
||||
config := Config{
|
||||
|
||||
Reference in New Issue
Block a user