def test_confirmation(page: Page): home_page = HomePage(page) home_page.open_main_page() home_page.add_thing_to_cart_by_name("Blouse") text = home_page.get_confirmation_text() assert "Product successfully added to your shopping cart" in text, "Wrong confirmation message"