Commit ae0c70ac authored by Dannon Baker's avatar Dannon Baker
Browse files

Update selectors for Edit, Details, and Visualize tabs to use more descriptive titles

parent 3e9d1a9e
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -1995,7 +1995,9 @@ class NavigatesGalaxy(HasDriver):

        # Find and click the Edit tab - using a more reliable selector
        # BVue generates '.nav-item a' elements with a title attribute matching the tab title
        edit_tab_button = self.wait_for_selector_clickable(".nav-item[title='Edit'] > a.nav-link")
        edit_tab_button = self.wait_for_selector_clickable(
            ".nav-item[title='Edit dataset attributes and metadata'] > a.nav-link"
        )
        edit_tab_button.click()

        # Wait for the edit attributes panel to be visible
@@ -2010,14 +2012,18 @@ class NavigatesGalaxy(HasDriver):
    def show_dataset_details(self, hid):
        self.display_dataset(hid)
        # Find and click the Details tab
        details_tab_button = self.wait_for_selector_clickable(".nav-item[title='Details'] > a.nav-link")
        details_tab_button = self.wait_for_selector_clickable(
            ".nav-item[title='View detailed information about this dataset'] > a.nav-link"
        )
        details_tab_button.click()
        self.components.dataset_details._.wait_for_visible()

    def show_dataset_visualizations(self, hid):
        self.display_dataset(hid)
        # Find and click the Visualize tab
        visualize_tab_button = self.wait_for_selector_clickable(".nav-item[title='Visualize'] > a.nav-link")
        visualize_tab_button = self.wait_for_selector_clickable(
            ".nav-item[title='Explore available visualizations for this dataset'] > a.nav-link"
        )
        visualize_tab_button.click()

    def history_panel_item_view_dataset_details(self, hid):