Skip to content

Commit 7d22cd4

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-3364: Reset button doesn't work on Add/Edit admin user
1 parent 79f8aa6 commit 7d22cd4

File tree

1 file changed

+24
-0
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/adapter

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
/*eslint max-nested-callbacks: 0*/
7+
define(['Magento_Ui/js/form/adapter/buttons'], function (uiFormSelectors) {
8+
describe('UI Form Selectors Module', function () {
9+
10+
it('should define reset, save, and saveAndContinue selectors', function () {
11+
// Check that the properties are defined
12+
expect(uiFormSelectors).toBeDefined();
13+
expect(uiFormSelectors.reset).toBeDefined();
14+
expect(uiFormSelectors.save).toBeDefined();
15+
expect(uiFormSelectors.saveAndContinue).toBeDefined();
16+
17+
// Verify that each selector matches the expected value
18+
expect(uiFormSelectors.reset).toBe('#reset_ui_form');
19+
expect(uiFormSelectors.save).toBe('#save');
20+
expect(uiFormSelectors.saveAndContinue).toBe('#save_and_continue');
21+
});
22+
23+
});
24+
});

0 commit comments

Comments
 (0)