Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve assertView docs #27

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Conversation

Kabir-Ivan
Copy link
Contributor

No description provided.

@Kabir-Ivan Kabir-Ivan changed the title Add assert viewport docs docs: improve assertView docs Aug 12, 2024
@Kabir-Ivan Kabir-Ivan force-pushed the add-assert-viewport-docs branch from 501d715 to fe1177a Compare August 12, 2024 13:35
Copy link

github-actions bot commented Aug 12, 2024

✅ Successfully deployed static

@@ -24,7 +25,7 @@ await browser.assertView(state, selector, options);
</thead>
<tbody>
<tr><td>[state](#state)</td><td>String</td><td>Обязательный параметр. Название состояния теста. Должно быть уникальным в пределах одного теста.</td></tr>
<tr><td>[selector](#selector)</td><td>String или String[]</td><td>Обязательный параметр. Селектор DOM-элемента, который необходимо заснять.</td></tr>
<tr><td>[selector](#selector)</td><td>String или String[]</td><td>Необязательный параметр. Может быть пропущен. Селектор DOM-элемента, который необходимо заснять.</td></tr>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave a note right here that if omitted, the whole viewport will be screenshotted

@@ -159,9 +168,22 @@ it("should assert view", async ({ browser }) => {
});
```

**example-2.js**
**example-2.ts**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give this heading a human readable form. Like "Визуальная проверка всего вьюпорта" or something like that.

@Kabir-Ivan Kabir-Ivan force-pushed the add-assert-viewport-docs branch from 7c6c8d5 to c14840b Compare August 13, 2024 14:43
@Kabir-Ivan Kabir-Ivan merged commit ad008b1 into master Aug 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants