Files
fn_registry/functions/browser/cdp_click_text_test.go
T
egutierrez 750b7abcd5 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>
2026-05-09 18:11:24 +02:00

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)
}
}