-
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
update spy table headers when columns update #13130
Conversation
.setFindTimeout(defaultFindTimeout * 2) | ||
.findByCssSelector('table.table.table-condensed thead') | ||
.getVisibleText(); | ||
} |
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.
can you make this:
async getDataTableHeaders() {
const dataTableHeader = await retry.try(async () => await find.byCssSelector('table.table.table-condensed thead'));
return await dataTableHeader.getVisibleText();
}
I'm in the process of converting most of the functions in this file over to that style.
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.
Not sure if I can. Looks like find
is not defined
tryForTime failure: find is not defined
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.
Add const find = getService('find');
at the top of the page
hmmm, might be a flaky test:
Not sure why the values differ, rather than a stale element error, in this failure though. lets see if it passes the second time. jenkins, test this |
Passed a second time. Lets see what happens on another round |
Must be a flaky test, I just had the same failure in #13034. Will see what I can do. |
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!
@@ -8,7 +8,7 @@ | |||
<thead> | |||
<tr> | |||
<th | |||
ng-repeat="col in ::columns" | |||
ng-repeat="col in columns" |
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.
dayum....
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.
yup!
merge conflict was pretty easy, some methods got interleaved. |
@@ -776,6 +777,11 @@ export function VisualizePageProvider({ getService, getPageObjects }) { | |||
.getAttribute('height'); | |||
} | |||
|
|||
async getDataTableHeaders() { | |||
const dataTableHeader = await retry.try(async () => await find.byCssSelector('table.table.table-condensed thead')); | |||
return await dataTableHeader.getVisibleText(); |
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.
Can we please not add more CSS selectors to the functional tests and instead add data-test-subj
attributes to selection targets and use the testSubjects
service?
01df37f
to
ddc7519
Compare
jenkins, test this |
* update paginated table headers with columns update * remove unneeded sleep * update getDataTableHeaders to preffered format * use data-test-subj attribute for functional tests instead of CSS selectors
* update paginated table headers with columns update * remove unneeded sleep * update getDataTableHeaders to preffered format * use data-test-subj attribute for functional tests instead of CSS selectors
fixes #7211
backported to 6.x: #13224
backported to 6.0: #13225
Release Note:
Ensure spy panel table headers update when new aggregation data is fetched