forked from juju/juju-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sshkey component tests after enzyme updates.
- Loading branch information
Jeff Pihach
committed
Oct 2, 2018
1 parent
bce825b
commit 5d21e5e
Showing
3 changed files
with
135 additions
and
32 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
...ui/static/gui/src/app/components/deployment-flow/sshkey/__snapshots__/test-sshkey.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DeploymentSSHKey can disable and enable the add 1`] = ` | ||
<div | ||
className="deployment-ssh-key" | ||
> | ||
<p | ||
className="deployment-ssh-key__description" | ||
> | ||
Keys will allow you SSH access to the machines provisioned by Juju for this model. | ||
</p> | ||
<div | ||
className="twelve-col no-margin-bottom" | ||
> | ||
<div | ||
className="three-col no-margin-bottom" | ||
> | ||
<InsetSelect | ||
disabled={false} | ||
label="Source" | ||
onChange={[Function]} | ||
options={ | ||
Array [ | ||
Object { | ||
"label": "GitHub", | ||
"value": "github", | ||
}, | ||
Object { | ||
"label": "Manual", | ||
"value": "manual", | ||
}, | ||
Object { | ||
"label": "Launchpad", | ||
"value": "launchpad", | ||
}, | ||
] | ||
} | ||
/> | ||
</div> | ||
<div | ||
className="deployment-ssh-key__username three-col last-col no-margin-bottom" | ||
> | ||
<GenericInput | ||
autocomplete={true} | ||
key="githubUsername" | ||
label="GitHub username" | ||
multiLine={false} | ||
onKeyUp={[Function]} | ||
required={false} | ||
type="text" | ||
/> | ||
</div> | ||
<div | ||
className="deployment-ssh-key__add-key right" | ||
> | ||
<Button | ||
action={[Function]} | ||
disabled={true} | ||
type="positive" | ||
> | ||
Add keys | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`DeploymentSSHKey can disable and enable the add 2`] = ` | ||
<div | ||
className="deployment-ssh-key" | ||
> | ||
<p | ||
className="deployment-ssh-key__description" | ||
> | ||
Keys will allow you SSH access to the machines provisioned by Juju for this model. | ||
</p> | ||
<div | ||
className="twelve-col no-margin-bottom" | ||
> | ||
<div | ||
className="three-col no-margin-bottom" | ||
> | ||
<InsetSelect | ||
disabled={false} | ||
label="Source" | ||
onChange={[Function]} | ||
options={ | ||
Array [ | ||
Object { | ||
"label": "GitHub", | ||
"value": "github", | ||
}, | ||
Object { | ||
"label": "Manual", | ||
"value": "manual", | ||
}, | ||
Object { | ||
"label": "Launchpad", | ||
"value": "launchpad", | ||
}, | ||
] | ||
} | ||
/> | ||
</div> | ||
<div | ||
className="deployment-ssh-key__username three-col last-col no-margin-bottom" | ||
> | ||
<GenericInput | ||
autocomplete={true} | ||
key="githubUsername" | ||
label="GitHub username" | ||
multiLine={false} | ||
onKeyUp={[Function]} | ||
required={false} | ||
type="text" | ||
/> | ||
</div> | ||
<div | ||
className="deployment-ssh-key__add-key right" | ||
> | ||
<Button | ||
action={[Function]} | ||
disabled={false} | ||
type="positive" | ||
> | ||
Add keys | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters