mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Flaky tests] Click a more explicit button (#136091)
This commit is contained in:
parent
e815df9c08
commit
6a043110cd
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
describe('General "click"', () => {
|
||||
beforeEach(async () => {
|
||||
await common.navigateToApp('home');
|
||||
// Just click on the top div and expect it's still there... we're just testing the click event generation
|
||||
await common.clickAndValidate('kibanaChrome', 'kibanaChrome');
|
||||
// Just clicking the top-nav-button and expecting it's still there... we're just testing the click event generation
|
||||
await common.clickAndValidate('toggleNavButton', 'toggleNavButton');
|
||||
});
|
||||
|
||||
it('should emit a "click" event', async () => {
|
||||
|
@ -28,6 +28,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
expect(targets.includes('DIV')).to.be(true);
|
||||
expect(targets.includes('id=kibana-body')).to.be(true);
|
||||
expect(targets.includes('data-test-subj=kibanaChrome')).to.be(true);
|
||||
expect(targets.includes('BUTTON')).to.be(true);
|
||||
expect(targets.includes('data-test-subj=toggleNavButton')).to.be(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue