Test Results (8 tests)
⏱️ Duration: 35.54s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a256c20>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff62a34b1c0>
sign_up_page = <pages.sign_up_page.SignUpPage object at 0x7ff62a34a440>
my_account_page = <pages.my_account_page.MyAccountPage object at 0x7ff62a34a680>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_a07_free_user_has_no_brand_options_in_wizard(
self, autopilot_page, sign_up_page, my_account_page, base_url
):
"""
A07 Free user does not see my brand or logo options in the autopilot wizard
Feature scenario:
When I create a new account
And I continue without a website (autopilot wizard landing)
Then I verify if there is no option to add brand
When I open the settings page
Then I delete my account
"""
random_email = f"promo.auto.a07.{uuid.uuid4().hex[:8]}@promo.com"
sign_up_page.create_account(
base_url=base_url,
email=random_email,
full_name=fullname,
password=random_password,
)
autopilot_page.go_to_autopilot_wizard(base_url)
autopilot_page.click_continue_without_website()
autopilot_page.assert_brands_dropdown_not_visible()
my_account_page.go_to_my_account_direct(base_url)
> my_account_page.delete_account(random_password)
tests/test_autopilot.py:363:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/my_account_page.py:97: in delete_account
self.page.locator(self.HOMEPAGE_AI_INPUT).wait_for(state="visible", timeout=self.T_UPLOAD)
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_for_selector
📸 Failure Screenshot:
⏱️ Duration: 36.83s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a257dc0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff62846af20>
login_page = <pages.login_page.LoginPage object at 0x7ff6282e5690>
base_url = 'https://promo.com', button_key = 'upload_to', option = 'voice'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("button_key,option", [
("export", "cbe"),
("upload_to", "voice"),
("embed", "regenerate"),
])
def test_a09_redirect_to_publish_page_via_preview_buttons(
self, autopilot_page, login_page, base_url, button_key, option
):
"""
A09 Verify user is redirected to the publish page when using planner preview buttons
Feature scenario (Scenario Outline):
Given AI user is logged in
When I open Planner
Then I generate AI posts if needed
When I click on 4 AI Post
When I click the "<button>" button in the dropdown
Then Video is being rendered
Then New tab with Publish Page is opened
When I open Planner via link
When I click on 4 rendered AI Post
Then I check that "<option>" is not available
Then I remove the rendered post
Examples: export/cbe | upload_to/voice | embed/regenerate
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.ensure_ai_posts_exist()
autopilot_page.open_ai_post(4)
> autopilot_page.click_dropdown_button_open_publish(button_key)
tests/test_autopilot.py:415:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1005: in click_dropdown_button_open_publish
self.wait_for_video_rendering()
pages/autopilot_page.py:1013: in wait_for_video_rendering
self.page.locator(self.AI_VIDEO_BEING_RENDERED).wait_for(state="visible", timeout=self.T_NETWORK)
/usr/local/lib/python
📸 Failure Screenshot:
⏱️ Duration: 36.93s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a257eb0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff62a3bbb80>
login_page = <pages.login_page.LoginPage object at 0x7ff62a3ba3e0>
base_url = 'https://promo.com', button_key = 'embed', option = 'regenerate'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("button_key,option", [
("export", "cbe"),
("upload_to", "voice"),
("embed", "regenerate"),
])
def test_a09_redirect_to_publish_page_via_preview_buttons(
self, autopilot_page, login_page, base_url, button_key, option
):
"""
A09 Verify user is redirected to the publish page when using planner preview buttons
Feature scenario (Scenario Outline):
Given AI user is logged in
When I open Planner
Then I generate AI posts if needed
When I click on 4 AI Post
When I click the "<button>" button in the dropdown
Then Video is being rendered
Then New tab with Publish Page is opened
When I open Planner via link
When I click on 4 rendered AI Post
Then I check that "<option>" is not available
Then I remove the rendered post
Examples: export/cbe | upload_to/voice | embed/regenerate
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.ensure_ai_posts_exist()
autopilot_page.open_ai_post(4)
> autopilot_page.click_dropdown_button_open_publish(button_key)
tests/test_autopilot.py:415:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1005: in click_dropdown_button_open_publish
self.wait_for_video_rendering()
pages/autopilot_page.py:1013: in wait_for_video_rendering
self.page.locator(self.AI_VIDEO_BEING_RENDERED).wait_for(state="visible", timeout=self.T_NETWORK)
/usr/local/lib/pytho
📸 Failure Screenshot:
⏱️ Duration: 15.32s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a2563e0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff6226e9480>
login_page = <pages.login_page.LoginPage object at 0x7ff6226e86a0>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_a10_create_new_with_topic(
self, autopilot_page, login_page, base_url
):
"""
A10 User provides a topic in the Create new input
Feature scenario:
Given AI user is logged in
When User clicks the Create new button in header
Then Create new dropdown is displayed
When I provide topic in the create new input
And I click the Generate button in the create new header
Then I review the topic
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.click_create_new_button()
> autopilot_page.assert_create_new_dropdown_visible()
tests/test_autopilot.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1400: in assert_create_new_dropdown_visible
self.page.locator(self.CREATE_NEW_VIDEO_INPUT).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_for_selector
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7ff62a256380>
cb = <function Channel.send.<locals>.<lambda> at 0x7ff629711cf0>
is_internal = False, title = None
📸 Failure Screenshot:
⏱️ Duration: 15.03s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a2544f0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff62967aaa0>
login_page = <pages.login_page.LoginPage object at 0x7ff62967b9d0>
base_url = 'https://promo.com'
@pytest.mark.skip_smoke
def test_a11_create_new_with_website(
self, autopilot_page, login_page, base_url
):
"""
A11 User provides a website in the Create new input
Feature scenario:
Given AI user is logged in
When User clicks the Create new button in header
Then Create new dropdown is displayed
When I provide website in the create new input
And I click the Generate button in the create new header
Then Business assets are fetched from the website
"""
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.click_create_new_button()
> autopilot_page.assert_create_new_dropdown_visible()
tests/test_autopilot.py:462:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1400: in assert_create_new_dropdown_visible
self.page.locator(self.CREATE_NEW_VIDEO_INPUT).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_for_selector
await self._channel.send(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_connection.py:76: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7ff62a256380>
cb = <function Channel.send.<locals>.<lambda> at 0x7ff6293c4af0>
is
📸 Failure Screenshot:
⏱️ Duration: 15.30s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a348af0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff6281a8040>
login_page = <pages.login_page.LoginPage object at 0x7ff6281a9f00>
base_url = 'https://promo.com', product_url = 'amazon.com/dp/B0BRH2RNHX'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("product_url", [
standard_amazon_product,
standard_airbnb_local,
])
def test_a12_create_new_with_amazon_product(
self, autopilot_page, login_page, base_url, product_url
):
"""
A12 User provides Amazon product or Airbnb listing in the Create new input
Feature scenario:
Given AI user is logged in
When User clicks the Create new button in header
Then Create new dropdown is displayed
When I provide Amazon product in the create new input
And I click the Generate button in the create new header
Then I verify posts amount is equal to 1
Parameters: standard_amazon_product | standard_airbnb_local
"""
span_index = {
standard_amazon_product: 2,
standard_airbnb_local: 3,
}[product_url]
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.click_create_new_button()
> autopilot_page.assert_create_new_dropdown_visible()
tests/test_autopilot.py:495:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1400: in assert_create_new_dropdown_visible
self.page.locator(self.CREATE_NEW_VIDEO_INPUT).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_frame.py:394: in wait_fo
📸 Failure Screenshot:
⏱️ Duration: 14.34s
❌ Error:
self = <tests.test_autopilot.TestAutopilot object at 0x7ff62a348be0>
autopilot_page = <pages.autopilot_page.AutopilotPage object at 0x7ff62a34a2c0>
login_page = <pages.login_page.LoginPage object at 0x7ff62a34ae00>
base_url = 'https://promo.com'
product_url = 'https://www.airbnb.com/rooms/1402655494806905338'
@pytest.mark.skip_smoke
@pytest.mark.parametrize("product_url", [
standard_amazon_product,
standard_airbnb_local,
])
def test_a12_create_new_with_amazon_product(
self, autopilot_page, login_page, base_url, product_url
):
"""
A12 User provides Amazon product or Airbnb listing in the Create new input
Feature scenario:
Given AI user is logged in
When User clicks the Create new button in header
Then Create new dropdown is displayed
When I provide Amazon product in the create new input
And I click the Generate button in the create new header
Then I verify posts amount is equal to 1
Parameters: standard_amazon_product | standard_airbnb_local
"""
span_index = {
standard_amazon_product: 2,
standard_airbnb_local: 3,
}[product_url]
login_page.login_directly(base_url, email_ai, get_password())
autopilot_page.go_to_planner(base_url)
autopilot_page.click_create_new_button()
> autopilot_page.assert_create_new_dropdown_visible()
tests/test_autopilot.py:495:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/autopilot_page.py:1400: in assert_create_new_dropdown_visible
self.page.locator(self.CREATE_NEW_VIDEO_INPUT).wait_for(
/usr/local/lib/python3.10/dist-packages/playwright/sync_api/_generated.py:20539: in wait_for
self._sync(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_locator.py:748: in wait_for
await self._frame.wait_for_selector(
/usr/local/lib/python3.10/dist-packages/playwright/_impl/_f
📸 Failure Screenshot: