mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
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:
committed by
GitHub
parent
0262daa228
commit
fc03549299
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user