test: update related tests
This commit is contained in:
@@ -9,9 +9,11 @@ exports[`NoCoursesView snapshot 1`] = `
|
||||
alt="No Courses view banner"
|
||||
src="icon/mock/path"
|
||||
/>
|
||||
<h1>
|
||||
<h3
|
||||
className="h1"
|
||||
>
|
||||
Looking for a new challenge?
|
||||
</h1>
|
||||
</h3>
|
||||
<p>
|
||||
Explore our courses to add them to your dashboard.
|
||||
</p>
|
||||
|
||||
@@ -84,10 +84,9 @@ describe('DashboardLayout', () => {
|
||||
|
||||
describe('not collapsed', () => {
|
||||
const testWidgetSpacing = () => {
|
||||
it('shows a blank (nbsp) h2 spacer component above widget sidebar', () => {
|
||||
it('shows not-collapsed class on widget sidebar', () => {
|
||||
const columns = el.instance.findByType(Col);
|
||||
// nonbreaking space equivalent
|
||||
expect(columns[1].findByType('h2')[0].children[0].el).toEqual('\xA0');
|
||||
expect(columns[1].props.className).toContain('not-collapsed');
|
||||
});
|
||||
};
|
||||
describe('sidebar showing', () => {
|
||||
|
||||
@@ -24,7 +24,12 @@ exports[`DashboardLayout collapsed sidebar not showing snapshot 1`] = `
|
||||
test-children
|
||||
</Col>
|
||||
<Col
|
||||
className="sidebar-column"
|
||||
className={
|
||||
[
|
||||
"sidebar-column",
|
||||
false,
|
||||
]
|
||||
}
|
||||
lg={
|
||||
{
|
||||
"offset": 0,
|
||||
@@ -68,7 +73,12 @@ exports[`DashboardLayout collapsed sidebar showing snapshot 1`] = `
|
||||
test-children
|
||||
</Col>
|
||||
<Col
|
||||
className="sidebar-column"
|
||||
className={
|
||||
[
|
||||
"sidebar-column",
|
||||
false,
|
||||
]
|
||||
}
|
||||
lg={
|
||||
{
|
||||
"offset": 0,
|
||||
@@ -112,7 +122,12 @@ exports[`DashboardLayout not collapsed sidebar not showing snapshot 1`] = `
|
||||
test-children
|
||||
</Col>
|
||||
<Col
|
||||
className="sidebar-column"
|
||||
className={
|
||||
[
|
||||
"sidebar-column",
|
||||
"not-collapsed",
|
||||
]
|
||||
}
|
||||
lg={
|
||||
{
|
||||
"offset": 0,
|
||||
@@ -126,11 +141,6 @@ exports[`DashboardLayout not collapsed sidebar not showing snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
>
|
||||
<h2
|
||||
className="course-list-title"
|
||||
>
|
||||
|
||||
</h2>
|
||||
<WidgetSidebarSlot />
|
||||
</Col>
|
||||
</Row>
|
||||
@@ -161,7 +171,12 @@ exports[`DashboardLayout not collapsed sidebar showing snapshot 1`] = `
|
||||
test-children
|
||||
</Col>
|
||||
<Col
|
||||
className="sidebar-column"
|
||||
className={
|
||||
[
|
||||
"sidebar-column",
|
||||
"not-collapsed",
|
||||
]
|
||||
}
|
||||
lg={
|
||||
{
|
||||
"offset": 0,
|
||||
@@ -175,11 +190,6 @@ exports[`DashboardLayout not collapsed sidebar showing snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
>
|
||||
<h2
|
||||
className="course-list-title"
|
||||
>
|
||||
|
||||
</h2>
|
||||
<WidgetSidebarSlot />
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
@@ -55,11 +55,11 @@ exports[`ConfirmEmailBanner snapshot Show on unverified 1`] = `
|
||||
onClose={[MockFunction closeConfirmModal]}
|
||||
title=""
|
||||
>
|
||||
<h1
|
||||
className="text-center p-3"
|
||||
<h4
|
||||
className="text-center p-3 h1"
|
||||
>
|
||||
Confirm your email
|
||||
</h1>
|
||||
</h4>
|
||||
<p
|
||||
className="text-center"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user