59 references to HtmlAssert
Microsoft.AspNetCore.Identity.FunctionalTests (59)
Pages\Account\ExternalLogin.cs (3)
19
_emailForm =
HtmlAssert
.HasForm(Document);
20
Title =
HtmlAssert
.HasElement("#external-login-title", Document);
21
Description =
HtmlAssert
.HasElement("#external-login-description", Document);
Pages\Account\ForgotPassword.cs (1)
15
_forgotPasswordForm =
HtmlAssert
.HasForm(document);
Pages\Account\Login.cs (6)
24
_loginForm =
HtmlAssert
.HasForm("#account", login);
25
_loginButton =
HtmlAssert
.HasElement("#login-submit", login);
26
_forgotPasswordLink =
HtmlAssert
.HasLink("#forgot-password", login);
27
_reconfirmLink =
HtmlAssert
.HasLink("#resend-confirmation", login);
30
_externalLoginForm =
HtmlAssert
.HasForm("#external-account", login);
31
_contosoButton =
HtmlAssert
.HasElement("button[value=Contoso]", login);
Pages\Account\LoginWith2fa.cs (2)
20
_twoFactorForm =
HtmlAssert
.HasForm(loginWithTwoFactor);
21
_loginWithRecoveryCodeLink =
HtmlAssert
.HasLink("#recovery-code-login", loginWithTwoFactor);
Pages\Account\LoginWithRecoveryCode.cs (1)
16
_loginWithRecoveryCodeForm =
HtmlAssert
.HasForm(loginWithRecoveryCode);
Pages\Account\Manage\ChangePassword.cs (1)
16
_changePasswordForm =
HtmlAssert
.HasForm("#change-password-form", changePassword);
Pages\Account\Manage\DeleteUser.cs (1)
16
_deleteForm =
HtmlAssert
.HasForm("#delete-user", deleteUser);
Pages\Account\Manage\Email.cs (5)
24
_changeEmailForm =
HtmlAssert
.HasForm("#email-form", manage);
25
_emailInput =
HtmlAssert
.HasElement("#Email", manage);
26
_newEmailInput =
HtmlAssert
.HasElement("#Input_NewEmail", manage);
27
_changeEmailButton =
HtmlAssert
.HasElement("#change-email-button", manage);
30
_confirmEmailButton =
HtmlAssert
.HasElement("button#email-verification", manage);
Pages\Account\Manage\EnableAuthenticator.cs (2)
24
_codeElement =
HtmlAssert
.HasElement("kbd", enableAuthenticator);
25
_sendCodeForm =
HtmlAssert
.HasForm("#send-code", enableAuthenticator);
Pages\Account\Manage\ExternalLogins.cs (2)
16
RemoveExternalLogin =
HtmlAssert
.HasForm("#remove-login-Contoso", Document);
21
ExternalLoginDisplayName =
HtmlAssert
.HasElement("#login-provider-Contoso", Document);
Pages\Account\Manage\Index.cs (9)
27
_profileLink =
HtmlAssert
.HasLink("#profile", manage);
28
_emailLink =
HtmlAssert
.HasLink("#email", manage);
29
_changePasswordLink =
HtmlAssert
.HasLink("#change-password", manage);
30
_twoFactorLink =
HtmlAssert
.HasLink("#two-factor", manage);
33
_externalLoginLink =
HtmlAssert
.HasLink("#external-login", manage);
35
_personalDataLink =
HtmlAssert
.HasLink("#personal-data", manage);
36
_updateProfileForm =
HtmlAssert
.HasForm("#profile-form", manage);
37
_userNameInput =
HtmlAssert
.HasElement("#Username", manage);
38
_updateProfileButton =
HtmlAssert
.HasElement("#update-profile-button", manage);
Pages\Account\Manage\LinkExternalLogin.cs (2)
17
_linkLoginForm =
HtmlAssert
.HasForm($"#link-login-form", externalLoginsDocument);
18
_linkLoginButton =
HtmlAssert
.HasElement($"#link-login-button-Contoso", externalLoginsDocument);
Pages\Account\Manage\ManageExternalLogin.cs (1)
16
_externalLoginForm =
HtmlAssert
.HasForm("#external-login", externalLoginDocument);
Pages\Account\Manage\PersonalData.cs (2)
17
_deleteLink =
HtmlAssert
.HasLink("#delete", personalData);
18
_downloadForm =
HtmlAssert
.HasForm("#download-data", personalData);
Pages\Account\Manage\RemoveExternalLogin.cs (1)
16
_removeLoginForm =
HtmlAssert
.HasForm($"#remove-login-Contoso", externalLogin);
Pages\Account\Manage\ResetAuthenticator.cs (2)
21
_resetAuthenticatorForm =
HtmlAssert
.HasForm("#reset-authenticator-form", resetAuthenticator);
22
_resetAuthenticatorButton =
HtmlAssert
.HasElement("#reset-authenticator-button", resetAuthenticator);
Pages\Account\Manage\SetPassword.cs (1)
16
_setPasswordForm =
HtmlAssert
.HasForm("#set-password-form", setPassword);
Pages\Account\Manage\ShowRecoveryCodes.cs (1)
16
_recoveryCodeElements =
HtmlAssert
.HasElements(".recovery-code", showRecoveryCodes);
Pages\Account\Manage\TwoFactorAuthentication.cs (2)
21
_enableAuthenticatorLink =
HtmlAssert
.HasLink("#enable-authenticator", twoFactor);
25
_resetAuthenticatorLink =
HtmlAssert
.HasLink("#reset-authenticator", twoFactor);
Pages\Account\Register.cs (3)
18
_registerForm =
HtmlAssert
.HasForm("#registerForm", register);
21
_externalLoginForm =
HtmlAssert
.HasForm("#external-account", register);
22
_contosoButton =
HtmlAssert
.HasElement("button[value=Contoso]", register);
Pages\Account\ResendEmailConfirmation.cs (1)
15
_resendForm =
HtmlAssert
.HasForm(document);
Pages\Account\ResetPassword.cs (1)
15
_resetPasswordForm =
HtmlAssert
.HasForm(resetPassword);
Pages\Contoso\Login.cs (1)
17
_loginForm =
HtmlAssert
.HasForm(login);
Pages\Index.cs (3)
25
_registerLink =
HtmlAssert
.HasLink("#register", Document);
26
_loginLink =
HtmlAssert
.HasLink("#login", Document);
30
_manageLink =
HtmlAssert
.HasLink("#manage", Document);
Pages\RegisterConfirmation.cs (1)
27
_confirmLink =
HtmlAssert
.HasLink("#confirm-link", Document);
UserStories.cs (4)
184
var emailBody =
HtmlAssert
.IsHtmlFragment(email.Body);
185
var linkElement =
HtmlAssert
.HasElement("a", emailBody);
216
var emailBody =
HtmlAssert
.IsHtmlFragment(resetPasswordEmail.Body);
217
var linkElement =
HtmlAssert
.HasElement("a", emailBody);