def METHOD_NAME(self):
    """ Delete the layer """
    self.get(self.url)
    # Wait for the tables to load to avoid a race condition where the
    # toaster tables have made an async request. If the layer is deleted
    # before the request finishes it will cause an exception and fail this
    # test.
    wait = WebDriverWait(self.driver, 30)
    wait.until(EC.text_to_be_present_in_element(
        (By.CLASS_NAME,
         "table-count-recipestable"), "0"))
    wait.until(EC.text_to_be_present_in_element(
        (By.CLASS_NAME,
         "table-count-machinestable"), "0"))
    self.click('a[data-target="#delete-layer-modal"]')
    self.wait_until_visible("#delete-layer-modal")
    self.click("#layer-delete-confirmed")
    notification = self.wait_until_visible("#change-notification-msg")
    expected_text = "You have deleted 1 layer from your project: %s" % \
        self.imported_layer_version.layer.name
    self.assertTrue(expected_text in notification.text,
                    "Expected notification text \"%s\" not found instead"
                    "it was \"%s\"" %
                    (expected_text, notification.text))