Yes. We just want to make sure it is the 'unauthorized access' page. So,
just check for a phrase that appears only in the unauthorized page.


On Thu, May 15, 2014 at 4:12 PM, Nhan Bui <notifications@github.com> wrote:

> In
> src/test/java/teammates/test/cases/ui/browsertests/InstructorCoursesPageUiTest.java:
>
> >              ______TS("unarchive action failed");
> >              // only possible if someone else delete the course while the user is viewing the page
> > -            // TODO: figure out how to detect such an extreme case
> > +
> > +            coursesPage = loginAdminToPage(browser, coursesUrl, InstructorCoursesPage.class);
> > +            coursesPage.archiveCourse(courseId);
> > +
> > +            BackDoor.deleteCourse(courseId);
> > +
> > +            coursesPage.unarchiveCourse(courseId);
> > +            coursesPage.verifyHtml("/instructorCourseArchiveFailed.html");
>
> Do you mean to use 'verifyContains' and just check for the message in the
> HTML file ?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/TEAMMATES/repo/pull/1913/files#r12678060>
> .
>