mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-12 21:55:37 +00:00
Bug 4972: added necessary selenium debug ids
This commit is contained in:
1 parent
73f4953894
commit
b09deff56f
3 files changed
+8
-2
No files matched your search
+2
@@ -111,8 +111,10 @@ public class AbstractUserDialog extends DataEntryDialog<UserData> {
|
||||
emailBox = createTextBox("", 30);
|
||||
oldPwBox = createPasswordTextBox("", 30);
|
||||
pwBox = createPasswordTextBox("", 30);
|
||||
pwBox.ensureDebugId("pw");
|
||||
nameBox.setName("password");
|
||||
pwRepeat = createPasswordTextBox("", 30);
|
||||
pwRepeat.ensureDebugId("pwrepeat");
|
||||
if (user != null) {
|
||||
nameBox.setText(user.getName());
|
||||
emailBox.setText(user.getEmail());
|
||||
|
||||
+5
-2
@@ -81,11 +81,12 @@ public class UserEditDialog extends DataEntryDialog<UserDTO> {
|
||||
accountPanelContent.add(new Label(stringMessages.account(a.getAccountType())));
|
||||
if (a instanceof UsernamePasswordAccountDTO) {
|
||||
final Button changePasswordButton = new Button(stringMessages.changePassword());
|
||||
changePasswordButton.ensureDebugId("ChangePasswordButton");
|
||||
accountPanelContent.add(changePasswordButton);
|
||||
changePasswordButton.addClickHandler(new ClickHandler() {
|
||||
@Override
|
||||
public void onClick(ClickEvent event) {
|
||||
new ChangePasswordDialog(stringMessages, getUserManagementService(), userToEdit, new DataEntryDialog.DialogCallback<UserData>() {
|
||||
final ChangePasswordDialog changePasswordDialog = new ChangePasswordDialog(stringMessages, getUserManagementService(), userToEdit, new DataEntryDialog.DialogCallback<UserData>() {
|
||||
@Override
|
||||
public void ok(UserData userData) {
|
||||
getUserManagementService().updateSimpleUserPassword(userToEdit.getName(), /* admin doesn't need to provide old password */ null,
|
||||
@@ -115,7 +116,9 @@ public class UserEditDialog extends DataEntryDialog<UserDTO> {
|
||||
}));
|
||||
}
|
||||
@Override public void cancel() { }
|
||||
}).show();
|
||||
});
|
||||
changePasswordDialog.ensureDebugId("ChangePasswordDialog");
|
||||
changePasswordDialog.show();
|
||||
}
|
||||
});
|
||||
} else if (a instanceof SocialUserDTO) {
|
||||
|
||||
Reference in new issue
Block a user