Skip to content

Commit 45771e8

Browse files
committed
chore: fix the content but remove later
1 parent 09359e5 commit 45771e8

3 files changed

Lines changed: 18 additions & 15 deletions

File tree

src/content/docs/es/recipes/making-toolbar-apps.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Las aplicaciones de barra de herramientas para desarrollo sólo pueden ser agreg
8585
:::note[Usando rutas relativas en el entrypoint]
8686
El `entrypoint` es la ruta al archivo de tu aplicación de barra de herramientas, **relativo a la raíz de tu proyecto de Astro existente**, no al directorio de integración (`my-toolbar-app/`) por sí mismo.
8787

88+
Para usar rutas relativas para entrypoints, obtén la ruta al archivo actual usando `import.meta.url` y resuelve la ruta al entrypoint desde allí.
89+
:::
90+
8891
3. Para usar esta integración en tu proyecto, agrégala al array `integrations` en tu archivo `astro.config.mjs`.
8992

9093
```js title="astro.config.mjs" ins={2,5}

src/content/docs/ja/guides/testing.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -358,21 +358,21 @@ Nightwatch.jsは、すべての主要なブラウザとそのモバイル版、
358358
</html>
359359
```
360360

361-
2. 新しいフォルダ`src/test/`を作成し、以下のテストファイルを追加します:
362-
363-
```js title="src/test/index.js"
364-
describe('Astro testing with Nightwatch', function () {
365-
before(browser => browser.navigateTo('http://localhost:4321/'));
366-
367-
it("check that the title is correct", function (browser) {
368-
browser.assert.titleEquals('Astro is awesome!')
369-
});
370-
371-
after(browser => browser.end());
372-
});
373-
```
361+
2. 新しいフォルダ`src/test/`を作成し、以下のテストファイルを追加します:
374362

375-
:::tip[`baseUrl`を設定する]
363+
```js title="src/test/index.js"
364+
describe('Astro testing with Nightwatch', function () {
365+
before(browser => browser.navigateTo('http://localhost:4321/'));
366+
367+
it("check that the title is correct", function (browser) {
368+
browser.assert.titleEquals('Astro is awesome!')
369+
});
370+
371+
after(browser => browser.end());
372+
});
373+
```
374+
375+
:::tip[baseUrlを設定する]
376376
`nightwatch.conf.js`設定ファイルで[`"baseURL": "http://localhost:4321"`](https://nightwatchjs.org/guide/reference/settings.html#setting-the-baseurl-property)を設定すると、より便利なURLとして`browser.navigateTo("http://localhost:4321/")`の代わりに`browser.navigateTo("/")`を使用できます。
377377
:::
378378
</Steps>

src/content/docs/ru/guides/testing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export default defineConfig({
262262
```
263263

264264
:::tip[Установите `baseUrl`]
265-
Вы можете установить [``baseUrl``: "http://localhost:4321"`](https://docs.cypress.io/guides/end-to-end-testing/testing-your-app#Step-3-Configure-Cypress) в файле конфигурации `cypress.config.js`, чтобы использовать `cy.visit("/")` вместо `cy.visit("http://localhost:4321/")` для более удобного URL.
265+
Вы можете установить [`"baseUrl": "http://localhost:4321"`](https://docs.cypress.io/guides/end-to-end-testing/testing-your-app#Step-3-Configure-Cypress) в файле конфигурации `cypress.config.js`, чтобы использовать `cy.visit("/")` вместо `cy.visit("http://localhost:4321/")` для более удобного URL.
266266
:::
267267
</Steps>
268268

0 commit comments

Comments
 (0)