1 tested
2 partially tested
3 not implemented yet
4 no rules (yet?)
5 no persistence (doesn't seem necessary as there shouldn't be duplication?)


On Tue, Feb 25, 2014 at 9:03 AM, alxdarksage <notifications@github.com>wrote:

> In
> src/test/java/org/sagebionetworks/bridge/webapp/integration/journal/ITMedicationsTracker.java:
>
> >  	@Test
> > -	public void endDateAfterStartDate() {
> > -		medPage.enterMedication("Prinivil", "10mg", "1x/day", END_DATE, START_DATE);
> > -		medPage.clickSaveButton();
> > -
> > -		medPage = driver.getJournalPage().getMedicationPage();
> > -		medPage.assertColumnValue("#finishedTable tbody.dataRows tr:first-child td:nth-child(5) span", START_DATE);
> > -		medPage.assertColumnValue("#finishedTable tbody.dataRows tr:first-child td:nth-child(6) span", START_DATE);
> > +	public void cannotCreateNewMedicationWithoutName() throws Exception {
> > +		medPage.enterNewMedication("", "10mg", START_DATE);
> > +		medPage.clickSubmitNewMedButton();
> > +		medPage.assertEmptyMedWarning();
> >  	}
> >  }
>
> I don't remember all the functionality you showed yesterday, but I think
> there were other things worth testing:
> 1. each medication had two buttons for two final states, besides submit is
> the other path tested?
> 2. the medications were being grouped under the history, should that be
> tested?
> 3. test you can delete individual medication rows
> 4. are there any rules about dates, like starting after ending, that could
> be tested?
> 5. If there's persistence while filling out a medication, is that tested?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Sage-Bionetworks/Bridge/pull/94/files#r10044548>
> .
>