Skip to content

Commit ba76bf6

Browse files
committed
update readmes
1 parent 21670f0 commit ba76bf6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

05-testing/01-react/02-components/06-material-ui/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('CookiesDialog component specs', () => {
169169
- it('', () => {
170170
+ it('should display a button with text "Learn more about our cookies"', () => {
171171
// Arrange
172-
+ const props = {
172+
+ const props: React.ComponentProps<typeof CookiesDialog> = {
173173
+ onAgreeClick: () => {},
174174
+ };
175175

@@ -235,6 +235,9 @@ Should call onAgreeClick when it clicks on "Agree" button:
235235
+ const buttonElement = screen.getByRole('button', {
236236
+ name: /learn more about our cookies/i,
237237
+ });
238+
239+
+ expect(screen.queryByRole('dialog')).not.toBeInTheDocument();
240+
238241
+ await userEvent.click(buttonElement);
239242

240243
+ const agreeButtonElement = screen.getByRole('button', { name: /agree/i });

05-testing/01-react/04-ci/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ git commit -m "add project with tests"
2222
git push -u origin main
2323
```
2424

25-
Create new branch on repository `feature/add-ci-file` and add ci config [Github workflow](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow):
25+
Create new branch on repository `feature/add-ci-file` and add ci config [Github workflow](https://docs.github.com/en/actions/writing-workflows):
2626

2727
_./.github/workflows/ci.yml_
2828

0 commit comments

Comments
 (0)