This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { test, expect } = require('@playwright/test'); | |
const crawl_url = "https://checklyhq.com"; | |
test('Check all links on a page', async ({ page }) => { | |
test.setTimeout(120000) | |
// Navigate to the URL | |
await page.goto(crawl_url); // Replace with your URL | |
// Get all links on the page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { expect, test } = require('@playwright/test') | |
const aws4 = require('aws4') | |
const axios = require('axios').default | |
const S3_BUCKET_NAME = 'xxx'; | |
const S3_OBJECT_KEY = '/image.jpg'; // The name you want to give to the uploaded image file | |
const AWS_REGION = 'eu-west-2' | |
test('visit page and take screenshot', async ({ page }) => { | |
const response = await page.goto(process.env.ENVIRONMENT_URL || 'https://checklyhq.com') |
NewerOlder