)]}'
{"openstack_dashboard/test/integration_tests/regions/forms.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"09ec862d18bf2ada7ce3bb4de9f0bab0a8a77aac","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":"        self.wait_till_element_disappears("},{"line_number":260,"context_line":"            lambda: self.driver.find_element(*self._modal_locator))"},{"line_number":261,"context_line":"        self.wait_till_element_disappears("},{"line_number":262,"context_line":"            lambda: self.driver.find_element(*self._fade_locator))"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a122d0e_ba02d3b2","line":259,"updated":"2016-04-21 18:30:13.000000000","message":"In the previous code, we used to catch an exception if this call failed. Are there cases where we should still catch an exception and pass?","commit_id":"0e35b586cdd0dc3500d64fa1ea29bbb308511f17"},{"author":{"_account_id":20772,"name":"Sergei Chipiga","email":"schipiga@mirantis.com","username":"schipiga"},"change_message_id":"7c07da22e0a0b3ffd6697464efd2fd038e556629","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":"        self.wait_till_element_disappears("},{"line_number":260,"context_line":"            lambda: self.driver.find_element(*self._modal_locator))"},{"line_number":261,"context_line":"        self.wait_till_element_disappears("},{"line_number":262,"context_line":"            lambda: self.driver.find_element(*self._fade_locator))"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a122d0e_c419b57b","line":259,"in_reply_to":"1a122d0e_ba02d3b2","updated":"2016-04-21 19:44:23.000000000","message":"after code research, I found, it\u0027s not need to catch exception, because it happends inside `wait_till_element_disappear` https://review.openstack.org/gitweb?p\u003dopenstack/horizon.git;a\u003dblob;f\u003dopenstack_dashboard/test/integration_tests/basewebobject.py;h\u003d531633556c0e272cbe27009c53b86e9748f93152;hb\u003d0e35b586cdd0dc3500d64fa1ea29bbb308511f17#l147","commit_id":"0e35b586cdd0dc3500d64fa1ea29bbb308511f17"},{"author":{"_account_id":20772,"name":"Sergei Chipiga","email":"schipiga@mirantis.com","username":"schipiga"},"change_message_id":"db1309b6d3ef17cdfe8ef90cf93df2c07abe2b10","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":"        self.wait_till_element_disappears("},{"line_number":260,"context_line":"            lambda: self.driver.find_element(*self._modal_locator))"},{"line_number":261,"context_line":"        self.wait_till_element_disappears("},{"line_number":262,"context_line":"            lambda: self.driver.find_element(*self._fade_locator))"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a122d0e_4ea944df","line":259,"in_reply_to":"1a122d0e_ba02d3b2","updated":"2016-04-21 18:52:17.000000000","message":"hmm, you are right. I will fix that, thank you","commit_id":"0e35b586cdd0dc3500d64fa1ea29bbb308511f17"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"48a88ee718f90f023a8d04fa8fd008258e3fdb7c","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    @contextlib.contextmanager"},{"line_number":261,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":262,"context_line":"        \"\"\"Wait for opened form will be disappeared after interaction."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        Form may be opened at page as modal or no (just a part of page)."}],"source_content_type":"text/x-python","patch_set":13,"id":"1a122d0e_85daa949","line":261,"updated":"2016-04-26 11:13:57.000000000","message":"I do not like this solution much, since it looks way too complex. Instead it would be awesome if we could modify FormRegion class to wait for a specified set of fields to become visible before actually binding them.","commit_id":"94feb373970749028beded834fe2963ec844b073"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"556ab141189e414b48ab63cfdcb51307fa13552b","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    @contextlib.contextmanager"},{"line_number":261,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":262,"context_line":"        \"\"\"Wait for opened form will be disappeared after interaction."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        Form may be opened at page as modal or no (just a part of page)."}],"source_content_type":"text/x-python","patch_set":13,"id":"1a122d0e_11fa5743","line":261,"in_reply_to":"1a122d0e_3195d332","updated":"2016-04-26 13:51:39.000000000","message":"Let me be more specific.\n\nThere are 2 types of cases when we need to gracefully handle Cancel/Submit buttons.\n\nFirst type is when we submit/discard a modal and want to operate with some non-modal elements once modal/spinner/whatever completely disappears. Since every modal is accompanied with div.modal-backdrop element, we could safely detect the fact that modal disappeared by tracking that element.\n\nSecond type is transition between two modals, which happens on stacks test when Submit is clicked in first form and (after some transition period) second form appears. Detecting the form being showed up would address this scenario, so wouldn\u0027t need `wait_till_form_disappears` facility. Besides this, we wouldn\u0027t longer need `wait_till_spinner_disappears` in FormRegion.__init__, since test would wait for the form being appearing, not for spinner disappearance.\n\nDoes it make sense?","commit_id":"94feb373970749028beded834fe2963ec844b073"},{"author":{"_account_id":20772,"name":"Sergei Chipiga","email":"schipiga@mirantis.com","username":"schipiga"},"change_message_id":"dae8f093e47e477d9b577c6eab4d462be2ae1c3c","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        self.wait_till_spinner_disappears()"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    @contextlib.contextmanager"},{"line_number":261,"context_line":"    def wait_till_form_disappears(self):"},{"line_number":262,"context_line":"        \"\"\"Wait for opened form will be disappeared after interaction."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"        Form may be opened at page as modal or no (just a part of page)."}],"source_content_type":"text/x-python","patch_set":13,"id":"1a122d0e_3195d332","line":261,"in_reply_to":"1a122d0e_85daa949","updated":"2016-04-26 13:38:07.000000000","message":"I think your idea doesn\u0027t solve the problem. You suggest to wait until form will appear, don\u0027t you? Let consider next usecase:\nYou open a page and click a button to show modal form (create instance, flavor, etc.). After you click submit (or cancel), you wants to click some button (or another element) at page. But due to form doesn\u0027t disappear immediately after cancel() (or submit() especially), you will get exception, that element is overlapped with modal form (or no exception, depends on system performance, as result flaky test). So it would be cool to return from submit() and cancel() after modal form disappeared.\nAbout you suggestion to wait until form with fields appears, this waiting is provided already because of implicitly_wait(). But in case when need to click some element at page after submit() / cancel() modal form, implicitly_wait() isn\u0027t helpful, because element is already at page (no need to wait it), but just overlapped and not clickable.","commit_id":"94feb373970749028beded834fe2963ec844b073"}]}
