2017-12-03 15:02:14 +00:00
|
|
|
import pytest
|
|
|
|
from os import environ
|
|
|
|
from pages.openbounty.landing import LandingPage
|
2018-01-24 10:58:58 +00:00
|
|
|
from pages.openbounty.bounties import BountiesPage
|
2018-01-26 18:12:58 +00:00
|
|
|
from pages.thirdparty.github import GithubPage
|
2017-12-03 15:02:14 +00:00
|
|
|
from tests.basetestcase import BaseTestCase
|
2018-01-24 10:58:58 +00:00
|
|
|
from tests import test_data
|
2017-12-03 15:02:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.sanity
|
|
|
|
class TestLogin(BaseTestCase):
|
|
|
|
|
|
|
|
def test_deploy_new_contract(self):
|
2018-01-24 10:58:58 +00:00
|
|
|
|
|
|
|
# Waiting for deployed contract; test_data.issue created here
|
2018-02-05 14:14:28 +00:00
|
|
|
self.github_org.create_new_bounty()
|
|
|
|
self.github_org.get_deployed_contract()
|
2018-01-24 10:58:58 +00:00
|
|
|
|
|
|
|
# Navigate and check top bounty in "Open bounties"
|
2018-02-05 14:14:28 +00:00
|
|
|
bounties_page = BountiesPage(self.driver_org)
|
2018-01-24 10:58:58 +00:00
|
|
|
bounties_page.get_bounties_page()
|
|
|
|
titles = bounties_page.bounty_titles.find_elements()
|
|
|
|
assert titles[0].text == test_data.issue['title']
|
|
|
|
|
|
|
|
|
2018-01-26 18:12:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-01-24 10:58:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|