1
0
mirror of https://github.com/0rangebananaspy/authelia.git synced 2024-09-14 22:47:21 +07:00
authelia/internal/suites/verify_body_contains.go
James Elliott 0f7da4fd90
fix(suites): fix passive health checks for caddy suite ()
This change fixes an issue that was incorrectly marking the primary load balancer target for the front end in dev mode as down.
2022-06-30 11:39:50 +10:00

15 lines
287 B
Go

package suites
import (
"testing"
"github.com/go-rod/rod"
"github.com/stretchr/testify/assert"
)
func (rs *RodSession) verifyBodyContains(t *testing.T, page *rod.Page, pattern string) {
body, err := page.ElementR("body", pattern)
assert.NoError(t, err)
assert.NotNil(t, body)
}