Skip to content

Commit 51bd9a1

Browse files
committed
Fix trailing brackets and indentation errors in Finnish material part 5d
1 parent 03fec05 commit 51bd9a1

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/content/5/fi/osa5d.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ describe('Note app', () => {
632632
})
633633

634634
// ...
635-
)}
635+
})
636636
```
637637

638638
Testi siis varmistaa metodin [page.getByText](https://playwright.dev/docs/api/class-page#page-get-by-text) avulla, että sovellus tulostaa virheilmoituksen.
@@ -657,7 +657,7 @@ Voisimmekin tarkentaa testiä varmistamaan, että virheilmoitus tulostuu nimenom
657657

658658

659659
```js
660-
test('login fails with wrong password', async ({ page }) => {
660+
test('login fails with wrong password', async ({ page }) => {
661661
// ...
662662

663663
const errorDiv = page.locator('.error')
@@ -670,13 +670,13 @@ Testi siis etsii metodilla [page.locator](https://playwright.dev/docs/api/class-
670670
Ekspekaatiolla [toHaveCSS](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-css) on mahdollista testata sovelluksen CSS-tyylejä. Voimme esim. varmistaa, että virheilmoituksen väri on punainen, ja että sen ympärillä on border:
671671

672672
```js
673-
test('login fails with wrong password', async ({ page }) => {
673+
test('login fails with wrong password', async ({ page }) => {
674674
// ...
675675

676-
const errorDiv = page.locator('.error')
677-
await expect(errorDiv).toContainText('wrong credentials')
678-
await expect(errorDiv).toHaveCSS('border-style', 'solid')
679-
await expect(errorDiv).toHaveCSS('color', 'rgb(255, 0, 0)')
676+
const errorDiv = page.locator('.error')
677+
await expect(errorDiv).toContainText('wrong credentials')
678+
await expect(errorDiv).toHaveCSS('border-style', 'solid')
679+
await expect(errorDiv).toHaveCSS('color', 'rgb(255, 0, 0)')
680680
})
681681
```
682682

@@ -714,7 +714,7 @@ describe(() => {
714714
// this test is skipped...
715715
test('user can login with correct credentials', async ({ page }) => {
716716
// ...
717-
}
717+
})
718718

719719
// ...
720720
})
@@ -811,7 +811,8 @@ describe('Note app', () => {
811811
await loginWith(page, 'mluukkai', 'salainen') // highlight-line
812812
})
813813

814-
// ...
814+
// ...
815+
})
815816
})
816817
```
817818

0 commit comments

Comments
 (0)