chore: auto-commit (97 archivos)
- .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>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user