Skip to content

Commit 81ed95b

Browse files
authored
Merge branch 'master' into fix-radio-checkbox
2 parents 0c63bf7 + 9f5e8e4 commit 81ed95b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,5 @@ MIT
122122
[![ankitsinghaniyaz](https://avatars0.githubusercontent.com/u/11331989?v=3&s=200)](https://github.com/ankitsinghaniyaz)
123123
[![lindgr3n](https://avatars0.githubusercontent.com/u/24882614?v=3&s=200)](https://github.com/lindgr3n)
124124
[![kentcdodds](https://avatars0.githubusercontent.com/u/1500684?v=3&s=200)](https://github.com/kentcdodds)
125+
[![brennj](https://avatars2.githubusercontent.com/u/29227924?v=3&s=200)](https://github.com/brennj)
126+
[![makeupsomething](https://avatars2.githubusercontent.com/u/7676733?v=3&s=200)](https://github.com/makeupsomething)

tests/__tests__/disappearance.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { render, waitForElementToBeRemoved } from '@testing-library/vue'
22
import Disappearance from './components/Disappearance'
33
import '@testing-library/jest-dom/extend-expect'
44

5-
test('it waits for the data to be loaded', async () => {
5+
test('waits for the data to be loaded', async () => {
66
const { getByText, queryByText, queryByTestId } = render(Disappearance)
77

88
// Assert initial state
99
getByText('Loading...')
1010
expect(queryByText(/Loaded this message/)).not.toBeInTheDocument()
1111

12-
// Line reads as follows "Wait until element with test 'Loading...' is gone."
12+
// Line reads as follows: "Wait until element with text 'Loading...' is gone."
1313
await waitForElementToBeRemoved(() => queryByText('Loading...'))
1414
// It is equivalent to:
1515
//
@@ -19,8 +19,7 @@ test('it waits for the data to be loaded', async () => {
1919
//
2020
// `wait()` waits until the callback function passes or times out.
2121

22-
// After 'Loading...' element is gone, we can assert that fetched data is
23-
// rendered.
22+
// After 'Loading...' is gone, we can assert that fetched data is rendered.
2423
expect(queryByTestId('message')).toHaveTextContent(/Hello World/)
2524

2625
// Read more about async utilities:

0 commit comments

Comments
 (0)