Skip to content

Commit 9aca6a1

Browse files
committed
Translate Section 3.9
1 parent 90aa6a1 commit 9aca6a1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme-zh-TW.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,21 +1314,21 @@ beforeEach(setUser => () {
13141314

13151315
<br/>
13161316

1317-
## ⚪ ️ 3.9 Have one E2E smoke test that just travels across the site map
1317+
## ⚪ ️ 3.9 寫一個走過整個網站的 E2E 冒煙測試
13181318

1319-
:white_check_mark: **Do:** For production monitoring and development-time sanity check, run a single E2E test that visits all/most of the site pages and ensures no one breaks. This type of test brings a great return on investment as it's very easy to write and maintain, but it can detect any kind of failure including functional, network and deployment issues. Other styles of smoke and sanity checking are not as reliable and exhaustive - some ops teams just ping the home page (production) or developers who run many integration tests which don't discover packaging and browser issues. Goes without saying that the smoke test doesn't replace functional tests rather just aim to serve as a quick smoke detector
1319+
:white_check_mark: **建議:** 為了 production 環境的監控及開發時期的完整性檢查,執行一個 E2E 測試,讓這個測試走訪過所有或大多數的網站頁面,並確保那些頁面沒有損毀。這類型的測試投資報酬率很高,因為他很容易去撰寫及維護,卻可以檢測出各種類型的故障,包括功能性、網路或佈屬的問題。其他類型的冒煙測試或完整性檢查並沒有那麼可靠及詳盡 - 有些 ops 團隊只是 ping 網站首頁 (在production環境),或開發人員執行了一些整合測試,卻沒發現到打包或瀏覽器的問題。毫無疑問的,冒煙測試並不會取代功能測試,而只是作為一個快速的煙霧偵測器。
13201320

13211321
<br/>
13221322

1323-
**Otherwise:** Everything might seem perfect, all tests pass, production health-check is also positive but the Payment component had some packaging issue and only the /Payment route is not rendering
1323+
**否則:** 一切看似很完美,所有的測試都通過了,在 production 環境的健康狀態檢查也是 ok 的,但 Payment 這個組件有一些打包的問題,導致 /Paymout 這個路徑沒有被渲染。
13241324

13251325
<br/>
13261326

1327-
<details><summary>✏ <b>Code Examples</b></summary>
1327+
<details><summary>✏ <b>程式範例</b></summary>
13281328

13291329
<br/>
13301330

1331-
### :clap: Doing It Right Example: Smoke travelling across all pages
1331+
### :clap: 正例:一個跑過所有頁面的冒煙測試
13321332

13331333
![](https://img.shields.io/badge/🔨%20Example%20using%20Cypress-blue.svg "Using Cypress to illustrate the idea")
13341334

@@ -1338,9 +1338,9 @@ it("When doing smoke testing over all page, should load them all successfully",
13381338
// using any E2E suite
13391339
cy.visit("https://mysite.com/home");
13401340
cy.contains("Home");
1341-
cy.contains("https://mysite.com/Login");
1341+
cy.visit("https://mysite.com/Login");
13421342
cy.contains("Login");
1343-
cy.contains("https://mysite.com/About");
1343+
cy.visit("https://mysite.com/About");
13441344
cy.contains("About");
13451345
});
13461346
```

0 commit comments

Comments
 (0)