Skip to content

Commit c5619f8

Browse files
committed
Target text in e2e
1 parent 17bc113 commit c5619f8

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

site/e2e/pom/SignInPage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export class SignInPage extends BasePom {
77
}
88

99
async submitBuiltInAuthentication(email: string, password: string): Promise<void> {
10-
await this.page.fill("id=signin-form-inpt-email", email)
11-
await this.page.fill("id=signin-form-inpt-password", password)
12-
await this.page.click("id=signin-form-submit")
10+
await this.page.fill("text=Email", email)
11+
await this.page.fill("text=Password", password)
12+
await this.page.click("text=Sign In")
1313
}
1414
}

site/src/components/SignIn/SignInForm.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ export const SignInForm: React.FC<SignInFormProps> = ({ isLoading, authErrorMess
8989
type="password"
9090
variant="outlined"
9191
/>
92-
{authErrorMessage && (
93-
<FormHelperText data-testid="sign-in-error" error>
94-
{Language.authErrorMessage}
95-
</FormHelperText>
96-
)}
92+
{authErrorMessage && <FormHelperText error>{Language.authErrorMessage}</FormHelperText>}
9793
<div className={styles.submitBtn}>
9894
<LoadingButton color="primary" loading={isLoading} fullWidth type="submit" variant="contained">
9995
{isLoading ? "" : Language.signIn}

0 commit comments

Comments
 (0)