-
Notifications
You must be signed in to change notification settings - Fork 133
/
GetStarted.js
66 lines (64 loc) 路 2.27 KB
/
GetStarted.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import Link from "@docusaurus/Link";
import useBaseUrl from "@docusaurus/useBaseUrl";
import classnames from "classnames";
import React from "react";
import CodeBlock from "../components/CodeBlock";
import styles from "./HowItWorks.module.css";
function GetStarted() {
return (
<div className={styles.howItWorks}>
<h1>Get Started</h1>
<div className={styles.step}>
<div className={styles.stepText}>
<h3>1. Install QA Wolf</h3>
<p className={styles.stepDirection}>
Install QA Wolf as a dev dependency of your project:
</p>
<CodeBlock value="npm i -D qawolf" />
</div>
<img src="https://storage.googleapis.com/docs.qawolf.com/home/install-small.gif" />
</div>
<div className={styles.step}>
<div className={styles.stepText}>
<h3>2. Create your test</h3>
<p className={styles.stepDirection}>
Create a{" "}
<a href="https://pptr.dev/" target="_blank">
Puppeteer
</a>{" "}
and{" "}
<a href="https://jestjs.io" target="_blank">
Jest
</a>{" "}
test from your actions:
</p>
<CodeBlock value="npx qawolf create <url> [name]" />
<p
className={classnames(styles.stepDirection, styles.noBottomMargin)}
>
Your test code is saved at
<code>.qawolf/tests/yourTestName.test.js</code>.{" "}
<Link href={useBaseUrl("docs/edit_test_code")}>Edit your code</Link>{" "}
however you like!
</p>
</div>
<img src="https://storage.googleapis.com/docs.qawolf.com/home/create-test-small.gif" />
</div>
<div className={styles.step}>
<div className={styles.stepText}>
<h3>3. Run your test</h3>
<p className={styles.stepDirection}>
Use the{" "}
<Link href={useBaseUrl("docs/cli#npx-qawolf-test-options")}>
CLI
</Link>{" "}
to run your tests locally:
</p>
<CodeBlock value="npx qawolf test" />
</div>
<img src="https://storage.googleapis.com/docs.qawolf.com/home/run-test-small.gif" />
</div>
</div>
);
}
export default GetStarted;