Skip to content

Commit 3bbe295

Browse files
committed
style(website): remove a bunch of trailing spaces according to markdownlint rule 009
Refs: https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md009.md
1 parent 0ce36f7 commit 3bbe295

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/docs/handbook/web-testing/page-element-query-language.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ For information on how to debug PEQL expressions, see the [debugging guide](/han
2222

2323
## Working with individual page elements
2424

25-
To show you how to work with **individual page elements**,
25+
To show you how to work with **individual page elements**,
2626
I'll use an example shopping basket widget and demonstrate locating its various parts.
27-
The widget is simple enough to help us focus on the important aspects of PEQL,
27+
The widget is simple enough to help us focus on the important aspects of PEQL,
2828
yet sophisticated enough to be representative of other widgets you're likely to come across in the wild:
2929

3030
```html
@@ -97,7 +97,7 @@ and others.
9797

9898
### Using selector aliases
9999

100-
In scenarios where elements use a consistent pattern allowing them to be easily identified,
100+
In scenarios where elements use a consistent pattern allowing them to be easily identified,
101101
such as a `data-test-it`, or a `role` attribute, you might want to implement custom selector aliases
102102
to avoid code duplication.
103103

@@ -355,7 +355,7 @@ const lastItem = () =>
355355
.last()
356356
```
357357

358-
The above APIs are particularly useful when you need to retrieve elements from a sorted collection,
358+
The above APIs are particularly useful when you need to retrieve elements from a sorted collection,
359359
such as the most recent comment under an article, the last customer order in a CRM system,
360360
nth position from a league table, and so on.
361361

@@ -426,7 +426,7 @@ so questions that can be composed with other questions and answered in their con
426426
In short, any Serenity/JS question that has a [`question.of(anotherQuestion)`](/api/core/interface/MetaQuestion/#of) API is
427427
a meta-question.
428428

429-
Conveniently, [`PageElement`](/api/web/class/PageElement/) is a meta-question that can be
429+
Conveniently, [`PageElement`](/api/web/class/PageElement/) is a meta-question that can be
430430
composed with another `PageElement` using a declarative [`childElement.of(parentElement)`](/api/web/class/PageElement/#of) API
431431
to dynamically model a descendant/ancestor (a.k.a. child/parent) relationship between the elements.
432432

@@ -488,8 +488,8 @@ await actorCalled('Alice').attemptsTo(
488488
```
489489

490490
Serenity/JS lets you compose not just the page elements, but also their **descriptions**.
491-
In our example, the description of `Text.of(itemName().of(basketItem()))` will be **derived from individual descriptions** of
492-
questions in the chain and reported as `text of name of basket item`.
491+
In our example, the description of `Text.of(itemName().of(basketItem()))` will be **derived from individual descriptions** of
492+
questions in the chain and reported as `text of name of basket item`.
493493
Of course, you can set your own description if you prefer using `.describedAs()`, too.
494494

495495
You might have also noticed that the [`childElement.of(parentElement)`](/api/web/class/PageElement/#of) API
@@ -528,7 +528,7 @@ await actorCalled('Alice').attemptsTo(
528528
)
529529
```
530530

531-
you could also use it to extract the text value of each element in a collection:
531+
you could also use it to extract the text value of each element in a collection:
532532

533533
```typescript
534534
import { actorCalled } from '@serenity-js/core'
@@ -590,11 +590,11 @@ await actorCalled('Alice').attemptsTo(
590590

591591
### Creating custom meta-questions
592592

593-
Serenity/JS provides a number of meta-questions, like [`Text`](/api/web/class/Text),
594-
[`CssClasses`](/api/web/class/CssClasses), or [`Attribute`](/api/web/class/Attribute),
593+
Serenity/JS provides a number of meta-questions, like [`Text`](/api/web/class/Text),
594+
[`CssClasses`](/api/web/class/CssClasses), or [`Attribute`](/api/web/class/Attribute),
595595
and you can always write your own if needed.
596596

597-
For example, if you're dealing with a web interface that presents tabular data,
597+
For example, if you're dealing with a web interface that presents tabular data,
598598
you might want to fetch a table row, perform some transformation on each cell,
599599
then return the result as a JSON object so that it's easier to work with.
600600

@@ -652,7 +652,7 @@ await actorCalled('Alice').attemptsTo(
652652

653653
Alternatively, when you want to create a question that returns a JSON object, instead of using [`Question.about`](/api/core/class/Question/#about)
654654
you can also use [`Question.fromObject`](/api/core/class/Question/#fromObject), which will make your implementation
655-
more concise:
655+
more concise:
656656

657657
```typescript
658658
const BasketItemDetails: MetaQuestion<PageElement, Question<Promise<{ name: string, price: number }>>> = {
@@ -736,7 +736,7 @@ const destroyButton = () => // Destroy button
736736
### Filtering page elements
737737

738738
Serenity/JS [`PageElements`](/api/web/class/PageElements/) are a [`List`](/api/core/class/List/), which means they offer a filtering API
739-
([`list.where(metaQuestion, expectation)`](/api/core/class/List/#where)) and methods like
739+
([`list.where(metaQuestion, expectation)`](/api/core/class/List/#where)) and methods like
740740
[`first()`](/api/web/class/PageElements/#first),
741741
[`last()`](/api/web/class/PageElements/#last),
742742
or [`count()`](/api/web/class/PageElements/#count).
@@ -757,7 +757,7 @@ await actorCalled('Alice').attemptsTo(
757757
)
758758
```
759759

760-
Furthermore, you can compose the result of your query with another question, like `label().of(...)`:
760+
Furthermore, you can compose the result of your query with another question, like `label().of(...)`:
761761

762762
```typescript
763763
import { actorCalled } from '@serenity-js/core'

0 commit comments

Comments
 (0)