Fakultas Ilmu Komputer UI

Commit 1343e3fe authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Mengubah functional_test

parent 240f3ca7
Pipeline #21487 failed with stage
in 1 minute and 4 seconds
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common.keys import Keys
......@@ -41,6 +40,12 @@ class NewVisitorTest(unittest.TestCase):
rows = table.find_elements_by_tag_name('tr')
self.assertIn(row_text, [row.text for row in rows])
def test_assert_name(self):
introduction = self.browser.find_element_by_id("intro")
self.assertIn('Izzatul', introduction.text)
def test_can_start_a_list_and_retrieve_it_later(self):
<title>To-Do lists {{ name }}</title>
<h1>Hello, this is {{ name }}.</h1>
<h1 id="intro">Hello, this is {{ name }}.</h1>
<h1>Your To-Do list</h1>
<form method="POST">
<input name="item_text" id="id_new_item" placeholder="Enter a to-do item" />
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