Unverified Commit 69b94db1 authored by Johannes Tomren Røsvik's avatar Johannes Tomren Røsvik
Browse files

Update test_offers.py

parent d81d639b
......@@ -7,7 +7,7 @@ import random
import string
from time import sleep
url = "http://tdt4237.herokuapp.com/"
url = "http://127.0.0.1:8000/"
url_login = url + "user/login/"
url_logout = url + "user/logout/"
url_new_project = url + "projects/new/"
......@@ -50,6 +50,8 @@ class AgreelanceSignUp(unittest.TestCase):
project = driver.find_element_by_xpath("//*[contains(text(), \"" + project_title + "\")]")
project.click()
sleep(1)
driver.find_element_by_xpath("/html/body/div/ul/li/button").click()
sleep(1)
......@@ -86,6 +88,7 @@ class AgreelanceSignUp(unittest.TestCase):
driver.find_element_by_xpath("/html/body/div/form/div[4]/div/p[3]/label/textarea").send_keys("TASK_DESCRIPTION")
driver.find_element_by_xpath("/html/body/div/form/div[5]/div[2]/button").click()
sleep(1)
def tearDown(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment