File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed
Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { render , screen } from '@testing-library/react'
3+ import AboutPage from './AboutPage'
4+
5+ test ( 'renders AboutPage' , ( ) => {
6+ render ( < AboutPage /> )
7+
8+ const docs = screen . getByText ( / Д о к у м е н т а ц и я / i)
9+ const github = screen . getByText ( / G i t H u b / i)
10+
11+ expect ( docs ) . toBeInTheDocument ( )
12+ expect ( github ) . toBeInTheDocument ( )
13+ } )
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { render , screen } from '@testing-library/react'
3+ import AuthPage from './AuthPage'
4+
5+ test ( 'renders AuthPage' , ( ) => {
6+ render ( < AuthPage /> )
7+ const email = screen . getByText ( / E m a i l / i)
8+ const password = screen . getByText ( / П а р о л ь / i)
9+ const log = screen . getByText ( / В о й т и / i)
10+ const reg = screen . getByText ( / Р е г и с т р а ц и я / i)
11+
12+ expect ( email ) . toBeInTheDocument ( )
13+ expect ( password ) . toBeInTheDocument ( )
14+ expect ( log ) . toBeInTheDocument ( )
15+ expect ( reg ) . toBeInTheDocument ( )
16+ } )
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { render , screen } from '@testing-library/react'
3+ import NotesPage from './NotesPage'
4+
5+ test ( 'renders NotesPage' , ( ) => {
6+ render ( < NotesPage /> )
7+ const addnote = screen . getByPlaceholderText ( / N o t e n a m e / i)
8+ expect ( addnote ) . toBeInTheDocument ( )
9+ } )
You can’t perform that action at this time.
0 commit comments