Skip to content

Commit baf2cbd

Browse files
authored
Merge pull request #153 from irasally/fix-cypress
サイプレスを英単語に修正
2 parents a448acc + 4be99ec commit baf2cbd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

intro-1/cypress.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ npx tsc --init --types cypress --lib dom,es6
2626
echo {} > cypress.json
2727
```
2828

29-
> ここでは特にサイプレスのために別々の`e2e`フォルダを作成するいくつかの理由があります
29+
> cypressのために別の`e2e`フォルダを作成するのには、いくつかの理由があります
3030
>
3131
> * 別のディレクトリや`e2e`を作成すると、`package.json`の依存関係を他のプロジェクトと簡単に分離することができます。これにより依存性の競合が少なくなります。
32-
> * テストフレームワークには、グローバルな名前空間を`describe` `it` `expect`などのもので汚染する慣習があります。グローバルな型定義の競合を避けるために、e2e `tsconfig.json``node_modules`をこの特別な`e2e`フォルダに保存することが最善です
32+
> * テストフレームワークには、グローバルな名前空間を`describe` `it` `expect`などのもので汚染する慣習があります。グローバルな型定義の競合を避けるために、e2eの `tsconfig.json``node_modules`をこの特別な`e2e`フォルダに保存することをおすすめします
3333
3434
`e2e/package.json`ファイルにいくつかのスクリプトを追加します:
3535

@@ -98,9 +98,9 @@ Cypressテストはコンパイル/パックされ、ブラウザで実行され
9898
たとえば、UIセレクタとテストの間でID値を共有して、CSSセレクタが壊れないようにすることができます。
9999

100100
```typescript
101-
import { Ids } from '../../../src/app/constants';
101+
import { Ids } from '../../../src/app/constants';
102102

103-
// Later
103+
// Later
104104
cy.get(`#${Ids.username}`)
105105
.type('john')
106106
```
@@ -110,7 +110,7 @@ cy.get(`#${Ids.username}`)
110110
さまざまなテストがページで行う必要があるすべてのインタラクションに対して便利なハンドルを提供するオブジェクトを作成することは、一般的なテストの慣例です。getterとメソッドでTypeScriptクラスを使用してページオブジェクトを作成できます。
111111

112112
```typescript
113-
import { Ids } from '../../../src/app/constants';
113+
import { Ids } from '../../../src/app/constants';
114114

115115
class LoginPage {
116116
visit() {
@@ -400,4 +400,3 @@ package.jsonの例:
400400
* Visual Testing: [https://docs.cypress.io/guides/tooling/visual-testing.html](https://docs.cypress.io/guides/tooling/visual-testing.html)
401401
* Optionally set a `baseUrl` in cypress.json to [prevent an initial reload that happens after first `visit`.](https://github.com/cypress-io/cypress/issues/2542)
402402
* Code coverage with cypress: [Webcast](https://www.youtube.com/watch?v=C8g5X4vCZJA)
403-

0 commit comments

Comments
 (0)