Changeset 7556 for main


Ignore:
Timestamp:
2 Feb 2012, 08:47:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7539 r7556  
    10231023        self.browser.getControl(name="ac_number").value = self.existing_pwdnumber
    10241024        self.browser.getControl(name="reg_number").value = '223456'
    1025         self.browser.getControl("Show").click()
     1025        self.browser.getControl("Set").click()
    10261026        self.assertMatches('...No student found...',
    10271027                           self.browser.contents)
    10281028        self.browser.getControl(name="reg_number").value = '123456'
    10291029        self.browser.getControl(name="ac_number").value = '999999'
    1030         self.browser.getControl("Show").click()
     1030        self.browser.getControl("Set").click()
    10311031        self.assertMatches('...Access code is invalid...',
    10321032                           self.browser.contents)
    10331033        self.browser.getControl(name="ac_number").value = self.existing_pwdnumber
    1034         self.browser.getControl("Show").click()
     1034        self.browser.getControl("Set").click()
    10351035        self.assertMatches('...Password has been set. Your Student Id is...',
    10361036                           self.browser.contents)
    1037         self.browser.getControl("Show").click()
     1037        self.browser.getControl("Set").click()
    10381038        self.assertMatches(
    10391039            '...Password has already been set. Your Student Id is...',
     
    10451045        self.browser.getControl(name="ac_number").value = existing_pwdnumber
    10461046        self.browser.getControl(name="reg_number").value = '123456'
    1047         self.browser.getControl("Show").click()
     1047        self.browser.getControl("Set").click()
    10481048        self.assertMatches(
    10491049            '...You are using the wrong Access Code...',
Note: See TracChangeset for help on using the changeset viewer.