mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
check tooltip in organization functional test
This commit is contained in:
@@ -78,4 +78,13 @@ describe('<Organizations />', () => {
|
|||||||
test('API Organization endpoint is valid', () => {
|
test('API Organization endpoint is valid', () => {
|
||||||
expect(API_ORGANIZATIONS).toBeDefined();
|
expect(API_ORGANIZATIONS).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('it displays a tooltip on delete hover', () => {
|
||||||
|
const tooltip = '.pf-c-tooltip__content';
|
||||||
|
const deleteButton = 'button[aria-label="Delete"]';
|
||||||
|
|
||||||
|
expect(pageWrapper.find(tooltip).length).toBe(0);
|
||||||
|
pageWrapper.find(deleteButton).simulate('mouseover');
|
||||||
|
expect(pageWrapper.find(tooltip).length).toBe(1);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user