Skip to content

Commit

Permalink
wait for the render before setting form values
Browse files Browse the repository at this point in the history
  • Loading branch information
martenson committed Jun 14, 2023
1 parent 3c1579a commit d057da2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/galaxy/selenium/navigates_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,11 +1488,10 @@ def create_page(self, name=None, slug=None, screenshot_name=None):
self.components.pages.create.wait_for_and_click()
name = name or self._get_random_name(prefix="page")
slug = slug = self._get_random_name(prefix="pageslug")
self.sleep_for(self.wait_types.UX_RENDER)
self.tool_set_value("title", name)
self.tool_set_value("slug", slug)
self.screenshot_if(screenshot_name)
# Sometimes 'submit' button not yet hooked up?
self.sleep_for(self.wait_types.UX_RENDER)
self.components.pages.submit.wait_for_and_click()
return name

Expand Down

0 comments on commit d057da2

Please sign in to comment.