-
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
Mgmt saved object test #22564
Mgmt saved object test #22564
Conversation
jenkins, test this |
💚 Build Succeeded |
jenkins, test this |
💚 Build Succeeded |
jenkins, test this |
💚 Build Succeeded |
@LeeDr can you please tae a look ? |
@Rasroh Are you sure you added your files? I see |
@@ -53,7 +53,7 @@ export default function ({ getService, getPageObjects }) { | |||
await PageObjects.settings.clickKibanaSavedObjects(); | |||
await PageObjects.settings.importFile(path.join(__dirname, 'exports', '_import_objects-conflicts.json')); | |||
await PageObjects.header.waitUntilLoadingHasFinished(); | |||
await PageObjects.settings.setImportIndexFieldOption(2); | |||
await PageObjects.settings.setImportIndexFieldOption('d1e4c910-a2e6-11e7-bb30-233be9be6a15', 2); | |||
await PageObjects.settings.clickConfirmChanges(); |
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.
I don't understand why we're still using an integer index here "2"? I thought a data-test-subj was added so we could select them by name?
await find.clickByCssSelector( | ||
`select[data-test-subj="managementChangeIndexSelection"] > option:nth-child(${child})` | ||
`select[data-test-subj="managementChangeIndexSelection-${id}"] > option:nth-child(${child})` | ||
); |
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.
Related to the other comment about the integer index. Hopefully we can use the name instead.
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.
here , I have parametrized the id - when I run the test- setImportIndexFieldOption
takes 2 parameters -> (id, child)` - id is the name of the indexPattern
...bana/public/management/sections/objects/components/objects_table/components/flyout/flyout.js
Outdated
Show resolved
Hide resolved
Here's a screenshot as I inspected elements in that selection list. The only selection I have is the one index pattern I created |
…ration of review comments
…cih loads logstash indexpattern
incorporated all the review changes and testing it in jenkins. |
💔 Build Failed |
💔 Build Failed |
jenkins test this |
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.
Had a question about some deletions.
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 assuming tests pass.
jenkins, test this |
💔 Build Failed |
💚 Build Succeeded |
This reverts commit a4c3bc2.
💔 Build Failed |
💚 Build Succeeded |
Test to check the import of the saved object works.
Tests #22238 - but the json is a subset.