Add startstop test for Plasma Vault.
15
needles/kde/apps/vault/vault_create.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_create"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 474,
|
||||||
|
"ypos": 670,
|
||||||
|
"width": 64,
|
||||||
|
"height": 15,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_create.png
Normal file
After Width: | Height: | Size: 63 KiB |
15
needles/kde/apps/vault/vault_dialog_runs.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_dialog_runs"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 214,
|
||||||
|
"ypos": 173,
|
||||||
|
"width": 119,
|
||||||
|
"height": 17,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_dialog_runs.png
Normal file
After Width: | Height: | Size: 53 KiB |
15
needles/kde/apps/vault/vault_encfs_backend_available.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_encfs_backend_available"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 32,
|
||||||
|
"ypos": 100,
|
||||||
|
"width": 103,
|
||||||
|
"height": 20,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_encfs_backend_available.png
Normal file
After Width: | Height: | Size: 26 KiB |
15
needles/kde/apps/vault/vault_enter_name.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_enter_name"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 68,
|
||||||
|
"ypos": 43,
|
||||||
|
"width": 180,
|
||||||
|
"height": 38,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_enter_name.png
Normal file
After Width: | Height: | Size: 26 KiB |
15
needles/kde/apps/vault/vault_enter_password.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_enter_password"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 38,
|
||||||
|
"ypos": 93,
|
||||||
|
"width": 196,
|
||||||
|
"height": 34,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_enter_password.png
Normal file
After Width: | Height: | Size: 35 KiB |
15
needles/kde/apps/vault/vault_menu_create_new.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_menu_create_new"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 730,
|
||||||
|
"ypos": 542,
|
||||||
|
"width": 148,
|
||||||
|
"height": 16,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_menu_create_new.png
Normal file
After Width: | Height: | Size: 22 KiB |
15
needles/kde/apps/vault/vault_menu_not_exist.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_menu_not_exist"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 693,
|
||||||
|
"ypos": 492,
|
||||||
|
"width": 221,
|
||||||
|
"height": 23,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_menu_not_exist.png
Normal file
After Width: | Height: | Size: 22 KiB |
15
needles/kde/apps/vault/vault_menu_open.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_menu_open"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 628,
|
||||||
|
"ypos": 449,
|
||||||
|
"width": 26,
|
||||||
|
"height": 26,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_menu_open.png
Normal file
After Width: | Height: | Size: 37 KiB |
15
needles/kde/apps/vault/vault_mountpoint.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_mountpoint"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 31,
|
||||||
|
"ypos": 64,
|
||||||
|
"width": 83,
|
||||||
|
"height": 21,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_mountpoint.png
Normal file
After Width: | Height: | Size: 26 KiB |
15
needles/kde/apps/vault/vault_new_created.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_new_created"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 593,
|
||||||
|
"ypos": 345,
|
||||||
|
"width": 93,
|
||||||
|
"height": 28,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_new_created.png
Normal file
After Width: | Height: | Size: 18 KiB |
15
needles/kde/apps/vault/vault_security_notice.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_security_notice"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 33,
|
||||||
|
"ypos": 48,
|
||||||
|
"width": 105,
|
||||||
|
"height": 16,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_security_notice.png
Normal file
After Width: | Height: | Size: 67 KiB |
15
needles/kde/apps/vault/vault_tray_icon.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_tray_icon"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 759,
|
||||||
|
"ypos": 738,
|
||||||
|
"width": 18,
|
||||||
|
"height": 18,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_tray_icon.png
Normal file
After Width: | Height: | Size: 12 KiB |
15
needles/kde/apps/vault/vault_verify_password.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"vault_verify_password"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 62,
|
||||||
|
"ypos": 130,
|
||||||
|
"width": 155,
|
||||||
|
"height": 36,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/apps/vault/vault_verify_password.png
Normal file
After Width: | Height: | Size: 35 KiB |
15
needles/kde/kde_next-20210609.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"type": "match",
|
||||||
|
"height": 16,
|
||||||
|
"xpos": 482,
|
||||||
|
"width": 48,
|
||||||
|
"ypos": 524
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"kde_next"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/kde_next-20210609.png
Normal file
After Width: | Height: | Size: 55 KiB |
15
needles/kde/kde_next-noto-20210609.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"ypos": 523,
|
||||||
|
"width": 48,
|
||||||
|
"xpos": 481,
|
||||||
|
"height": 16,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"kde_next"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/kde_next-noto-20210609.png
Normal file
After Width: | Height: | Size: 24 KiB |
15
needles/kde/show_hidden_icons.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"show_hidden_icons"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 873,
|
||||||
|
"ypos": 736,
|
||||||
|
"width": 27,
|
||||||
|
"height": 22,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/kde/show_hidden_icons.png
Normal file
After Width: | Height: | Size: 12 KiB |
26
tests/apps_startstop/kde/disks.pm
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
|
||||||
|
# This test checks that Disks starts.
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
|
||||||
|
# Start the application
|
||||||
|
menu_launch_type 'disks';
|
||||||
|
# Check that it is started
|
||||||
|
assert_screen 'disks_runs';
|
||||||
|
# Close the application
|
||||||
|
quit_with_shortcut();
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
return {always_rollback => 1};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
78
tests/apps_startstop/kde/vault.pm
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
|
||||||
|
# This test checks that Vault starts.
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
# As there are no vaults created, we need to list
|
||||||
|
# invisible icons.
|
||||||
|
assert_and_click "show_hidden_icons";
|
||||||
|
|
||||||
|
# Now we should be able to see the Vaults icon,
|
||||||
|
# so we will click on it.
|
||||||
|
assert_and_click "vault_menu_open";
|
||||||
|
|
||||||
|
# This is a new installation so there, should not be
|
||||||
|
# any existing vaults. Let's check for it.
|
||||||
|
assert_screen "vault_menu_not_exist";
|
||||||
|
|
||||||
|
# Click on Create a New ... to start the vault creation
|
||||||
|
assert_and_click "vault_menu_create_new";
|
||||||
|
|
||||||
|
# A vault creation dialog should appear
|
||||||
|
assert_screen "vault_dialog_runs";
|
||||||
|
|
||||||
|
# Check that a correct backend is available
|
||||||
|
assert_screen "vault_encfs_backend_available";
|
||||||
|
|
||||||
|
# Enter the name of the newly created testvault
|
||||||
|
assert_and_click "vault_enter_name";
|
||||||
|
|
||||||
|
# Then name the vault "testvault"
|
||||||
|
type_very_safely "testvault";
|
||||||
|
|
||||||
|
# Click the Next button
|
||||||
|
assert_and_click "kde_next";
|
||||||
|
|
||||||
|
# If the security notice appears, click next it away.
|
||||||
|
if (check_screen "vault_security_notice") {
|
||||||
|
assert_and_click "kde_next";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Enter a password and validate it.
|
||||||
|
assert_and_click "vault_enter_password";
|
||||||
|
type_very_safely "SecretVaultCode";
|
||||||
|
send_key "tab";
|
||||||
|
type_very_safely "SecretVaultCode";
|
||||||
|
|
||||||
|
assert_and_click "kde_next";
|
||||||
|
|
||||||
|
# Check that a mountpount screen appears
|
||||||
|
assert_screen "vault_mountpoint";
|
||||||
|
|
||||||
|
# Click Next to confirm
|
||||||
|
assert_and_click "kde_next";
|
||||||
|
|
||||||
|
# Click on Create to make it happen
|
||||||
|
assert_and_click "vault_create";
|
||||||
|
|
||||||
|
# Now the vault should be created so let us check, that it really
|
||||||
|
# got created.
|
||||||
|
# There should be a new small vault icon visible in the tray, so let's
|
||||||
|
# click that to open the vault menu.
|
||||||
|
assert_and_click "vault_tray_icon";
|
||||||
|
# Check that the vault is listed in the overview
|
||||||
|
assert_screen "vault_new_created";
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
return {always_rollback => 1};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|