dtzinov/ggrc-test — pull request #10 by SilasX (2013-12-13 18:51:37+00:00)
Title: Fix for Map Widget case of Person/Program

We ran into failures for TestProgramMapWidget because the Persons list under programs has a different DOM structure now; it also must be checked by looking at email rather than object ID. This PR has the appropriate functions make a special exception for the case of adding a Person to a Program: for that case they collect the email rather than the object ID, and use the new selector when checking.

Note: A complete test requires checking that the Person in the Program list has "Mapped" as the relationship rather than something like "Owner". I ran into a strange bug trying to test for this because the xpath selector could not see the text "Mapping" inside the DOM unless it was directly copy/pasted from the DOM. Should be re-instated when this is better understood.