Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkly/https89serviceglidepage 97a9b #1086

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ command comes in. It lists all of the directories except `vendor`.
This will run `go test` over all directories of your project except the
`vendor` directory.

## glide name
##BB-89 9me

When you're scripting with Glide there are occasions where you need to know
the name of the package you're working on. `glide name` returns the name of the
Expand Down
30 changes: 30 additions & 0 deletions __checks__/https89serviceglidepage.check.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* This is a basic Playwright script to get you started!
* To learn more about Browser checks and Playwright visit: https://www.checklyhq.com/docs/browser-checks
*/

// Create a Chromium browser
const { chromium } = require('playwright')

// Checkly supports top level await, but we wrap your code in an async function so you can run it locally too.
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('https://89service.glide.page')

// 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: 'screenshot.jpg' })

// We close the page to clean up and gather performance metrics.
await page.close()
await browser.close()
}

run()
2 changes: 1 addition & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ When you run commands like `go test ./...` it will iterate over all the subdirec

This will run `go test` over all directories of your project except the `vendor` directory.

## glide name
##Name

When you're scripting with Glide there are occasions where you need to know the name of the package you're working on. `glide name` returns the name of the package listed in the `glide.yaml` file.

Expand Down