Skip to content

Commit

Permalink
start fleshing out page objects for dashboard calendar components.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Jun 26, 2024
1 parent d764418 commit e0354ac
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { create } from 'ember-cli-page-object';

const definition = {
scope: '[data-test-dashboard-calendar-filters]',
// @todo implement [ST 2024/06/24]
};

export default definition;
export const component = create(definition);
Original file line number Diff line number Diff line change
@@ -1,11 +1,46 @@
import { create } from 'ember-cli-page-object';
import { collection, create, fillable, property } from 'ember-cli-page-object';
import weeklyCalendar from './../weekly-calendar';
import dailyCalendar from './../daily-calendar';
import weekGlance from './../week-glance';
import monthlyCalendar from './../monthly-calendar';
import toggle from '../toggle-buttons';
import userContextFilter from './user-context-filter';
import calendarFilters from './calendar-filters';
import filterTags from './filter-tags';

const definition = {
scope: '[data-test-dashboard-calendar]',
controls: {
scope: '[data-test-dashboard-calendar-controls]',
mySchedule: {
scope: '[data-test-myschedule]',
toggle,
},
showFilters: {
scope: '[data-test-showfilters]',
toggle,
},
showCourseFilters: {
scope: '[data-test-showcoursefilters]',
toggle,
},
userContexts: {
scope: '[data-test-usercontexts]',
toggle: userContextFilter,
},
schoolPicker: {
scope: '[data-test-schoolpicker]',
select: {
scope: '[data-test-select-school]',
set: fillable(),
options: collection('option', {
isSelected: property('selected'),
}),
},
},
calendarFilters,
},
filterTags,
dailyCalendar,
weekGlance,
weeklyCalendar,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { create } from 'ember-cli-page-object';

const definition = {
scope: '[data-test-dashboard-filter-tags]',
// @todo implement [ST 2024/06/24]
};

export default definition;
export const component = create(definition);

0 comments on commit e0354ac

Please sign in to comment.