Skip to content

Commit

Permalink
Use proper test subject for the password change Cancel button.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed May 19, 2022
1 parent a34e015 commit a887dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const ChangePasswordModal: FunctionComponent<ChangePasswordModalProps> =
</EuiModalBody>
<EuiModalFooter>
<EuiButtonEmpty
data-test-subj="changePasswordFormModalCancelButton"
data-test-subj="changePasswordFormCancelButton"
isDisabled={form.isSubmitting}
onClick={onCancel}
>
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/accessibility/apps/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.settings.clickLinkText('deleteA11y');
await find.clickByButtonText('Change password');
await a11y.testAppSnapshot();
await testSubjects.click('formFlyoutCancelButton');
await testSubjects.click('changePasswordFormCancelButton');
});

it('a11y test for deactivate user screen', async () => {
Expand Down

0 comments on commit a887dad

Please sign in to comment.