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() {
+ 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 + + +