Skip to content

Make preparing storyfile for Frontend Feedback agent easier #49

Description

@Grigorij-Dudnik

Currently, in storyfile we need to describe for agent how to login. So there is a part of example storyfile:
"""
If you want to test changes that does not require to be logged in, just go straight away to your page you want to test with:

page.goto(f'{frontend_url}/your_endpoint_to_test')

If it required to be logged in, use next code:

page.goto(f'{frontend_url}/login')
page.fill('input[type="email"]', username)
page.fill('input[type="password"]', password)
page.click('button[type="submit"]')
page.wait_for_url('**/')

"""

As we can see, user need to provide playwrigt code for Frontend Feedback. Figuring out that code could be complicated process for a new user.

Instead, I propose to make user just provide file(s) with login data to context of frontend feedback - let agent figure out how to write login code by itself. So we should format storyfile to make user be able to provide filename of login file, which will be automatically loaged to context of agent.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions