def METHOD_NAME(self):
    # Start with a user saved search
    self.create_saved_search(
        organization=self.org,
        name="My Saved Search",
        query="browser.name:Firefox",
        visibility=Visibility.OWNER,
        owner=self.user,
    )
    self.page.visit_issue_list(self.org.slug)
    self.browser.click_when_visible('button[aria-label="Custom Search"]')
    self.browser.move_to('button[aria-label="My Saved Search"]')
    self.browser.wait_until_clickable('button[aria-label="Saved search options"]')
    self.browser.click('button[aria-label="Saved search options"]')
    self.browser.click('[data-test-id="delete"]')
    self.browser.wait_until('[role="dialog"]')
    self.browser.click('[role="dialog"] button[aria-label="Confirm"]')
    # Search is immediately removed from the UI
    assert not self.browser.element_exists('button[aria-label="My Saved Search"]')
    # The saved search should be removed from the db
    # Since this is an optimistic update there is nothing to wait for in the UI
    wait = WebDriverWait(self.browser.driver, 10)
    wait.until(lambda _: not SavedSearch.objects.filter(name="My Saved Search").exists())