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
b342e4f0
Unverified
Commit
b342e4f0
authored
Jan 11, 2021
by
Torkel Ödegaard
Committed by
GitHub
Jan 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InlineSwitch: Minor story fix (#30186)
* InlineSwitch: Minor story fix * Fix e2e test
parent
74e1a34e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
e2e/suite1/specs/variables/new-query-variable.ts
+2
-10
packages/grafana-ui/src/components/Switch/Switch.story.tsx
+4
-4
No files found.
e2e/suite1/specs/variables/new-query-variable.ts
View file @
b342e4f0
...
...
@@ -175,19 +175,11 @@ describe('Variables - Add variable', () => {
e2e
.
pages
.
Dashboard
.
Settings
.
Variables
.
Edit
.
General
.
selectionOptionsMultiSwitch
()
.
click
({
force
:
true
})
.
within
(()
=>
{
e2e
()
.
get
(
'input'
)
.
should
(
'be.checked'
);
});
.
should
(
'be.checked'
);
e2e
.
pages
.
Dashboard
.
Settings
.
Variables
.
Edit
.
General
.
selectionOptionsIncludeAllSwitch
()
.
click
({
force
:
true
})
.
within
(()
=>
{
e2e
()
.
get
(
'input'
)
.
should
(
'be.checked'
);
});
.
should
(
'be.checked'
);
e2e
.
pages
.
Dashboard
.
Settings
.
Variables
.
Edit
.
General
.
selectionOptionsCustomAllInput
().
within
(
input
=>
{
expect
(
input
.
attr
(
'placeholder'
)).
equals
(
'blank = auto'
);
...
...
packages/grafana-ui/src/components/Switch/Switch.story.tsx
View file @
b342e4f0
...
...
@@ -25,18 +25,18 @@ export const Controlled = () => {
return
(
<
div
>
<
p
>
<
div
style=
{
{
marginBottom
:
'32px'
}
}
>
<
Field
label=
"Normal switch"
description=
"For horizontal forms"
>
<
Switch
value=
{
checked
}
disabled=
{
disabled
}
onChange=
{
onChange
}
/>
</
Field
>
</
p
>
<
p
>
</
div
>
<
div
style=
{
{
marginBottom
:
'32px'
}
}
>
<
InlineFieldRow
>
<
InlineField
label=
"My switch"
>
<
InlineSwitch
value=
{
checked
}
disabled=
{
disabled
}
onChange=
{
onChange
}
/>
</
InlineField
>
</
InlineFieldRow
>
</
p
>
</
div
>
</
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