rapidftr/RapidFTR — pull request #695 by RaoufAghrout (2014-08-13 11:10:47+00:00)
Title: @robmiles @raoufaghrout rapidftr/tracker#136 Fixed functional test as th...

While working on story #136 we noticed that the functional test for deleting a field was not working as intended. The functional test ran and passed because it was checking "characteristic" exists on the page outside of HTML tags, where "Characteristic" (difference: upper case c) did still exist outside of HTML tags. The issue is that after delete is clicked the browser prompt to confirm the delete wasn't being clicked and hence characteristic field on the page still existed. So the test as it was should have been failing.

The test has been changed to check the field has been removed using the id of that field. Additionally the test now uses javascript as it will need to confirm in the browser prompt if the delete should occur.

We weren't sure whether to add this as a bug or fix it as part of the existing story, if possible please provide guidance on how to proceed and some feedback. Hope this helps, please feel free to ask any questions or clarifications.

Thanks!