Skip to content

Commit cf8bdcd

Browse files
fix(KUI-1434): test cases are updated
1 parent 2e53c7c commit cf8bdcd

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

public/js/app/pages/__tests__/AboutCourseMemoEN.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ describe('User language: English. Component <AboutCourseMemo> show all memos: pd
195195

196196
test('renders all links and check its number and labels', () => {
197197
const links = getAllByRole('link')
198-
expect(links.length).toBe(13)
198+
expect(links.length).toBe(14)
199199
const expectedlinks = [
200200
'Course and programme directory',
201201
'Before course selection',
202+
'Prepare and take course',
202203
'Course memo',
203204
'Course memo Autumn 2019-1',
204205
'Course memo Autumn 2020-1',

public/js/app/pages/__tests__/AboutCourseMemoSV.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ describe('User language: Swedish. Component <AboutCourseMemo> show all memos: pd
192192

193193
test('renders all links and check its number and labels', done => {
194194
const links = getAllByRole('link')
195-
expect(links.length).toBe(14)
195+
expect(links.length).toBe(15)
196196
const expectedlinks = [
197197
'Kurs- och programkatalogen',
198198
'Inför kursval',
199+
'Förbereda och gå kurs',
199200
'Kurs-PM',
200201
'Course memo Autumn 2019-1',
201202
'Course memo Autumn 2020-1',

public/js/app/pages/__tests__/__snapshots__/CourseMemo.test.js.snap

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,16 @@ exports[`Page CourseMemo renders a side menu and a page structure 1`] = `
9898
Before course selection
9999
</a>
100100
</li>
101-
<li
102-
class="kth-local-navigation__submenu"
103-
>
104-
<h3>
101+
<li>
102+
<a
103+
class="expandable expanded"
104+
href="/kurs-pm/TEST121/om-kurs-pm"
105+
>
105106
Prepare and take course
106-
</h3>
107-
<ul>
107+
</a>
108+
<ul
109+
class="kth-local-navigation__submenu"
110+
>
108111
<li>
109112
<a
110113
href="/kurs-pm/TEST121/om-kurs-pm"
@@ -197,13 +200,16 @@ exports[`Page CourseMemo renders a side menu and a page structure 1`] = `
197200
Before course selection
198201
</a>
199202
</li>
200-
<li
201-
class="kth-local-navigation__submenu"
202-
>
203-
<h3>
203+
<li>
204+
<a
205+
class="expandable expanded"
206+
href="/kurs-pm/TEST121/om-kurs-pm"
207+
>
204208
Prepare and take course
205-
</h3>
206-
<ul>
209+
</a>
210+
<ul
211+
class="kth-local-navigation__submenu"
212+
>
207213
<li>
208214
<a
209215
href="/kurs-pm/TEST121/om-kurs-pm"

0 commit comments

Comments
 (0)