from pages.base_page import BasePage
from pages.locators import BasePageLocators
from pages.locators import BasketPageLocators
import time


class BasketPage(BasePage):
    def should_be_empty_basket(self):
        #time.sleep(3)
        assert self.is_not_element_present(*BasketPageLocators.ITEMS_TO_BUY_NOW), "There are items in the basket"

    def should_be_message_empty_basket(self):
        #time.sleep(3)
        assert self.is_element_present(*BasketPageLocators.MESSAGE_EMPTY_BASKET), "No message that basket is empty"


