diff --git a/README.md b/README.md index b5cf500c..24772983 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/__checks__/https89serviceglidepage.check.js b/__checks__/https89serviceglidepage.check.js new file mode 100644 index 00000000..de2b0853 --- /dev/null +++ b/__checks__/https89serviceglidepage.check.js @@ -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() \ No newline at end of file diff --git a/docs/commands.md b/docs/commands.md index 7c3a53cc..03c21a08 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -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.