You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 05-testing/03-e2e/02-selectors/README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ We will start from `01-config`.
12
12
npm install
13
13
```
14
14
15
-
-Let's add some specs to login page:
15
+
Let's add some specs to login page:
16
16
17
-
### ./cypress/e2e/login.spec.ts
17
+
_./cypress/e2e/login.spec.ts_
18
18
19
19
```diff
20
20
...
@@ -35,9 +35,9 @@ npm install
35
35
36
36
```
37
37
38
-
-Notice that we are using selectors like css selectors, the first refactor that we could think is assign selectors to a variable like:
38
+
Notice that we are using selectors like css selectors, the first refactor that we could think is assign selectors to a variable like:
39
39
40
-
### ./cypress/e2e/login.spec.ts
40
+
_./cypress/e2e/login.spec.ts_
41
41
42
42
```diff
43
43
...
@@ -66,9 +66,9 @@ npm install
66
66
67
67
```
68
68
69
-
-This doesn't work, because `cypress commands` are enqueued and run it in async way. Let's refactor it:
69
+
This doesn't work, because `cypress commands` are enqueued and run it in async way. Let's refactor it:
70
70
71
-
### ./cypress/e2e/login.spec.ts
71
+
_./cypress/e2e/login.spec.ts_
72
72
73
73
```diff
74
74
...
@@ -102,15 +102,15 @@ npm install
102
102
103
103
> More info [here](https://docs.cypress.io/guides/core-concepts/variables-and-aliases.html#Return-Values)
104
104
105
-
-The [get](https://docs.cypress.io/api/commands/get.html) return DOM element by selector or alias. But we want to write maintainable tests with same syntax like unit tests. We can use [cypress-testing-library](https://github.com/testing-library/cypress-testing-library):
105
+
The [get](https://docs.cypress.io/api/commands/get.html) return DOM element by selector or alias. But we want to write maintainable tests with same syntax like unit tests. We can use [cypress-testing-library](https://github.com/testing-library/cypress-testing-library):
0 commit comments