Example #1
0
 def test_left_dropdown_links(self, mozwebqa):
     sale_page = SalePage(mozwebqa)
     response = requests.get(mozwebqa.base_url + "/default/sale-discount")
     soup = BeautifulSoup(response.content)
     sale_nav_items = soup.find("ul", class_="sale-category-nav")
     for link in sale_nav_items.select("li a[href]"):
         assert sale_page.get_response_code(mozwebqa.base_url + link["href"]) == 200
Example #2
0
 def test_dropdowns(self, mozwebqa):
     sale_page = SalePage(mozwebqa)
     sale_page.go_to_page()
     sale_page.resize_window(1028, 1028)
     sale_page.drop_down_one()
     assert sale_page.is_element_present(*sale_page._active_dropdown)
     sale_page.drop_down_two()
     assert sale_page.is_element_present(*sale_page._active_dropdown)