---
Refactored by renaming all names/references of rezept to prescription. See commit Refactoring rezept->prescription.
Some interactions specs failed, but after adding first a test whether an element exists they suddenly pass. (aka bugs in the tests made me loose an hour). Pushed commit Avoid error when running watir-tests
Also when running two watir tests in parallel it looks to me that searching for the interaction always blocks also the other thread. Probably searching should be delegated to a separate DRB thread. But here I must investigate closer to get definitive results.
The last point took much more time and I did not find a easier way than to generate the components, css_map and colspan_maps dynamically in the init method. Pushed commit Fix visual appearance of prescription But things look nice now:
Pushed Added watir test for problem that no drug can be added after a delete-all
Zeno wants to make everything aligned. I think our style sheet do not map correctly our useage. I am removing all 'list' classes from the PrescriptionForm (in src/view/drugs/prescription.rb as it is not a list item.
Discovered how easy it is to manipulate the CSS-classes on the fly with the Chromium developers tool. Maybe I should sit once together with Zeno in the same room. Edit the layout together till everything looks as fine it should, then saving the resulting HTML and adapting the source code later.
With commit Finetuning prescription layout. Nicer drugeverything is neatly aligned to the left. I also added some non-breaking space before and after the drug info. Hope that Zeno will be satisfied.
There were no empty lines in the prescription. Fixed with Adding forgotton space in prescription
Another problem is that after entering a wrong ZSR-ID the form is always reloaded. This is fixed locally. Problem was a trailing '/' at the end which led to continually refreshing the same URL. But I still have to fix the problem that after deleting all medicaments I cannot add a new one. It looks like that in this case the URL is not correctly assembled, neither.