Fakultas Ilmu Komputer UI

Commit 4dfa0ba5 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

[RED] add functional test to delete todo feature

parent 4fde78e9
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 DeleteTodoTest(FunctionalTest):
def test_can_delete(self):
inputbox = self.browser.find_element_by_id('id_new_item')
'Enter a to-do item'
inputbox.send_keys('Buy peacock feathers')
button = self.browser.find_elements_by_class_name('to-do-list-delete-button')
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