Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/pages/landing/ResourceShowcase.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ function renderShowcase() {
}

describe('Landing resource showcase', () => {
test('keeps the three available resources and six planned resources in display order', () => {
test('shows only the three available resources in display order', () => {
renderShowcase()
const cards = screen.getAllByRole('article')
expect(cards.map((card) => within(card).getByRole('heading', { level: 3 }).textContent))
.toEqual(['가상머신', 'LLM API 키', '도메인'])

const planned = screen.getByRole('list', { name: '준비 중인 리소스' })
const items = within(planned).getAllByRole('listitem')
expect(items.map((item) => item.textContent?.replace('준비 중', '').trim()))
.toEqual(['컨테이너', '컨테이너 레지스트리', '데이터베이스', '오브젝트 스토리지', 'GPU', '단축 링크'])
expect(within(planned).getAllByText('준비 중')).toHaveLength(6)
expect(screen.queryByRole('list', { name: '준비 중인 리소스' })).not.toBeInTheDocument()
})

test('links each available resource to its guide in the current browsing context', () => {
Expand Down
12 changes: 0 additions & 12 deletions src/pages/landing/ResourceShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { icons, resourceTypes } from './landing-data'
import { TransitionLink } from '../../components/TransitionLink'

const live = resourceTypes.filter((resource) => resource.status === 'live')
const planned = resourceTypes.filter((resource) => resource.status === 'planned')

export function ResourceShowcase() {
return (
Expand Down Expand Up @@ -61,17 +60,6 @@ export function ResourceShowcase() {
))}
</div>

<div className="mt-9 border-t border-white/10 pt-6">
<h3 className="text-sm font-semibold text-neutral-300">준비 중인 리소스</h3>
<ul aria-label="준비 중인 리소스" className="mt-4 flex flex-wrap gap-2">
{planned.map((resource) => (
<li key={resource.title} className="flex items-center gap-2 rounded-lg border border-white/10 px-3 py-2 text-sm text-neutral-300">
<span>{resource.title}</span>
<span className="text-xs text-neutral-400">준비 중</span>
</li>
))}
</ul>
</div>
</div>
</section>
)
Expand Down
Loading