Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
961695a6
Commit
961695a6
authored
Feb 06, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved dashboard page test
parent
a4841a72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
public/app/features/dashboard/containers/DashboardPage.test.tsx
+4
-5
public/app/features/dashboard/containers/__snapshots__/DashboardPage.test.tsx.snap
+2
-2
No files found.
public/app/features/dashboard/containers/DashboardPage.test.tsx
View file @
961695a6
...
...
@@ -89,7 +89,7 @@ describe('DashboardPage', () => {
ctx
.
mount
();
});
it
(
'
s
hould render nothing'
,
()
=>
{
it
(
'
S
hould render nothing'
,
()
=>
{
expect
(
ctx
.
wrapper
).
toMatchSnapshot
();
});
});
...
...
@@ -103,7 +103,7 @@ describe('DashboardPage', () => {
});
});
it
(
'
s
hould render slow init state'
,
()
=>
{
it
(
'
S
hould render slow init state'
,
()
=>
{
expect
(
ctx
.
wrapper
).
toMatchSnapshot
();
});
});
...
...
@@ -123,7 +123,7 @@ describe('DashboardPage', () => {
});
});
dashboardPageScenario
(
"
where
user goes into panel edit"
,
(
ctx
)
=>
{
dashboardPageScenario
(
"
When
user goes into panel edit"
,
(
ctx
)
=>
{
ctx
.
setup
(()
=>
{
ctx
.
mount
();
ctx
.
setDashboardProp
();
...
...
@@ -143,11 +143,10 @@ describe('DashboardPage', () => {
const
state
=
ctx
.
wrapper
.
state
();
expect
(
state
.
isEditing
).
toBe
(
true
);
expect
(
state
.
isFullscreen
).
toBe
(
true
);
expect
(
state
.
rememberScrollTop
).
toBe
(
100
);
});
});
dashboardPageScenario
(
"
where
user goes back to dashboard from panel edit"
,
(
ctx
)
=>
{
dashboardPageScenario
(
"
When
user goes back to dashboard from panel edit"
,
(
ctx
)
=>
{
ctx
.
setup
(()
=>
{
ctx
.
mount
();
ctx
.
setDashboardProp
();
...
...
public/app/features/dashboard/containers/__snapshots__/DashboardPage.test.tsx.snap
View file @
961695a6
...
...
@@ -217,7 +217,7 @@ exports[`DashboardPage Dashboard init completed Should render dashboard grid 1`
</div>
`;
exports[`DashboardPage Dashboard is fetching slowly
s
hould render slow init state 1`] = `
exports[`DashboardPage Dashboard is fetching slowly
S
hould render slow init state 1`] = `
<div
className="dashboard-loading"
>
...
...
@@ -233,7 +233,7 @@ exports[`DashboardPage Dashboard is fetching slowly should render slow init stat
</div>
`;
exports[`DashboardPage Given initial state
s
hould render nothing 1`] = `""`;
exports[`DashboardPage Given initial state
S
hould render nothing 1`] = `""`;
exports[`DashboardPage When dashboard has editview url state should render settings view 1`] = `
<div
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment