Modified test case to work around bug preventing popup to close in IE (#14086)

Change-Id: Icb47d8a0c737e27a3d88078b4162c633ba08739c