<filename>tests/ui/test_install.py
import pytest


from pages.desktop.details import Details


@pytest.mark.nondestructive
def test_addon_install(
        base_url, selenium, firefox, firefox_notifications):
    """Test that navigates to an addon and installs it."""
    selenium.get('{}/firefox/addon/ui-test-install'.format(base_url))
    addon = Details(selenium, base_url)
    assert 'Ui-Addon-Install' in addon.description_header.name
    addon.description_header.install_button.click()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallBlocked).allow()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallConfirmation).install()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallComplete).close()

<filename>tests/ui/test_install.py
import pytest


from pages.desktop.details import Details


@pytest.mark.nondestructive
def test_addon_install(
        base_url, selenium, firefox, firefox_notifications):
    """Test that navigates to an addon and installs it."""
    selenium.get('{}/firefox/addon/ui-test-install'.format(base_url))
    addon = Details(selenium, base_url)
    assert 'Ui-Addon-Install' in addon.description_header.name
    addon.description_header.install_button.click()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallBlocked).allow()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallConfirmation).install()
    firefox.browser.wait_for_notification(
        firefox_notifications.AddOnInstallComplete).close()

Test that navigates to an addon and installs it.