'Tests that user settings UI is working.'

def testUserSettings(self):

    self.Open('/')
    self.WaitUntil(self.IsElementPresent, 'client_query')
    mode_selector = "css=.form-group:has(label:contains('Mode'))    select"
    self.Click('css=grr-user-settings-button')
    self.assertEqual('ADVANCED', self.GetSelectedLabel(mode_selector).strip())
    self.Select(mode_selector, 'BASIC    (default)')
    self.Click('css=button[name=Proceed]')
    self.Click('css=grr-user-settings-button')
    self.assertEqual('BASIC    (default)', self.GetSelectedLabel(mode_selector).strip())
