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.
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:
If it required to be logged in, use next code:
"""
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.