Skip to content

Commit 164c0a1

Browse files
authored
docs: fix global hook plugin name (#96)
1 parent 8db2753 commit 164c0a1

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

docs/commands/expect/element-matchers.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ For example:
280280
```javascript
281281
await browser.url("https://testplane.io/");
282282
const elem = await browser.$(".container");
283-
await expect(elem).toHaveText("Fast, scalable and robust end-to-end web testing solution | Testplane");
283+
await expect(elem).toHaveText(
284+
"Fast, scalable and robust end-to-end web testing solution | Testplane",
285+
);
284286
await expect(elem).toHaveText([
285287
"Fast, scalable and robust end-to-end web testing solution | Testplane",
286288
"Get Started",

docs/plugins/testplane-global-hook.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# testplane-global-hook
1+
# @testplane/global-hook
22

33
## Overview {#overview}
44

5-
Use the [testplane-global-hook][testplane-global-hook] plugin to bring out the common logic from your tests into special handlers for `beforeEach` and `afterEach` hooks.
5+
Use the [@testplane/global-hook][testplane-global-hook] plugin to bring out the common logic from your tests into special handlers for `beforeEach` and `afterEach` hooks.
66

77
Often, before running the next Testplane test, you need to do some preliminary setup, for example:
88

@@ -19,7 +19,7 @@ In order not to repeat these actions in each test, you can describe them in the
1919
## Install {#install}
2020

2121
```bash
22-
npm install -D testplane-global-hook
22+
npm install -D @testplane/global-hook
2323
```
2424

2525
## Setup {#setup}
@@ -29,7 +29,7 @@ Add the plugin to the `plugins` section of the `testplane` config:
2929
```javascript
3030
module.exports = {
3131
plugins: {
32-
"testplane-global-hook": {
32+
"@testplane/global-hook": {
3333
beforeEach: async function ({ browser }) {
3434
await browser.deleteCookie(); // Say, we want to always clear cookies before running a test
3535
},

i18n/ru/docusaurus-plugin-content-docs/current/commands/expect/element-matchers.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ await expect(elem).toHaveId("elem");
280280
```javascript
281281
await browser.url("https://testplane.io/");
282282
const elem = await browser.$(".container");
283-
await expect(elem).toHaveText("Fast, scalable and robust end-to-end web testing solution | Testplane");
283+
await expect(elem).toHaveText(
284+
"Fast, scalable and robust end-to-end web testing solution | Testplane",
285+
);
284286
await expect(elem).toHaveText([
285287
"Fast, scalable and robust end-to-end web testing solution | Testplane",
286288
"Get Started",

i18n/ru/docusaurus-plugin-content-docs/current/plugins/testplane-global-hook.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# testplane-global-hook
1+
# @testplane/global-hook
22

33
## Обзор {#overview}
44

5-
Используйте плагин [testplane-global-hook][testplane-global-hook], чтобы вынести общую логику из своих тестов в специальные обработчки для `beforeEach` и `afterEach` хуков.
5+
Используйте плагин [@testplane/global-hook][testplane-global-hook], чтобы вынести общую логику из своих тестов в специальные обработчки для `beforeEach` и `afterEach` хуков.
66

77
Часто, перед тем как запустить очередной testplane-тест, нужно выполнить определенную подготовительную работу, например:
88

@@ -19,7 +19,7 @@
1919
## Установка {#install}
2020

2121
```bash
22-
npm install -D testplane-global-hook
22+
npm install -D @testplane/global-hook
2323
```
2424

2525
## Настройка {#setup}
@@ -29,7 +29,7 @@ npm install -D testplane-global-hook
2929
```javascript
3030
module.exports = {
3131
plugins: {
32-
"testplane-global-hook": {
32+
"@testplane/global-hook": {
3333
beforeEach: async function ({ browser }) {
3434
await browser.deleteCookie(); // Например, мы хотим всегда очищать cookies перед запуском теста
3535
},

0 commit comments

Comments
 (0)