authelia/internal/suites/verify_notification.go
2019-12-05 11:05:24 +01:00

15 lines
338 B
Go

package suites
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func (wds *WebDriverSession) verifyNotificationDisplayed(ctx context.Context, t *testing.T, message string) {
el := wds.WaitElementLocatedByClassName(ctx, t, "notification")
assert.NotNil(t, el)
wds.WaitElementTextContains(ctx, t, el, message)
}