mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
prompt test fiw
This commit is contained in:
parent
ef74880a6b
commit
2e8dc352ad
@ -241,6 +241,7 @@ describe('CTB <GroupPage />', () => {
|
||||
const wrapper = shallow(<GroupPage {...props} />);
|
||||
expect(wrapper.state()).toEqual({
|
||||
showWarning: false,
|
||||
removePrompt: false,
|
||||
attrToDelete: null,
|
||||
});
|
||||
|
||||
@ -250,6 +251,7 @@ describe('CTB <GroupPage />', () => {
|
||||
|
||||
expect(wrapper.state()).toEqual({
|
||||
showWarning: true,
|
||||
removePrompt: false,
|
||||
attrToDelete: null,
|
||||
});
|
||||
});
|
||||
@ -647,6 +649,7 @@ describe('CTB <GroupPage />, lifecycle', () => {
|
||||
handleClickOnTrashIcon(0);
|
||||
expect(wrapper.state()).toEqual({
|
||||
attrToDelete: 0,
|
||||
removePrompt: false,
|
||||
showWarning: true,
|
||||
});
|
||||
handleDeleteAttribute();
|
||||
|
Loading…
x
Reference in New Issue
Block a user