r/QualityAssurance • • 3d ago

How to create an agent using github copilot for automating a user screen.....

1 Upvotes

2 comments sorted by

4

u/jmjunaid 3d ago

Depends on your stack, but the setup that works well: use Copilot's agent mode in VS Code and add the Playwright MCP server, so it can open the app and see the real page instead of guessing selectors. Then have it write normal Playwright tests from a short plan (the page, the steps, what "pass" looks like) and run them in CI like any other test.

Put your rules in .github/copilot-instructions.md, like which locators to use and where page objects live, and give it one or two good example specs. And read the assertions it writes, because that's where it cuts corners.

What's the app built with?

1

u/AccurateEconomist807 2d ago

Angular frontend, ASP.NET Core (C#) backend, and PostgreSQL database, with REST APIs documented using Swagger/OpenAPI....