summaryrefslogtreecommitdiff
path: root/internal/suites/verify_is_second_factor_page.go
blob: 8437a4eee15146d42b7491dbff31065b3e89982e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package suites

import (
	"testing"

	"github.com/go-rod/rod"
)

func (rs *RodSession) verifyIsSecondFactorPage(t *testing.T, page *rod.Page) {
	rs.WaitElementLocatedByID(t, page, "second-factor-stage")
}

func (rs *RodSession) verifyIsSecondFactorPasswordPage(t *testing.T, page *rod.Page) {
	rs.verifyIsSecondFactorPage(t, page)

	rs.WaitElementLocatedByID(t, page, "password-method")
}