import React from 'react'
import { render, screen } from '../utilities/test-utils'
import Timeline from './_timeline'
import TimelineItem from './_item'
import TimelineDateArea from './_date_area'
import TimelineNodeArea from './_node_area'
import TimelineDetailArea from './_detail_area'
import TitleDetail from '../pb_title_detail/_title_detail'
const testId = 'timeline'
const className = 'custom-class-name'
const TimelineDefault = (props) => (
<>
>
)
const TimelineWithChildren = (props) => (
<>
>
)
test('should pass data prop', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toBeInTheDocument()
})
test('should pass data prop using children', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toBeInTheDocument()
})
test('should pass className prop', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass(className)
})
test('should pass className prop with children', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass(className)
})
test('should pass aria prop', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveAttribute('aria-label', testId)
})
test('should pass id prop', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveProperty('id', testId)
})
test('should have horizontal orientation by default', () => {
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass('pb_timeline_kit__horizontal')
})
test('should pass vertical orientation', () => {
const props = { orientation: 'vertical' }
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass('pb_timeline_kit__vertical')
})
test('should pass showDate prop', () => {
const props = { showDate: true }
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass('pb_timeline_kit__horizontal__with_date')
})
test('should pass showDate prop with Children', () => {
const props = { showDate: true }
render()
const kit = screen.getByTestId(testId)
expect(kit).toHaveClass('pb_timeline_kit__horizontal__with_date')
})