from marionette_driver import Wait, expected
from helpers import go_home

timeout = 20


def test_view_briefs(client):
    go_home(client)
    link = client.find_element('id', 'opportunities__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.elements_present('class name', 'brief-result'))


def test_view_catalogue(client):
    go_home(client)
    link = client.find_element('id', 'catalogue__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.elements_present('id', 'react-bundle-search'))


def test_register_buyer(client):
    go_home(client)
    link = client.find_element('id', 'buyer__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.element_present('id', 'react-bundle-signup'))

from marionette_driver import Wait, expected
from helpers import go_home

timeout = 20


def test_view_briefs(client):
    go_home(client)
    link = client.find_element('id', 'opportunities__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.elements_present('class name', 'brief-result'))


def test_view_catalogue(client):
    go_home(client)
    link = client.find_element('id', 'catalogue__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.elements_present('id', 'react-bundle-search'))


def test_register_buyer(client):
    go_home(client)
    link = client.find_element('id', 'buyer__call-to-action')
    link.click()
    Wait(client, timeout=timeout).until(expected.element_present('id', 'signup'))

Update test_home_page.py