Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
chooseObject: fillable('[data-test-report-object]'),
objectCount: count('[data-test-report-object] option'),
chooseAcademicYear: fillable('[data-test-report-year-filter]'),
fillMeshSearch: fillable('[data-test-mesh-manager] [data-test-search-box] input'),
runMeshSearch: clickable('[data-test-mesh-manager] [data-test-search-box] .search-icon'),
meshSearchResults: collection('[data-test-search-results] li', {
name: text('[data-test-name]'),
pick: clickable()
}),
save: clickable('[data-test-report-save]'),
}
};
export default definition;
export const component = create(definition);
title: text('[data-test-title]'),
table: {
scope: 'table',
headings: collection('thead tr th'),
rows: collection('tbody tr', {
id: text('td', {at: 0}),
title: text('td', {at: 1}),
numSummative: text('td', {at: 2}),
numFormative: text('td', {at: 3}),
}),
footer: collection('tfoot tr td'),
},
};
export default definition;
export const component = create(definition);
import PageObject from 'ember-cli-page-object';
import { defaultsForCreate } from 'croodle/tests/pages/defaults';
import { hasFocus } from 'croodle/tests/pages/helpers';
const {
assign
} = Object;
const {
fillable,
visitable
} = PageObject;
export default PageObject.create(assign({}, defaultsForCreate, {
pollType: fillable('.poll-type select'),
pollTypeHasFocus: hasFocus('.poll-type select'),
visit: visitable('/create')
}));