Skip to content

Commit

Permalink
fix(KUI-1434): test cases are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhossein-haerian committed Sep 5, 2024
1 parent 2e53c7c commit cf8bdcd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
3 changes: 2 additions & 1 deletion public/js/app/pages/__tests__/AboutCourseMemoEN.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,11 @@ describe('User language: English. Component <AboutCourseMemo> 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',
Expand Down
3 changes: 2 additions & 1 deletion public/js/app/pages/__tests__/AboutCourseMemoSV.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,11 @@ describe('User language: Swedish. Component <AboutCourseMemo> 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',
Expand Down
30 changes: 18 additions & 12 deletions public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,16 @@ exports[`Page CourseMemo renders a side menu and a page structure 1`] = `
Before course selection
</a>
</li>
<li
class="kth-local-navigation__submenu"
>
<h3>
<li>
<a
class="expandable expanded"
href="/kurs-pm/TEST121/om-kurs-pm"
>
Prepare and take course
</h3>
<ul>
</a>
<ul
class="kth-local-navigation__submenu"
>
<li>
<a
href="/kurs-pm/TEST121/om-kurs-pm"
Expand Down Expand Up @@ -197,13 +200,16 @@ exports[`Page CourseMemo renders a side menu and a page structure 1`] = `
Before course selection
</a>
</li>
<li
class="kth-local-navigation__submenu"
>
<h3>
<li>
<a
class="expandable expanded"
href="/kurs-pm/TEST121/om-kurs-pm"
>
Prepare and take course
</h3>
<ul>
</a>
<ul
class="kth-local-navigation__submenu"
>
<li>
<a
href="/kurs-pm/TEST121/om-kurs-pm"
Expand Down

0 comments on commit cf8bdcd

Please sign in to comment.