ui: simplify helper copy and center page loading feedback
This commit is contained in:
@@ -110,8 +110,10 @@ class WorkbenchBrowserTests(unittest.TestCase):
|
||||
def go(self, key, page=None):
|
||||
page=page or self.page
|
||||
page.locator(f'.page-tab[data-page="{key}"]').click()
|
||||
page.wait_for_selector(f'.page-panel[data-page="{key}"]:not([hidden]) .page-loading[data-loading="false"]')
|
||||
return page.locator(f'.page-panel[data-page="{key}"]:not([hidden])')
|
||||
page.wait_for_selector(f'.page-panel[data-page="{key}"]:not([hidden]) .page-loading[data-loading="false"]', state="attached")
|
||||
panel = page.locator(f'.page-panel[data-page="{key}"]:not([hidden])')
|
||||
expect(panel).to_have_attribute("aria-busy", "false")
|
||||
return panel
|
||||
|
||||
@staticmethod
|
||||
def field(root,path):
|
||||
|
||||
Reference in New Issue
Block a user