27045ec.
Context and decision drivers
The report needs device readings and a chart from an external portal. The workflow signs in, selects a device and date range, downloads a CSV export, and captures the chart. The team wanted to run these interactions in the hosted report service.Options considered
Decision and rationale
Use Puppeteer Core with Chromium and portal-specific selectors. The implementation navigates the portal, downloads CSV data, and captures the chart as an image.Consequences
- The workflow can obtain data and imagery through the portal’s existing interface.
- Portal markup, selectors, authentication, and timing changes can break report generation.
- Chromium and its system dependencies increase deployment and runtime requirements.
- Representative end-to-end checks are needed to detect portal changes.