Skip to content

Commit eb4fc1f

Browse files
committed
Comment fixes
1 parent 23de329 commit eb4fc1f

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

website/docs/visual-testing/integrate-with-app-percy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: integrate-with-app-percy
3-
title: Integrate with App Percy
3+
title: Run visual tests on your mobile apps with App Percy
44
---
55

66
## Introduction
@@ -62,7 +62,7 @@ Make sure to import @percy/appium-app in your code.
6262
Below is an example test using the percyScreenshot function. Use this function wherever you have to take a screenshot.
6363

6464
```sh
65-
const percyScreenshot = require('@percy/appium-app');
65+
import percyScreenshot from '@percy/appium-app';
6666
describe('Appium webdriverio test example', function() {
6767
it('takes a screenshot', async () => {
6868
await percyScreenshot('Appium JS example');

website/docs/visual-testing/integrate-with-percy.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: integrate-with-percy
3-
title: Integrate with Percy
3+
title: Run visual tests on your web apps with Percy
44
---
55

66
## Introduction
@@ -55,7 +55,7 @@ Import the Percy library to use the method and attributes required to take scree
5555
The following example uses the percySnapshot() function in the async mode:
5656

5757
```sh
58-
const percySnapshot = require('@percy/webdriverio');
58+
import percySnapshot from '@percy/webdriverio';
5959
describe('webdriver.io page', () => {
6060
it('should have the right title', async () => {
6161
await browser.url('https://webdriver.io');
@@ -68,15 +68,16 @@ describe('webdriver.io page', () => {
6868
When using WebdriverIO in the [standalone mode](https://webdriver.io/docs/setuptypes.html/?utm_source=webdriverio&utm_medium=partnered&utm_campaign=documentation), provide the browser object as the first argument to the `percySnapshot` function:
6969
7070
```sh
71-
const { remote } = require('webdriverio');
72-
const percySnapshot = require('@percy/webdriverio');
73-
(async () => {
74-
const browser = await remote({
75-
logLevel: 'trace',
76-
capabilities: {
77-
browserName: 'chrome'
78-
}
79-
});
71+
import { remote } from 'webdriverio'
72+
73+
import percySnapshot from '@percy/webdriverio';
74+
75+
const browser = await remote({
76+
logLevel: 'trace',
77+
capabilities: {
78+
browserName: 'chrome'
79+
}
80+
});
8081
await browser.url('https://duckduckgo.com');
8182
const inputElem = await browser.$('#search_form_input_homepage');
8283
await inputElem.setValue('WebdriverIO');

0 commit comments

Comments
 (0)