Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
checkbox: {
scope: '[data-test-select-row]',
isChecked: property('checked'),
async clickWith(options) {
await click(findElement(this), options);
},
},
checkboxContainer: {
scope: '[data-test-select-row-container]',
isHidden: hasClass('et-speech-only'),
},
toggleSelect: alias('checkbox.click'),
collapse: {
scope: '[data-test-collapse-row]',
isCollapsed: property('checked'),
},
toggleCollapse: alias('collapse.click'),
isSelected: hasClass('is-selected'),
/**
Helper function to click with options like the meta key and ctrl key set
@param {Object} options - click event options
*/
async clickWith(options) {
* Page object for table header.
*/
header: EmberTableHeaderPage,
/**
* Page object for table body.
*/
body: EmberTableBodyPage,
/**
* Page object for table footer.
*/
footer: EmberTableFooterPage,
rows: alias('body.rows'),
getCell: alias('body.getCell'),
headers: alias('header.headers'),
footers: alias('footer.footers'),
/**
* Returns the table width.
*/
get width() {
return findElement(this, 'table').offsetWidth;
},
/**
* Returns the table container width.
*/
get containerWidth() {
return findElement(this).offsetWidth;
/**
* Page object for table body.
*/
body: EmberTableBodyPage,
/**
* Page object for table footer.
*/
footer: EmberTableFooterPage,
rows: alias('body.rows'),
getCell: alias('body.getCell'),
headers: alias('header.headers'),
footers: alias('footer.footers'),
/**
* Returns the table width.
*/
get width() {
return findElement(this, 'table').offsetWidth;
},
/**
* Returns the table container width.
*/
get containerWidth() {
return findElement(this).offsetWidth;
},
/**
},
checkboxContainer: {
scope: '[data-test-select-row-container]',
isHidden: hasClass('et-speech-only'),
},
toggleSelect: alias('checkbox.click'),
collapse: {
scope: '[data-test-collapse-row]',
isCollapsed: property('checked'),
},
toggleCollapse: alias('collapse.click'),
isSelected: hasClass('is-selected'),
/**
Helper function to click with options like the meta key and ctrl key set
@param {Object} options - click event options
*/
async clickWith(options) {
await click(findElement(this), options);
},
doubleClick: triggerable('dblclick'),
}),
/**
/**
* Page object for table header.
*/
header: EmberTableHeaderPage,
/**
* Page object for table body.
*/
body: EmberTableBodyPage,
/**
* Page object for table footer.
*/
footer: EmberTableFooterPage,
rows: alias('body.rows'),
getCell: alias('body.getCell'),
headers: alias('header.headers'),
footers: alias('footer.footers'),
/**
* Returns the table width.
*/
get width() {
return findElement(this, 'table').offsetWidth;
},
/**
* Returns the table container width.
*/
get containerWidth() {
},
/**
Helper function to click with options like the meta key and ctrl key set
@param {Object} options - click event options
*/
async clickWith(options) {
await click(findElement(this), options);
},
isSortable: hasClass('is-sortable'),
sort: SortPage,
sortIndicator: alias('sort.indicator'),
sortToggle: alias('sort.toggle'),
resizeHandle: ResizePage,
});
export default {
scope: 'thead',
/**
* List of columns in the header.
*/
headers: collection('th', Header),
/**
Returns the number of rows in the footer.
*/
get rowCount() {
header: EmberTableHeaderPage,
/**
* Page object for table body.
*/
body: EmberTableBodyPage,
/**
* Page object for table footer.
*/
footer: EmberTableFooterPage,
rows: alias('body.rows'),
getCell: alias('body.getCell'),
headers: alias('header.headers'),
footers: alias('footer.footers'),
/**
* Returns the table width.
*/
get width() {
return findElement(this, 'table').offsetWidth;
},
/**
* Returns the table container width.
*/
get containerWidth() {
return findElement(this).offsetWidth;
},
await mouseUp(header, startX + deltaX, header.clientHeight / 2);
},
/**
Helper function to click with options like the meta key and ctrl key set
@param {Object} options - click event options
*/
async clickWith(options) {
await click(findElement(this), options);
},
isSortable: hasClass('is-sortable'),
sort: SortPage,
sortIndicator: alias('sort.indicator'),
sortToggle: alias('sort.toggle'),
resizeHandle: ResizePage,
});
export default {
scope: 'thead',
/**
* List of columns in the header.
*/
headers: collection('th', Header),
/**
Returns the number of rows in the footer.
*/