Skip to content

Commit 77d950e

Browse files
authored
docs: Remove minimal tauri setup from webdriver examples (#3381)
1 parent 10d6505 commit 77d950e

File tree

6 files changed

+12
-211
lines changed

6 files changed

+12
-211
lines changed

src/content/docs/develop/Tests/WebDriver/Example/index.mdx

Lines changed: 0 additions & 195 deletions
This file was deleted.

src/content/docs/develop/Tests/WebDriver/Example/selenium.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ i18nReady: true
99

1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
:::note[Example Application]
12+
:::note
1313

14-
This [Selenium] guide expects you to have already gone through the [example Application setup] to follow
15-
step-by-step. The general information may still be helpful otherwise.
14+
Make sure to go through the [prerequisites instructions] to be able to follow this guide.
1615

1716
:::
1817

@@ -200,7 +199,7 @@ tests!
200199
With [Selenium] and some hooking up to a test suite, we just enabled e2e testing without modifying our Tauri
201200
application at all!
202201

203-
[example application setup]: /develop/tests/webdriver/example/
202+
[prerequisites instructions]: /develop/tests/webdriver/
204203
[selenium]: https://selenium.dev/
205204
[finished example project]: https://github.com/chippers/hello_tauri
206205
[mocha]: https://mochajs.org/

src/content/docs/develop/Tests/WebDriver/Example/webdriverio.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ i18nReady: true
99

1010
import CommandTabs from '@components/CommandTabs.astro';
1111

12-
:::note[Example Application]
12+
:::note
1313

14-
This [WebdriverIO] guide expects you to have already gone through the [example Application setup] to follow
15-
step-by-step. The general information may still be helpful otherwise.
14+
Make sure to go through the [prerequisites instructions] to be able to follow this guide.
1615

1716
:::
1817

@@ -216,7 +215,7 @@ We see the Spec Reporter tell us that all 3 tests from the `test/specs/example.e
216215
Using the [WebdriverIO] test suite, we just easily enabled e2e testing for our Tauri application from just a few lines
217216
of configuration and a single command to run it! Even better, we didn't have to modify the application at all.
218217

219-
[example application setup]: /develop/tests/webdriver/example/
218+
[prerequisites instructions]: /develop/tests/webdriver/
220219
[webdriverio]: https://webdriver.io/
221220
[finished example project]: https://github.com/chippers/hello_tauri
222221
[mocha]: https://mochajs.org/

src/content/docs/develop/Tests/WebDriver/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ can look at https://github.com/chippers/hello_tauri.
5050
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
5151

5252
<CardGrid>
53-
<LinkCard title="Setup" href="/develop/tests/webdriver/example/" />
5453
<LinkCard
5554
title="Selenium"
5655
href="/develop/tests/webdriver/example/selenium/"

src/content/docs/zh-cn/develop/Tests/WebDriver/Example/selenium.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ sidebar:
88

99
import CommandTabs from '@components/CommandTabs.astro';
1010

11-
:::note[示例应用程序]
11+
:::note
1212

13-
[Selenium][] 指南期望您已经完成了 [示例应用程序设置][] 以便一步一步跟进 。 一般性资料可能仍然会有帮助。
13+
Make sure to go through the [prerequisites instructions] to be able to follow this guide.
1414

1515
:::
1616

17-
WebDrive 测试示例将使用 [Selenium][] 和一个流行的 Node.js 测试套装。 您应该已经安装 node.js , 并且一起安装了 `npm``yarn`[已完成的示例项目][] 使用了 `yarn`.
17+
WebDriver 测试示例将使用 [Selenium][] 和一个流行的 Node.js 测试套装。 您应该已经安装 node.js , 并且一起安装了 `npm``yarn`[已完成的示例项目][] 使用了 `yarn`.
1818

1919
## 创建测试目录
2020

2121
让我们创建一个空目录用做测试项目。 在此示例项目中我们将使用嵌套目录,因为稍后还将使用其他框架,但通常您只需要使用一个框架。创建接下来我们需要使用的目录。 创建我们将要使用的目录 `mkdir -p webdriver/selenium` 。 指南接下来的部分我们假定您也在目录 `webdriver/selenium` 中完成。
2222

2323
## 初始化 Selenium 项目
2424

25-
我们将使用预设的 `package.j son` 来引导此测试套件,因为我们已经选择了特定的要使用的依赖项,并希望展示一个简单的工作解决方案。 此部分的底部有一个折叠起来的内容,其中有关如何从头开始设置的指南。
25+
我们将使用预设的 `package.json` 来引导此测试套件,因为我们已经选择了特定的要使用的依赖项,并希望展示一个简单的工作解决方案。 此部分的底部有一个折叠起来的内容,其中有关如何从头开始设置的指南。
2626

2727
`package.json`:
2828

@@ -186,7 +186,7 @@ tests!
186186
With [Selenium] and some hooking up to a test suite, we just enabled e2e testing without modifying our Tauri
187187
application at all!
188188

189-
[示例应用程序设置]: /develop/tests/webdriver/example/
189+
[prerequisites instructions]: /develop/tests/webdriver/
190190
[Selenium]: https://selenium.dev/
191191
[已完成的示例项目]: https://github.com/chippers/hello_tauri
192192
[Mocha]: https://mochajs.org/

src/content/docs/zh-cn/develop/Tests/WebDriver/index.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ Make sure to grab the version of [Microsoft Edge Driver][] that matches your Win
3333

3434
## 应用示例
3535

36-
本指南的 [下一部分](/zh-cn/develop/tests/webdriver/example/) 将逐步介绍如何创建包含 WebDriver 测试的最小示例应用程序。
36+
Below are step-by-step guides to show how to create a minimal example application that is tested with WebDriver.
3737

3838
如果您想要查看根据指南操作后完成的最小代码库,则可以 <a href="https://github.com/chippers/hello_tauri" target="_blank">查看这里</a>。 该示例还附带了一个 CI 脚本,用于使用 GitHub 操作进行测试,但您可能仍然对 [WebDriver CI](/zh-cn/develop/tests/webdriver/ci/) 指南感兴趣,因为它对概念进行了更多解释 。
3939

4040
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
4141

4242
<CardGrid>
43-
<LinkCard title="Setup" href="/zh-cn/develop/tests/webdriver/example/" />
4443
<LinkCard
4544
title="Selenium"
4645
href="/zh-cn/develop/tests/webdriver/example/selenium/"

0 commit comments

Comments
 (0)