From e5405c76f6449f836ad70dabc0bb7c1a9157f4ee Mon Sep 17 00:00:00 2001 From: Daniel Whitney Date: Sun, 30 Jun 2024 10:09:19 -0400 Subject: [PATCH 1/5] chore: add text and link --- src/App.test.tsx | 6 ++++++ src/App.tsx | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/App.test.tsx b/src/App.test.tsx index fa0ee75..c61e8e7 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -25,6 +25,12 @@ test('home page counter', async () => { expect(screen.getByText(/count is 3/i)).not.toBeNull() }) +test('should have a card with a link to a LinkedIn post', () => { + + const link = screen.getByText(/LinkedIn Post about this/i) + expect(link).not.toBeNull() +}) + test.each(links)('should have a link to %s', (linkText) => { const link = screen.getByAltText(linkText) diff --git a/src/App.tsx b/src/App.tsx index 6db7459..0b8eff8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,6 +17,16 @@ function App() {

Vite + React

+
+

+ This is an example of a change in code that can be validated in a testing framework in a CI pipeline +

+ + + LinkedIn Post about this + + +