Fakultas Ilmu Komputer UI

Commit 1f2571df authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

[RED] create functional test to check my name in header and footer

parent 4d833104
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import time
import unittest
import environ
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from unittest import skip
from .base import FunctionalTest
class HeaderFooterTest(FunctionalTest):
def test_header_and_footer_has_my_name(self):
self.browser.get(self.live_server_url)
header_text = self.browser.find_element_by_tag_name('header').text
self.assertIn('Muhammad Ilham Peruzzi', header_text)
footer_text = self.browser.find_element_by_tag_name('footer').text
self.assertIn('Muhammad Ilham Peruzzi', footer_text)
\ No newline at end of file
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