returns__('GroupRoadmap|Epics let you manage your portfolio of projects more efficiently and with less effort');
if(this.hasFiltersApplied){
returns__('GroupRoadmap|Sorry, no epics matched your search');
}
returns__('GroupRoadmap|The roadmap shows the progress of your epics along a timeline');
},
subMessage(){
if(this.hasFiltersApplied){
returnsprintf(s__('GroupRoadmap|To widen your search, change or remove filters. Only epics in the past 3 months and the next 3 months are shown – from %{startDate} to %{endDate}.'),{
startDate:this.timeframeRange.startDate,
endDate:this.timeframeRange.endDate,
});
}
returnsprintf(s__('GroupRoadmap|To view the roadmap, add a planned start or finish date to one of your epics in this group or its subgroups. Only epics in the past 3 months and the next 3 months are shown – from %{startDate} to %{endDate}.'),{
expect(vm.message).toBe('Epics let you manage your portfolio of projects more efficiently and with less effort');
it('returns default empty state message',()=>{
expect(vm.message).toBe('The roadmap shows the progress of your epics along a timeline');
});
it('returns empty state message when `hasFiltersApplied` prop is true',(done)=>{
vm.hasFiltersApplied=true;
Vue.nextTick()
.then(()=>{
expect(vm.message).toBe('Sorry, no epics matched your search');
})
.then(done)
.catch(done.fail);
});
});
describe('subMessage',()=>{
it('returns correct empty state sub-message',()=>{
it('returns default empty state sub-message',()=>{
expect(vm.subMessage).toBe('To view the roadmap, add a planned start or finish date to one of your epics in this group or its subgroups. Only epics in the past 3 months and the next 3 months are shown – from Nov 1, 2017 to Apr 30, 2018.');
});
it('returns empty state sub-message when `hasFiltersApplied` prop is true',done=>{
vm.hasFiltersApplied=true;
Vue.nextTick()
.then(()=>{
expect(vm.subMessage).toBe('To widen your search, change or remove filters. Only epics in the past 3 months and the next 3 months are shown – from Nov 1, 2017 to Apr 30, 2018.');