⏱️ Duration: 76.55s
❌ Error:
self = <tests.test_web_brand_manager.TestWebBrandManager object at 0x7feb438b57b0>
login_page = <pages.login_page.LoginPage object at 0x7feb438b5030>
create_page = <pages.create_page.CreatePage object at 0x7feb438b5180>
editor_page = <pages.editor_page.EditorPage object at 0x7feb43875de0>
brand_manager_page = <pages.brand_manager_page.BrandManagerPage object at 0x7feb43876e00>
base_url = 'https://test03.testingpromo.com'
@pytest.mark.skip_smoke
def test_w20_verify_brand_manager_wizard(
self,
login_page: LoginPage,
create_page: CreatePage,
editor_page: EditorPage,
brand_manager_page: BrandManagerPage,
base_url,
):
"""
W20 Verify Brand Manager Functionalities through Wizard
Flow:
1. Login → search "summer" → customize first video → verify editor
2. Upload watermark and logo in the editor
3. Open Brand Manager from the editor → delete all existing brands
4. Create a new brand with logo and watermark via the wizard
5. Create a new project → search "summer" → customize first video → verify editor
6. Assert the brand watermark and logo are synced in the new project
"""
page = login_page.page
# Step 1: Login and navigate to a video in the editor
login_page.login_directly(base_url, general_mail(), get_password())
create_page.navigate_to_create(base_url)
create_page.search_for("summer")
create_page.customize_first_video()
editor_page.verify_editor_loaded()
# Step 2: Upload watermark and logo
editor_page.upload_watermark(brand_logo_path)
editor_page.upload_logo(brand_logo_path)
# Step 3: Open Brand Manager from editor, delete all existing brands
editor_page.go_to_brands_from_editor()
brand_manager_page.delete_all_brands()
# Navigate to Brand Manager via header for a fresh page load — ensures
📸 Failure Screenshot:
⏱️ Duration: 30.00s
❌ Error:
self = <tests.test_web_brand_manager.TestWebBrandManager object at 0x7feb438b4f70>
sign_up_page = <pages.sign_up_page.SignUpPage object at 0x7feb4111a170>
brand_manager_page = <pages.brand_manager_page.BrandManagerPage object at 0x7feb4111a590>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7feb4111a620>
base_url = 'https://test03.testingpromo.com'
@pytest.mark.skip_prod
def test_w11_new_user_purchases_plan_after_adding_brand(
self, sign_up_page, brand_manager_page, my_account_page, base_url
):
"""
W11 New user purchases plan after adding a brand (skip_prod)
Feature scenario:
Given I generate a random email for sign up
When I create a new account new auth
When I close onboarding wizard
When I go to Brand Manager page
When I click the Add brand button → create brand via brandfetch (promoai.io)
When I click the Add brand button again → triggers pricing widget (brand limit)
Then I verify user can purchase standard plan:
- pricing widget visible (EMBED_PRICING_IFRAME)
- click 'Choose Standard' → redirected to Stripe checkout
- verify business-name link exists on checkout page
- click back link → return to promo.com
When I go to my account → delete account
Test env: Stripe Sandbox. Does NOT complete the purchase — only verifies
the redirect flow reaches the checkout page (mirrors Selenium source).
"""
random_email = f"promo.auto.w11.{uuid.uuid4().hex[:8]}@promo.com"
> sign_up_page.create_account(
base_url=base_url,
email=random_email,
full_name=fullname,
password=random_password,
)
tests/test_web_brand_manager.py:205:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/sign_up_page.py:45: in create_account
self.page.goto(f"{base_url}/signu