-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- trigger by deploy succeed as in example using another gha via trigger with DEPLOY_URL as parameter
- make GHA with Playwright to make visual comparism and if are differences comment with image?
- update merge status by result, green for the same image, red for differences
- automerge status is green
const { chromium } = require('playwright')
async function run () {
const browser = await chromium.launch()
const page = await browser.newPage()
// We visit the page. This waits for the 'load' event by default.
const response = await page.goto(process.env.DEPLOY_URL)
// If the page doesn't return a successful response code, we fail the check.
if (response.status() > 399) {
throw new Error(`Failed with response code ${response.status()}`)
}
// We snap a screenshot.
await page.screenshot({ path: 'deploy-screenshot.jpg', fullPage: true })
// We close the page to clean up and gather performance metrics.
await page.close()
await browser.close()
}
run()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request