chore: Added data-test attributes for testing (#11254)

* Added data-test attributes for testing

* fixed incorrect naming change

* review changes
This commit is contained in:
adam-stasiak-polidea
2020-10-15 01:12:01 +02:00
committed by GitHub
parent 0262daa228
commit fc03549299
51 changed files with 229 additions and 72 deletions

View File

@@ -128,12 +128,18 @@ describe('DashboardList', () => {
});
it('delete', () => {
wrapper.find('[data-test="trash"]').first().simulate('click');
wrapper
.find('[data-test="dashboard-list-trash-icon"]')
.first()
.simulate('click');
expect(wrapper.find(ConfirmStatusChange)).toExist();
});
it('card view delete', () => {
wrapper.find('[data-test="trash"]').last().simulate('click');
wrapper
.find('[data-test="dashboard-list-trash-icon"]')
.last()
.simulate('click');
expect(wrapper.find(ConfirmStatusChange)).toExist();
});
});