Urgent.News

What's breaking now, across thousands of outlets.

AI

Use case: Creating an agentic workflow from frontend to test automation

Introduction Every time our Frontend (FE) changed a UI component, a little nightmare started: tests broke, the Test Automation (TA) team was called and what seemed to be endless back-and-forth happened. I saw an opportunity to reduce this friction by introducing a headless agent into our workflow - one that picks up the broken tests and tries to fix them. Developing automations like this is a…

Every time the Frontend (FE) makes changes to a UI component, a series of complications often arise. Tests break, the Test Automation (TA) team is alerted, and a back-and-forth process ensues. To minimize this friction, the idea of integrating an agent into the workflow was introduced. This agent is responsible for identifying broken tests and attempting to rectify them.

Designing such an automation flow involves several considerations. One key question was timing: should the agent be triggered every time tests fail? Another was the platform on which the agentic workflow should run - Drone or GitHub Actions? Additionally, the connection between FE and TA repositories had to be addressed, as the two codebases are separate.

Lastly, the potential outcomes of the agent's actions needed to be defined: what happens if the agent cannot fix the test? What if it can? And what if it cannot reproduce the issue (in which case, the tests would pass)?

The proposed solution involves FE's CI pipeline running smoke tests. If these tests fail, an agent would be triggered in TA via a repository_dispatch event sent through the GitHub REST API. The agent would then attempt to fix the failing tests. If successful, a pull request (PR) would be created for a human to review. If this PR is merged, FE's CI pipeline would pass.

However, it's important to note that when the TA PR is merged to the main branch, FE's main branch and other branches may temporarily fail tests due to outdated code. This is a known trade-off, accepted because the process is being expedited while still maintaining control over the flow - a human will need to initiate the merge of the TA PR into FE's main branch.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

NIMET partners 3IS on AI chatbot for climate warnings

The Nigerian Meteorological Agency (NiMet) has partnered with 3IS to improve access to weather and climate information through an artificial intelligence-powered chatbot.

  • Nigerian Meteorological Agency (NiMet) partners with 3IS for AI chatbot project
  • ANTICIPA project tested in Sokoto State using WhatsApp chatbot
  • Aim is to provide early warnings for climate-related threats

Coverage theatre: your AI hit 90% coverage and still shipped the bug

Your AI assistant just generated tests until the coverage bar turned green. 92%. Ship it? Here's the trap: coverage measures which lines ran , not whether a test would notice when they're wrong .

  • AI-generated tests reached 90% coverage
  • Coverage measures only executed lines, not correct behavior
  • Mutation testing verifies test suite quality

More from Wednesday 30 September →