File tree Expand file tree Collapse file tree 6 files changed +12
-211
lines changed
zh-cn/develop/Tests/WebDriver Expand file tree Collapse file tree 6 files changed +12
-211
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ i18nReady: true
9
9
10
10
import CommandTabs from ' @components/CommandTabs.astro' ;
11
11
12
- :::note[ Example Application ]
12
+ :::note
13
13
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.
16
15
17
16
:::
18
17
@@ -200,7 +199,7 @@ tests!
200
199
With [ Selenium] and some hooking up to a test suite, we just enabled e2e testing without modifying our Tauri
201
200
application at all!
202
201
203
- [ example application setup ] : /develop/tests/webdriver/example /
202
+ [ prerequisites instructions ] : /develop/tests/webdriver/
204
203
[ selenium ] : https://selenium.dev/
205
204
[ finished example project ] : https://github.com/chippers/hello_tauri
206
205
[ mocha ] : https://mochajs.org/
Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ i18nReady: true
9
9
10
10
import CommandTabs from ' @components/CommandTabs.astro' ;
11
11
12
- :::note[ Example Application ]
12
+ :::note
13
13
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.
16
15
17
16
:::
18
17
@@ -216,7 +215,7 @@ We see the Spec Reporter tell us that all 3 tests from the `test/specs/example.e
216
215
Using the [ WebdriverIO] test suite, we just easily enabled e2e testing for our Tauri application from just a few lines
217
216
of configuration and a single command to run it! Even better, we didn't have to modify the application at all.
218
217
219
- [ example application setup ] : /develop/tests/webdriver/example /
218
+ [ prerequisites instructions ] : /develop/tests/webdriver/
220
219
[ webdriverio ] : https://webdriver.io/
221
220
[ finished example project ] : https://github.com/chippers/hello_tauri
222
221
[ mocha ] : https://mochajs.org/
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ can look at https://github.com/chippers/hello_tauri.
50
50
import { LinkCard , CardGrid } from ' @astrojs/starlight/components' ;
51
51
52
52
<CardGrid >
53
- <LinkCard title = " Setup" href = " /develop/tests/webdriver/example/" />
54
53
<LinkCard
55
54
title = " Selenium"
56
55
href = " /develop/tests/webdriver/example/selenium/"
Original file line number Diff line number Diff line change @@ -8,21 +8,21 @@ sidebar:
8
8
9
9
import CommandTabs from ' @components/CommandTabs.astro' ;
10
10
11
- :::note[ 示例应用程序 ]
11
+ :::note
12
12
13
- 本 [ Selenium ] [ ] 指南期望您已经完成了 [ 示例应用程序设置 ] [ ] 以便一步一步跟进 。 一般性资料可能仍然会有帮助。
13
+ Make sure to go through the [ prerequisites instructions ] to be able to follow this guide.
14
14
15
15
:::
16
16
17
- 此 WebDrive 测试示例将使用 [ Selenium] [ ] 和一个流行的 Node.js 测试套装。 您应该已经安装 node.js , 并且一起安装了 ` npm ` 或 ` yarn ` , [ 已完成的示例项目] [ ] 使用了 ` yarn ` .
17
+ 此 WebDriver 测试示例将使用 [ Selenium] [ ] 和一个流行的 Node.js 测试套装。 您应该已经安装 node.js , 并且一起安装了 ` npm ` 或 ` yarn ` , [ 已完成的示例项目] [ ] 使用了 ` yarn ` .
18
18
19
19
## 创建测试目录
20
20
21
21
让我们创建一个空目录用做测试项目。 在此示例项目中我们将使用嵌套目录,因为稍后还将使用其他框架,但通常您只需要使用一个框架。创建接下来我们需要使用的目录。 创建我们将要使用的目录 ` mkdir -p webdriver/selenium ` 。 指南接下来的部分我们假定您也在目录 ` webdriver/selenium ` 中完成。
22
22
23
23
## 初始化 Selenium 项目
24
24
25
- 我们将使用预设的 ` package.j son ` 来引导此测试套件,因为我们已经选择了特定的要使用的依赖项,并希望展示一个简单的工作解决方案。 此部分的底部有一个折叠起来的内容,其中有关如何从头开始设置的指南。
25
+ 我们将使用预设的 ` package.json ` 来引导此测试套件,因为我们已经选择了特定的要使用的依赖项,并希望展示一个简单的工作解决方案。 此部分的底部有一个折叠起来的内容,其中有关如何从头开始设置的指南。
26
26
27
27
` package.json ` :
28
28
@@ -186,7 +186,7 @@ tests!
186
186
With [ Selenium] and some hooking up to a test suite, we just enabled e2e testing without modifying our Tauri
187
187
application at all!
188
188
189
- [ 示例应用程序设置 ] : /develop/tests/webdriver/example /
189
+ [ prerequisites instructions ] : /develop/tests/webdriver/
190
190
[ Selenium ] : https://selenium.dev/
191
191
[ 已完成的示例项目 ] : https://github.com/chippers/hello_tauri
192
192
[ Mocha ] : https://mochajs.org/
Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ Make sure to grab the version of [Microsoft Edge Driver][] that matches your Win
33
33
34
34
## 应用示例
35
35
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.
37
37
38
38
如果您想要查看根据指南操作后完成的最小代码库,则可以 <a href = " https://github.com/chippers/hello_tauri" target = " _blank" >查看这里</a >。 该示例还附带了一个 CI 脚本,用于使用 GitHub 操作进行测试,但您可能仍然对 [ WebDriver CI] ( /zh-cn/develop/tests/webdriver/ci/ ) 指南感兴趣,因为它对概念进行了更多解释 。
39
39
40
40
import { LinkCard , CardGrid } from ' @astrojs/starlight/components' ;
41
41
42
42
<CardGrid >
43
- <LinkCard title = " Setup" href = " /zh-cn/develop/tests/webdriver/example/" />
44
43
<LinkCard
45
44
title = " Selenium"
46
45
href = " /zh-cn/develop/tests/webdriver/example/selenium/"
You can’t perform that action at this time.
0 commit comments