Skip to content

Commit 3b62506

Browse files
Updated example to use imported TEST_URL
Updated the example
1 parent cbef832 commit 3b62506

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,11 @@ Use the utilities from this repository when writing your deployment tests. Here'
6363

6464
```js
6565
import { test, expect } from '@playwright/test'
66-
import { dismissBetaBanner, getLtiIFrame, waitForNoSpinners } from '@oxctl/deployment-test-utils'
67-
68-
const host = process.env.CANVAS_HOST
69-
const url = process.env.TEST_PATH
66+
import { dismissBetaBanner, getLtiIFrame, waitForNoSpinners, TEST_URL } from '@oxctl/deployment-test-utils'
7067

7168
test.describe('Test deployment', () => {
7269
test('The tool should load and the text "XXXXXXXXXXXXXXX" should be shown', async ({context, page}) => {
73-
await page.goto(`${host}/${url}`)
70+
await page.goto(TEST_URL)
7471
await dismissBetaBanner(page)
7572
const ltiIFrame = getLtiIFrame(page)
7673
await waitForNoSpinners(ltiIFrame)

0 commit comments

Comments
 (0)