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/tutorials/your-first-web-scenario.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ you're a test automation expert or just starting on your journey.
13
13
If you found anything here that could have been clearer, please let me know in the comments or
14
14
[submit a correction](https://github.com/serenity-js/serenity-js/tree/main/documentation/serenity-js.org/docs/web-testing/your-first-web-scenario.mdx).
15
15
16
-
To keep things simple, we'll use a [**Gitpod.io workspace**](/handbook/getting-started/project-templates/#serenityjs-gitpods) to work with Serenity/JS in your web browser, so there's **no need to install anything** on your computer.
16
+
To keep things simple, we'll use a [**Gitpod.io workspace**](/handbook/project-templates/#serenityjs-gitpods) to work with Serenity/JS in your web browser, so there's **no need to install anything** on your computer.
17
17
If you prefer to set up Serenity/JS locally instead, follow the installation instructions in [Serenity/JS + Playwright Test project template](https://github.com/serenity-js/serenity-js-playwright-test-template).
18
18
19
19
[](https://gitpod.io/#https://github.com/serenity-js/serenity-js-playwright-test-template)
@@ -32,8 +32,8 @@ If you get lost or stumble upon a problem you're not quite sure how to solve - a
32
32
33
33
## Launching your workspace
34
34
35
-
All [Serenity/JS project templates](/handbook/getting-started/project-templates/), such as the one we'll use in this chapter,
36
-
[support Gitpod.io workspaces](/handbook/getting-started/project-templates/#serenityjs-gitpods) and are configured to
35
+
All [Serenity/JS project templates](/handbook/project-templates/), such as the one we'll use in this chapter,
36
+
[support Gitpod.io workspaces](/handbook/project-templates/#serenityjs-gitpods) and are configured to
37
37
make it easy for you to use them in a Visual Studio Code-based development environment.
38
38
Of course, since Serenity/JS tests are standards-based Node.js code, they'll work just as well in any other modern <abbrtitle="Integrated Development Environment">IDE</abbr>.
39
39
@@ -161,7 +161,7 @@ browser interacting with the web app under test. That's because any web browsers
161
161
are configured to run in "headless" mode by default so that they don't get in the way and don't interrupt your work.
162
162
163
163
This setting is configurable, so you can change it when you need to see what's going on under the hood
164
-
or to access the developer tools offered by your browser to [debug your test scenarios](/handbook/web-testing/your-first-web-scenario/#debugging-tests-and-interactive-execution)
164
+
or to access the developer tools offered by your browser to [debug your test scenarios](/handbook/tutorials/your-first-web-scenario/#debugging-tests-and-interactive-execution)
165
165
or the system under test.
166
166
167
167
In addition to being able to interact with the browser when running the tests locally, the
@@ -344,11 +344,11 @@ over time, writing test scenarios becomes easier as you're simply re-arranging e
344
344
### Using portable assertions
345
345
346
346
The Serenity/JS activity-based programming model applies to performing [assertions](/handbook/design/assertions) just as well as it applies
347
-
to performing [tasks and interactions](/handbook/web-testing/your-first-web-scenario/#modelling-workflows-using-reusable-activities).
347
+
to performing [tasks and interactions](/handbook/tutorials/your-first-web-scenario/#modelling-workflows-using-reusable-activities).
348
348
In fact, the Serenity/JS assertion to [`Ensure`](/api/assertions/class/Ensure) is just another interaction
349
349
you give to an actor to perform.
350
350
351
-
Consider the test scenario [you wrote earlier](/handbook/web-testing/your-first-web-scenario#writing-serenityjs-test-scenarios):
351
+
Consider the test scenario [you wrote earlier](/handbook/tutorials/your-first-web-scenario#writing-serenityjs-test-scenarios):
@@ -525,7 +525,7 @@ to performing the parameterised activity.
525
525
526
526
To see examples of how to define Serenity/JS questions, open [`spec/todo-list-app/TodoList/questions.ts`](https://github.com/serenity-js/serenity-js-playwright-test-template/blob/main/spec/todo-list-app/TodoList/questions.ts).
527
527
528
-
Among several other functions you'll spot `itemNames()`, which should be already [familiar to you](/handbook/web-testing/your-first-web-scenario#writing-serenityjs-test-scenarios):
528
+
Among several other functions you'll spot `itemNames()`, which should be already [familiar to you](/handbook/tutorials/your-first-web-scenario#writing-serenityjs-test-scenarios):
.describedAs(d`an item called ${ name }`) asQuestionAdapter<PageElement>;
549
549
```
550
550
551
-
Just like Serenity/JS activities can be [composed into tasks](/handbook/web-testing/your-first-web-scenario#modelling-workflows-using-reusable-activities),
551
+
Just like Serenity/JS activities can be [composed into tasks](/handbook/tutorials/your-first-web-scenario#modelling-workflows-using-reusable-activities),
552
552
Serenity/JS [questions](/api/core/class/Question) can be composed with other questions to transform their results.
553
553
554
554
:::info Remember
@@ -569,7 +569,7 @@ Also note how all the questions define [custom descriptions](/api/core/class/Que
569
569
### Debugging questions
570
570
571
571
To use the interaction to [`Debug`](/api/core/class/Debug) to analyse what a given question resolves to,
572
-
modify the scenario [you wrote earlier](/handbook/web-testing/your-first-web-scenario#writing-serenityjs-test-scenarios):
572
+
modify the scenario [you wrote earlier](/handbook/tutorials/your-first-web-scenario#writing-serenityjs-test-scenarios):
Copy file name to clipboardExpand all lines: src/docs/handbook/web-testing/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
sidebar_position: 4
3
-
title: Web testing
2
+
sidebar_position: 5
3
+
title: Web Testing Patterns
4
4
---
5
-
# Web testing
5
+
# Serenity/JS Web Testing Patterns
6
6
7
7
[**Serenity/JS web module**](/api/web) is an abstraction layer on top of popular web integration tools like [WebdriverIO](/api/webdriverio), [Playwright](/api/playwright), or [Protractor](/api/protractor).
8
8
It helps you create **portable test code libraries** that interact with web-based interfaces and can be shared and reused across projects and teams.
0 commit comments