750b7abcd5
- .claude/CLAUDE.md - .claude/agents/fn-recopilador/SKILL.md - .claude/rules/INDEX.md - .claude/rules/cpp_apps.md - bash/functions/infra/build_cpp_windows.sh - cpp/CMakeLists.txt - cpp/PATTERNS.md - cpp/framework/app_base.cpp - cpp/framework/app_base.h - dev/issues/README.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
495 B
Go
24 lines
495 B
Go
package browser
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestCdpClickText_nilConn(t *testing.T) {
|
|
if err := CdpClickText(nil, "Submit", FindByTextOpts{}); err == nil {
|
|
t.Fatal("expected error on nil conn")
|
|
}
|
|
}
|
|
|
|
func TestCdpClickText_emptyText(t *testing.T) {
|
|
c := &CDPConn{}
|
|
err := CdpClickText(c, "", FindByTextOpts{})
|
|
if err == nil {
|
|
t.Fatal("expected error on empty text")
|
|
}
|
|
if !strings.Contains(err.Error(), "cdp click text") {
|
|
t.Fatalf("error no incluye prefijo: %v", err)
|
|
}
|
|
}
|