grr/server/grr_response_server/gui/selenium_tests/flow_management_test.py
def testCancelFlowWorksCorrectly(self):
    """Tests that cancelling flows works."""
    api_regression_test_lib.StartFlow(
        self.client_id, gui_test_lib.RecursiveTestFlow, token=self.token)

    # Open client and find the flow
    self.Open("/")

    self.Type("client_query", self.client_id)
    self.Click("client_query_submit")

    self.WaitUntilEqual(self.client_id, self.GetText, "css=span[type=subject]")
    self.Click("css=td:contains('0001')")
    self.Click("css=a[grrtarget='client.flows']")

    self.Click("css=td:contains('RecursiveTestFlow')")
    self.Click("css=button[name=cancel_flow]")

    # The window should be updated now
    self.WaitUntil(self.IsTextPresent, "Cancelled in GUI")
Tests that cancelling flows works.
Tests that cancelling flows works.
Tests that cancelling flows works .
def testCancelFlowWorksCorrectly(self):
    api_regression_test_lib.StartFlow(
        self.client_id, gui_test_lib.RecursiveTestFlow, token=self.token)
    self.Open("/")
    self.Type("client_query", self.client_id)
    self.Click("client_query_submit")
    self.WaitUntilEqual(self.client_id, self.GetText, "css=span[type=subject]")
    self.Click("css=td:contains('0001')")
    self.Click("css=a[grrtarget='client.flows']")
    self.Click("css=td:contains('RecursiveTestFlow')")
    self.Click("css=button[name=cancel_flow]")
    self.WaitUntil(self.IsTextPresent, "Cancelled in GUI")
def testCancelFlowWorksCorrectly ( self ) : api_regression_test_lib . StartFlow ( self . client_id , gui_test_lib . RecursiveTestFlow , token = self . token ) self . Open ( "/" ) self . Type ( "client_query" , self . client_id ) self . Click ( "client_query_submit" ) self . WaitUntilEqual ( self . client_id , self . GetText , "css=span[type=subject]" ) self . Click ( "css=td:contains('0001')" ) self . Click ( "css=a[grrtarget='client.flows']" ) self . Click ( "css=td:contains('RecursiveTestFlow')" ) self . Click ( "css=button[name=cancel_flow]" ) self . WaitUntil ( self . IsTextPresent , "Cancelled in GUI" )
Tests that cancelling flows works.
Tests that cancelling flows works .
"""Tests that cancelling flows works.""" # Open client and find the flow # The window should be updated now
self