Skip to content

Commit

Permalink
fix:fixed register
Browse files Browse the repository at this point in the history
  • Loading branch information
Toto-hitori committed May 5, 2024
1 parent 5bfa032 commit b4968c3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register_negative_blank_password.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", user);
await expect(page).toFill("input[id='username'", username);
await expect(page).toFill("#password", ""); // Blank password
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']", "");

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", user);
await expect(page).toFill("input[id='username'", username);
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", ""); // Blank password
await expect(page).toFill("input[data-testid='repeat-password']", ""); // Blank password

});

Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register_negative_blank_username.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", user);
await expect(page).toFill("input[id='username'", "");
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']", password);

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", email);
await expect(page).toFill("input[id='username'", username);
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']", password);

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ defineFeature(feature, test => {

when("The user fills the data in the form using an already used username", async () => {
await expect(page).toClick("span[class='chakra-link css-1bicqx'");
await expect(page).toFill("input[id='user'", user);
await expect(page).toFill("input[id='user'", user+"a");
await expect(page).toFill("input[id='username'", username);
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']", password);

});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", user);
await expect(page).toFill("input[id='username'", username);
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']]", password);

});

Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register_positive_form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defineFeature(feature, test => {
await expect(page).toFill("input[id='user'", userEmail);
await expect(page).toFill("input[id='username'", userName);
await expect(page).toFill("#password", password);
await expect(page).toFill("input[id='field-:r5:']", password);
await expect(page).toFill("input[data-testid='repeat-password']", password);

});

Expand Down
1 change: 1 addition & 0 deletions webapp/src/pages/Signup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default function Signup() {
</InputLeftElement>
<Input
type={showConfirmPassword ? "text" : "password"}
data-testid={"repeat-password"}
placeholder={t("session.confirm_password")}
value={confirmPassword}
onChange={handleConfirmPasswordChange}
Expand Down

0 comments on commit b4968c3

Please sign in to comment.