-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[home] Include ability to publish kibana saved objects from add data tutorial #19559
Changes from 1 commit
b0f6537
a63831a
6decd9d
6eaeb6a
c3cd774
23928e0
bc739f5
822627c
7f9c845
c73f6e9
63db6f9
fc2064d
560b4a9
9ff43d3
e5000e3
7bc56e1
232a760
12e29b3
ef0be0e
6175825
cb3f8de
8ea193d
e037c91
e0cb81b
66faeb3
a4ad403
c0e25ad
7cd8938
7e108c0
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 |
---|---|---|
|
@@ -17,9 +17,12 @@ | |
* under the License. | ||
*/ | ||
|
||
import expect from 'expect.js'; | ||
|
||
export function HomePageProvider({ getService }) { | ||
const testSubjects = getService('testSubjects'); | ||
const remote = getService('remote'); | ||
const retry = getService('retry'); | ||
|
||
class HomePage { | ||
|
||
|
@@ -63,6 +66,17 @@ export function HomePageProvider({ getService }) { | |
await testSubjects.click(`launchSampleDataSet${id}`); | ||
} | ||
|
||
async loadSavedObjects() { | ||
// Button at bottom of page, move into view before clicking | ||
const loadBtn = await testSubjects.find('loadSavedObjects'); | ||
await remote.moveMouseTo(loadBtn); | ||
await testSubjects.click('loadSavedObjects'); | ||
await retry.try(async () => { | ||
const successMsgExists = await await testSubjects.exists('loadSavedObjects_success'); | ||
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. Two
Another option is to just do That should have an internal retry since it assumes it's supposed to exist:
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. nm, I see you already got rid of the second await in a follow up commit. cc @spalger - I think this is a deficiency to having non-squashed commits. How do you keep up with all the changes from commit to commit to commit? For instance I reviewed before this commit. I wanted to see the functional tests added so I went to that commit and added the comment. But the next commit fixed it. So what would your flow be? Start at commit x and review each one, x -> x + 1 -> x + 2 ... ? What if an x + n commit fixed something you commented on prior? Just go back and delete it? Or do you review all commits from one commit onward but not the pull merges? Doesn't seem possible to do this in the git UI. It's either review all changes, or review commit by commit. |
||
expect(successMsgExists).to.be(true); | ||
}); | ||
} | ||
|
||
} | ||
|
||
return new HomePage(); | ||
|
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.
Have you tried just doing
testSubjects.click
? The move logic is internal: