-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Use concrete assertions, not exists #23271
Use concrete assertions, not exists #23271
Conversation
💔 Build Failed |
Looks like a flaky failure: jenkins, test this |
💚 Build Succeeded |
retest |
💚 Build Succeeded |
Retest
…On Tue, Sep 18, 2018, 4:43 PM Elastic Machine ***@***.***> wrote:
💚 Build Succeeded
- continuous-integration/kibana-ci/pull-request
<https://kibana-ci.elastic.co/job/elastic-kibana-pull-request/2871/>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23271 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/APy9kwi8Mc-32cONvj791n1JWRii70J-ks5ucVr_gaJpZM4WuCPr>
.
|
retest |
💚 Build Succeeded |
46010f8
to
aad4625
Compare
💔 Build Failed |
Of course. Failure: jenkins, test this |
I keep having failures on test What I see when the test is running is that the confirm save dialog is open with a message that a dashboard with the name already exists. The test is supposed to click the Confirm Save button, and it does, but nothing happens. I added this debug logging in dashboard_page.js;
And I see some debug logs like; but the one right at this point of failure is; So I think that clickSave method needs to check that there isn't any This seems to fix it;
A more elegant solution might be to add a data-test-subj to that spinner div and wait for that to be gone? But that might require deciding on a timeout. There's no timeout on getting the innerHTML of the button that we already found. Just a timeout on the try.waitFor. We shouldn't need the outer retry in clickSave if we wait for the spinner to be gone. It's not solving the current problem. Or, maybe the button should be disabled and the testSubjects.click would check that and wait for it to be enabled. |
💚 Build Succeeded |
@LeeDr - can you confirm whether the test failures only show up for you with this PR, and not with master as well? If it's directly related to this PR, then that's one thing, but if it exists in master right now, I'd prefer to get this in and focus on the other issue separately.
Yes, I know, this is the issue. This was fixed in another PR that implemented a I commented here: #22409 (comment) about the issue, thought I commented in slack too but maybe that message got lost. We could perhaps file a more targeted issue for it. I was hoping just to get a fix in for it but ended up taking much longer than expected, hence the stalled PR here: #22901 |
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.
LGTM - the other issue can be fixed in another PR. I ran this locally, reviewed code, and checked Jenkins results.
A few places to switch over from
exists
toexistsOrFail
andmissingOrFail
.