Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import TranslationNote from '@components/i18n/TranslationNote.astro';

## テスト

[WebdriverIO のテスト・スイート](/ja/develop/debug/tests/webdriver/example/webdriverio/#設定) とは異なり、Selenium にはテスト・スイートが付属しておらず、テスト・スイートの構築は開発者に任されています。
[WebdriverIO のテスト・スイート](/ja/develop/tests/webdriver/example/webdriverio/#設定) とは異なり、Selenium にはテスト・スイートが付属しておらず、テスト・スイートの構築は開発者に任されています。
ここでは [Mocha] を選択しました。Mocha は WebDrivers とは関係のない、比較的中立的なライブラリなので、スクリプトのすべてを正しい順序で設定するには少しばかり作業が必要になります。
[Mocha] はデフォルトで `test/test.js` にテスト・ファイルを用意する必要があります。では、早速作成してみましょう。

Expand Down Expand Up @@ -167,7 +167,7 @@ describe('Hello Tauri', () => {

もし「JS テスト・フレームワーク」に慣れ親しんでいる方であれば、`describe`、`it`、`expect` などは見覚えがあるはずです。また、mocha の設定(セットアップ)と解除(ティアダウン)を行なうための、やや複雑な`before()`と`after()`コールバックも用意されています。
テスト本体ではない行には、セットアップ・コードとティアダウン・コードを説明するコメントの記載があります。
[WebdriverIO のテスト仕様](/ja/develop/debug/tests/webdriver/example/webdriverio/#テスト仕様)の「Spec ファイル」に慣れている場合は、WebDriver 関連の項目をさらにいくつか設定する必要があるため、テスト以外のコードがより多くなっていることに気付くでしょう。
[WebdriverIO のテスト仕様](/ja/develop/tests/webdriver/example/webdriverio/#テスト仕様)の「Spec ファイル」に慣れている場合は、WebDriver 関連の項目をさらにいくつか設定する必要があるため、テスト以外のコードがより多くなっていることに気付くでしょう。

## テスト・スイートの実行

Expand Down Expand Up @@ -204,7 +204,7 @@ Done in 0.93s.

</TranslationNote>

[モデル・アプリケーションの基本設定]: /ja/develop/debug/tests/webdriver/example/
[モデル・アプリケーションの基本設定]: /ja/develop/tests/webdriver/example/
[selenium]: https://selenium.dev/ja/
[完成版モデル・プロジェクト]: https://github.com/chippers/hello_tauri
[mocha]: https://mochajs.org/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Spec Reporter 部には、`test/specs/example.e2e.js` ファイルからの三

[WebdriverIO] テスト・スイートを使用することで、わずか数行の設定と一つのコマンド実行だけで、Tauri アプリケーションの e2e テストを簡単に実行できました! さらに素晴らしいのは、アプリケーションを一切修正する必要がなかったということです。

[モデル・アプリケーションの基本設定]: /ja/develop/debug/tests/webdriver/example/
[モデル・アプリケーションの基本設定]: /ja/develop/tests/webdriver/example/
[webdriverio]: https://webdriver.io/ja/
[完成版モデル・アプリケーション]: https://github.com/chippers/hello_tauri
[mocha]: https://mochajs.org/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
working-directory: webdriver/webdriverio
```

[予め作成したテスト事例]: /ja/develop/debug/tests/webdriver/example/webdriverio/
[予め作成したテスト事例]: /ja/develop/tests/webdriver/example/webdriverio/
[webdriver]: https://www.w3.org/TR/webdriver/
[`tauri-driver`]: https://crates.io/crates/tauri-driver
[webdriverio]: https://webdriver.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
<CardGrid>
<LinkCard
title="モデル・アプリケーションの基本設定"
href="/ja/develop/debug/tests/webdriver/example/"
href="/ja/develop/tests/webdriver/example/"
/>
<LinkCard
title="Selenium を利用する"
href="/ja/develop/debug/tests/webdriver/example/selenium/"
href="/ja/develop/tests/webdriver/example/selenium/"
/>
<LinkCard
title="WebdriverIO を利用する"
href="/ja/develop/debug/tests/webdriver/example/webdriverio/"
href="/ja/develop/tests/webdriver/example/webdriverio/"
/>
</CardGrid>

Expand All @@ -80,7 +80,7 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';

<LinkCard
title="継続的インテグレーション(CI)"
href="/ja/develop/debug/tests/webdriver/ci/"
href="/ja/develop/tests/webdriver/ci/"
/>

<TranslationNote lang="ja">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Deployment"(継続的統合/継続的展開)の略。ランナーは、CI/
</TranslationNote>

[Mock Tauri APIs]: /ja/develop/tests/mocking/
[WebDriver]: /ja/develop/debug/tests/webdriver/
[WebDriver]: /ja/develop/tests/webdriver/
[tauri-action]: https://github.com/tauri-apps/tauri-action

<div style="text-align: right">
Expand Down