-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Triggers Actions UI] Wait for webhook card to settle before clicking in flaky SSL test #290455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ import type { FtrProviderContext } from '../../../../ftr_provider_context'; | |||||||||||||||||||||||||||||||||
| export default ({ getPageObjects, getService }: FtrProviderContext) => { | ||||||||||||||||||||||||||||||||||
| const testSubjects = getService('testSubjects'); | ||||||||||||||||||||||||||||||||||
| const find = getService('find'); | ||||||||||||||||||||||||||||||||||
| const retry = getService('retry'); | ||||||||||||||||||||||||||||||||||
| const pageObjects = getPageObjects(['common', 'triggersActionsUI', 'header']); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| describe('webhook', () => { | ||||||||||||||||||||||||||||||||||
|
|
@@ -20,6 +21,17 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| it('should not render the pfx tab for ssl auth', async () => { | ||||||||||||||||||||||||||||||||||
| await pageObjects.triggersActionsUI.clickCreateConnectorButton(); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| // The flyout slides in on open; clicking a card mid-animation drops the click and | ||||||||||||||||||||||||||||||||||
| // leaves the form unopened, so wait for the webhook card to stop moving first. | ||||||||||||||||||||||||||||||||||
| let previous: { x: number; y: number } | undefined; | ||||||||||||||||||||||||||||||||||
| await retry.waitForWithTimeout('webhook card to stop moving', 30000, async () => { | ||||||||||||||||||||||||||||||||||
| const { x, y } = await (await testSubjects.find('.webhook-card')).getPosition(); | ||||||||||||||||||||||||||||||||||
| const settled = x === previous?.x && y === previous?.y; | ||||||||||||||||||||||||||||||||||
| previous = { x, y }; | ||||||||||||||||||||||||||||||||||
| return settled; | ||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This suite inherits It may still help, but against a different race — React not having bound the handler yet, which is what
Suggestion moved to a correctly anchored comment below — this thread's range didn't cover the whole block. |
||||||||||||||||||||||||||||||||||
| await testSubjects.click('.webhook-card'); | ||||||||||||||||||||||||||||||||||
| await testSubjects.click('authSSL'); | ||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-anchoring the suggestion from the thread above so it covers the whole block (the other one stopped short of
Suggested change
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suite already has the
actionsservice —connectors/utils.tsin this directory uses it.