authelia/internal/suites/verify_notification.go

10 lines
257 B
Go

package suites
import "context"
func verifyNotificationDisplayed(ctx context.Context, s *SeleniumSuite, message string) {
txt, err := WaitElementLocatedByClassName(ctx, s, "notification").Text()
s.Assert().NoError(err)
s.Assert().Equal(message, txt)
}