From cf8bdcd63ed33ce21b5a0eb160a8cda4b6b5f9cc Mon Sep 17 00:00:00 2001 From: amirhossein-haerian Date: Wed, 4 Sep 2024 16:28:18 +0200 Subject: [PATCH] fix(KUI-1434): test cases are updated --- .../pages/__tests__/AboutCourseMemoEN.test.js | 3 +- .../pages/__tests__/AboutCourseMemoSV.test.js | 3 +- .../__snapshots__/CourseMemo.test.js.snap | 30 +++++++++++-------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/public/js/app/pages/__tests__/AboutCourseMemoEN.test.js b/public/js/app/pages/__tests__/AboutCourseMemoEN.test.js index 3ff0857..d42cff3 100644 --- a/public/js/app/pages/__tests__/AboutCourseMemoEN.test.js +++ b/public/js/app/pages/__tests__/AboutCourseMemoEN.test.js @@ -195,10 +195,11 @@ describe('User language: English. Component show all memos: pd test('renders all links and check its number and labels', () => { const links = getAllByRole('link') - expect(links.length).toBe(13) + expect(links.length).toBe(14) const expectedlinks = [ 'Course and programme directory', 'Before course selection', + 'Prepare and take course', 'Course memo', 'Course memo Autumn 2019-1', 'Course memo Autumn 2020-1', diff --git a/public/js/app/pages/__tests__/AboutCourseMemoSV.test.js b/public/js/app/pages/__tests__/AboutCourseMemoSV.test.js index 9f9e368..4325c43 100644 --- a/public/js/app/pages/__tests__/AboutCourseMemoSV.test.js +++ b/public/js/app/pages/__tests__/AboutCourseMemoSV.test.js @@ -192,10 +192,11 @@ describe('User language: Swedish. Component show all memos: pd test('renders all links and check its number and labels', done => { const links = getAllByRole('link') - expect(links.length).toBe(14) + expect(links.length).toBe(15) const expectedlinks = [ 'Kurs- och programkatalogen', 'Inför kursval', + 'Förbereda och gå kurs', 'Kurs-PM', 'Course memo Autumn 2019-1', 'Course memo Autumn 2020-1', diff --git a/public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap b/public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap index 3920b15..87b0a10 100644 --- a/public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap +++ b/public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap @@ -98,13 +98,16 @@ exports[`Page CourseMemo renders a side menu and a page structure 1`] = ` Before course selection -
  • -

    +
  • +