-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7786 from stopfstedt/user-events-roles-filter
Adds user context filter to dashboard calendar
- Loading branch information
Showing
32 changed files
with
1,218 additions
and
617 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
688 changes: 385 additions & 303 deletions
688
packages/frontend/tests/acceptance/dashboard/calendar-test.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...mon/addon-test-support/ilios-common/page-objects/components/dashboard/calendar-filters.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { collection, create, text } from 'ember-cli-page-object'; | ||
import c from './filter-checkbox'; | ||
import cohortsFilter from './cohort-calendar-filter'; | ||
import coursesFilter from './courses-calendar-filter'; | ||
import selectedVocabulary from './selected-vocabulary'; | ||
|
||
const definition = { | ||
scope: '[data-test-dashboard-calendar-filters]', | ||
coursesFilter, | ||
sessionTypesFilter: { | ||
scope: '[data-test-session-type-filter]', | ||
title: text('h5'), | ||
sessionTypes: collection('li', c), | ||
}, | ||
vocabularyFilter: { | ||
scope: '[data-test-vocabulary-filter]', | ||
title: text('h5'), | ||
sessionTypes: collection('li', c), | ||
vocabularies: collection('[data-test-dashboard-selected-vocabulary]', selectedVocabulary), | ||
}, | ||
courseLevelsFilter: { | ||
scope: '[data-test-course-level-filter]', | ||
title: text('h5'), | ||
courseLevels: collection('li', c), | ||
}, | ||
cohortsFilter, | ||
}; | ||
|
||
export default definition; | ||
export const component = create(definition); |
44 changes: 35 additions & 9 deletions
44
...lios-common/addon-test-support/ilios-common/page-objects/components/dashboard/calendar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...s-common/addon-test-support/ilios-common/page-objects/components/dashboard/filter-tags.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { collection, create } from 'ember-cli-page-object'; | ||
|
||
const definition = { | ||
scope: '[data-test-dashboard-filter-tags]', | ||
tags: collection('[data-test-filter-tag]'), | ||
clearAll: { | ||
scope: '[data-test-clear-filters]', | ||
}, | ||
}; | ||
|
||
export default definition; | ||
export const component = create(definition); |
32 changes: 32 additions & 0 deletions
32
.../addon-test-support/ilios-common/page-objects/components/dashboard/user-context-filter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { attribute, clickable, create, hasClass, property, text } from 'ember-cli-page-object'; | ||
|
||
const definition = { | ||
scope: '[data-test-dashboard-user-context-filter]', | ||
instructing: { | ||
isChecked: property('checked', '[data-test-instructing-input]'), | ||
label: text('[data-test-instructing-label]'), | ||
toggle: clickable('[data-test-instructing-label]'), | ||
isActive: hasClass('active', '[data-test-instructing-label]'), | ||
ariaDescription: attribute('aria-description', '[data-test-instructing-label]'), | ||
title: attribute('title', '[data-test-instructing-label]'), | ||
}, | ||
learning: { | ||
isChecked: property('checked', '[data-test-learning-input]'), | ||
label: text('[data-test-learning-label]'), | ||
toggle: clickable('[data-test-learning-label]'), | ||
isActive: hasClass('active', '[data-test-learning-label]'), | ||
ariaDescription: attribute('aria-description', '[data-test-learning-label]'), | ||
title: attribute('title', '[data-test-learning-label]'), | ||
}, | ||
admin: { | ||
isChecked: property('checked', '[data-test-admin-input]'), | ||
label: text('[data-test-admin-label]'), | ||
toggle: clickable('[data-test-admin-label]'), | ||
isActive: hasClass('active', '[data-test-admin-label]'), | ||
ariaDescription: attribute('aria-description', '[data-test-admin-label]'), | ||
title: attribute('title', '[data-test-admin-label]'), | ||
}, | ||
}; | ||
|
||
export default definition; | ||
export const component = create(definition); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.