Integration tests using spectron (#410)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-06-09 13:18:24 +03:00
1 parent af24da976b
commit deb4bf2f7b
9 files changed
+513 -29

No files matched your search

+4 -1
View File
@@ -27,7 +27,10 @@ export class WindowManager {
center: true,
frame: false,
resizable: false,
show: false
show: false,
webPreferences: {
nodeIntegration: true
}
})
if (showSplash) {
this.splashWindow.loadFile(path.join(__static, "/splash.html"))
@@ -11,6 +11,7 @@
label="Choose config:"
>
<b-form-select
id="kubecontext-select"
v-model="kubecontext"
:options="contextNames"
@change="onSelect($event)"
+2 -8
View File
@@ -8,8 +8,8 @@
<div>
<b-row align-h="center" class="banner">
<b-col sm="8">
<h1 v-if="user && clusters.length === 0" class="display-4 text-center">
Welcome, {{ greetingName }}!
<h1 v-if="clusters.length === 0" class="display-4 text-center">
Welcome!
</h1>
<p v-if="clusters.length === 0" class="text-center">
Get started by associating one or more clusters to Lens.
@@ -35,12 +35,6 @@ export default {
},
clusters: function() {
return this.$store.getters.clusters;
},
user: function() {
return this.$store.getters.user;
},
greetingName: function() {
return (this.user['first-name'] && this.user['first-name'] !== "") ? this.user['first-name'] : this.user.username
}
}
}