Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Build acceptance test for appointments.missed #691

Closed
billybonks opened this issue Oct 2, 2016 · 6 comments
Closed

Build acceptance test for appointments.missed #691

billybonks opened this issue Oct 2, 2016 · 6 comments
Labels
help wanted indicates that an issue is open for contributions

Comments

@billybonks
Copy link
Contributor

In order to effectively use the no missing translations test, we need to make sure that every page is visited during acceptance tests.

This issue tracks the missing appointments.missed acceptance test

for ember new commers the value some.route is the route that's missing you can find them under router.js

@migbar
Copy link

migbar commented Oct 7, 2016

@billybonks, I was trying to pick up these missing acceptance tests issues, but then saw that some or most do in fact exist (i.e., https://github.com/HospitalRun/hospitalrun-frontend/blob/master/tests/acceptance/appointments-test.js#L27 )

So I am pretty sure I am missing something.

@tangollama tangollama added the help wanted indicates that an issue is open for contributions label Mar 14, 2017
@emadehsan
Copy link
Contributor

@jkleinsc
Copy link
Member

@migbar and @emadehsan you are correct. I will close this issue.

@ghost
Copy link

ghost commented Mar 31, 2017

@jkleinsc
The test implemented there never appears to visit /appointments/missed, instead goes to /appointments. The real application visits /appointments/missed. I think the test passed only because the appointment happens to be inside the date interval that is the sole filter criteria in /appointments.

Is that intended? I looked into this a couple of days ago and made it go to /appointments/missed, but missed appointments wouldn't show. I didn't get the chance to debug it.

@jkleinsc
Copy link
Member

jkleinsc commented Apr 5, 2017

@BogdanAlexandru I "missed" that 😄 ! I'll reopen the issue. I just took a quick look and I think the problem is that the missed appointments only shows this weeks missed appointments, so if the appointment wasn't for this week, it will not show up. I am going to add another issue to add a date filter for missed appointments.

@jkleinsc
Copy link
Member

jkleinsc commented Apr 5, 2017

@BogdanAlexandru I just realized that the missed appointments functionality can be entirely done via the appointments search screen. I would change the test to use that screen (eg appointments/search?startDate=1491192000000&status=Missed) instead of the appointments/missed URL. I don't think we need a separate menu option for appointments/missed and am going to log an issue to remove that menu option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted indicates that an issue is open for contributions
Projects
None yet
Development

No branches or pull requests

5 participants