Documentation ¶
Overview ¶
Package browsertest provides integration test helpers for our browser-based tests.
Index ¶
- func LoginToUpstreamLDAP(t *testing.T, page *agouti.Page, issuer, username, password string)
- func LoginToUpstreamOIDC(t *testing.T, page *agouti.Page, upstream testlib.TestOIDCUpstream)
- func Open(t *testing.T) *agouti.Page
- func SubmitUpstreamLDAPLoginForm(t *testing.T, page *agouti.Page, username string, password string)
- func WaitForURL(t *testing.T, page *agouti.Page, pat *regexp.Regexp)
- func WaitForUpstreamLDAPLoginPageWithError(t *testing.T, page *agouti.Page, issuer string)
- func WaitForVisibleElements(t *testing.T, page *agouti.Page, selectors ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginToUpstreamLDAP ¶ added in v0.18.0
LoginToUpstreamLDAP expects the page to be redirected to the Supervisor's login UI for an LDAP/AD IDP. It knows how to enter the test username/password and submit the upstream login form.
func LoginToUpstreamOIDC ¶ added in v0.18.0
LoginToUpstreamOIDC expects the page to be redirected to one of several known upstream IDPs. It knows how to enter the test username/password and submit the upstream login form.
func Open ¶
Open a webdriver-driven browser and returns an *agouti.Page to control it. The browser will be automatically closed at the end of the current test. It is configured for test purposes with the correct HTTP proxy and in a mode that ignore certificate errors.
func SubmitUpstreamLDAPLoginForm ¶ added in v0.18.0
func WaitForURL ¶
WaitForURL expects the page to eventually navigate to a URL matching the specified pattern. It waits for this to occur and times out, failing the test, if it never does.
func WaitForUpstreamLDAPLoginPageWithError ¶ added in v0.18.0
Types ¶
This section is empty.