-
Notifications
You must be signed in to change notification settings - Fork 159
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
File list columns are now sortable #3078
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Now thinking, it won't be easy to have a sort field per table because the sorting is happening in the global state. Would require moving the global state's |
91ef3a9
to
fbda029
Compare
|
I've added clickable columns in more lists, and also the whole width is clickable. Also will need a way to detect those indicators from the test to find out whether to click once or twice depending on the desired sort order. |
|
|
Added ability to sort some columns in the file lists by clicking on them. The sort direction appears with an indicator.
fbda029
to
6a954e0
Compare
setSort: async function (column, isDesc = false) { | ||
const columnSelector = util.format(this.elements.filesTableHeaderColumn.selector, xpathHelper.buildXpathLiteral(column)) | ||
await this.useXpath() | ||
.waitForElementVisible(columnSelector) |
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.
From nightwatch docs:
click() will automatically wait for the element to be present (until the specified timeout).
Do we need to wait until the element is visible or is present enough?
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.
let's keep "visible" just to be on the safe side...
Description
Added ability to sort some columns in the file lists by clicking on
them. The sort direction appears with an indicator.
Related Issue
Fixes #1854
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: