You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/handbook/api-testing/configuring-http-client.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ BeforeAll(async () => {
61
61
})
62
62
```
63
63
64
-
Make sure to review the [examples and reference implementations](https://github.com/serenity-js/serenity-js/tree/main/examples), as well as [Serenity/JS REST API testing Project Templates](/handbook/getting-started/project-templates/#resthttp-api-testing)
64
+
Make sure to review the [examples and reference implementations](https://github.com/serenity-js/serenity-js/tree/main/examples), as well as [Serenity/JS REST API testing Project Templates](/handbook/project-templates/#resthttp-api-testing)
65
65
to see how to apply the above configuration to an existing project.
[**Serenity/JS REST**](/api/rest) is a [Screenplay Pattern](/handbook/design/screenplay-pattern)-compatible library that enables your actors to interact with REST- and other
9
9
HTTP-based interfaces. Under the hood, Serenity/JS REST uses the popular [Axios HTTP client](https://github.com/axios/axios), allowing you to leverage its [plugin ecosystem](https://www.npmjs.com/search?q=keywords:axios),
10
10
and adds automatic proxy server detection to ensure your API tests work smoothly, even in corporate networks.
11
11
12
12
In this chapter, you'll learn about:
13
-
-[**Interacting with HTTP APIs**](/handbook/api-testing/your-first-api-scenario/) using Serenity/JS Screenplay Pattern libraries
13
+
-[**Interacting with HTTP APIs**](/handbook/tutorials/your-first-api-scenario/) using Serenity/JS Screenplay Pattern libraries
14
14
-[**Configuring Serenity/JS HTTP client**](/handbook/api-testing/configuring-http-client/) for API testing
15
15
-[**Sending HTTP requests**](/handbook/api-testing/sending-requests/) using the Serenity/JS REST module
16
16
-[**Verifying HTTP responses**](/handbook/api-testing/verifying-responses/) using the Serenity/JS assertions module
Copy file name to clipboardExpand all lines: src/docs/handbook/tutorials/your-first-api-scenario.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
sidebar_position: 1
2
+
sidebar_position: 2
3
3
title: Your first API scenario
4
4
---
5
5
@@ -25,7 +25,7 @@ To demonstrate how this can be accomplished, in this tutorial I'll show you how
25
25
## Writing dedicated API test scenarios
26
26
27
27
We'll write a simple "health check" test, where an actor sends a HTTP request to check if a web service is up and running.
28
-
You can write API test scenarios like this using one of the [Serenity/JS Project Templates for API Testing](/handbook/getting-started/project-templates/#resthttp-api-testing),
28
+
You can write API test scenarios like this using one of the [Serenity/JS Project Templates for API Testing](/handbook/project-templates/#resthttp-api-testing),
29
29
as they integrate Serenity/JS directly with [Cucumber](/handbook/test-runners/cucumber/), [Mocha](/handbook/test-runners/mocha/), or [Jasmine](/handbook/test-runners/jasmine/),
30
30
without the overhead of managing a web browser.
31
31
@@ -66,7 +66,7 @@ describe('GitHub Status API v2', () => {
66
66
})
67
67
```
68
68
69
-
If you've already completed the [Serenity/JS web testing tutorial](/handbook/web-testing/your-first-web-scenario/),
69
+
If you've already completed the [Serenity/JS web testing tutorial](/handbook/tutorials/your-first-web-scenario/),
70
70
the above scenario should look familiar:
71
71
1. We start by giving all actors in our [`Cast`](/api/core/class/Cast) abilities to [`CallAnApi`](/api/rest/class/CallAnApi) at a given `baseURL`
72
72
2. Next, the actor sends a [`GetRequest`](/api/rest/class/GetRequest) to the `status` endpoint
@@ -449,7 +449,7 @@ I call this approach [**Blended Testing**](/handbook/web-testing/blended-testing
449
449
450
450
To support you in using Blended Testing in your test suites,
451
451
all [Serenity/JS web test runner adapters](/handbook/test-runners/)
452
-
and [Serenity/JS Project Templates for Web Testing](/handbook/getting-started/project-templates/#web-testing) come with **built-in support for REST and HTTP-based interactions**,
452
+
and [Serenity/JS Project Templates for Web Testing](/handbook/project-templates/#web-testing) come with **built-in support for REST and HTTP-based interactions**,
453
453
so there's no need to install additional dependencies or manually configure anything.
454
454
455
455
@@ -578,9 +578,9 @@ describe('GitHub', () => {
578
578
579
579
## Using Serenity/JS REST testing templates
580
580
581
-
Use [Serenity/JS Project Templates](/handbook/getting-started/project-templates/) to create a new GitHub repository for your automation project in seconds.
581
+
Use [Serenity/JS Project Templates](/handbook/project-templates/) to create a new GitHub repository for your automation project in seconds.
582
582
583
-
Remember that each Serenity/JS template comes with a [GitPod workspace](/handbook/getting-started/project-templates/#serenityjs-gitpods) that uses a dedicated Docker image with all the required dependencies
583
+
Remember that each Serenity/JS template comes with a [GitPod workspace](/handbook/project-templates/#serenityjs-gitpods) that uses a dedicated Docker image with all the required dependencies
584
584
and comes with pre-configured VisualStudio Code extensions to help you experiment with running Serenity/JS straight away in your browser with no local installation required.
0 commit comments