1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 18:33:07 +00:00

Add startstop test for Plasma Vault.

This commit is contained in:
Lukáš Růžička 2021-06-09 09:42:45 +02:00 committed by Adam Williamson
parent cb3aa17b1a
commit 2c366cc7a4
34 changed files with 344 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_create"
],
"area": [
{
"xpos": 474,
"ypos": 670,
"width": 64,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_dialog_runs"
],
"area": [
{
"xpos": 214,
"ypos": 173,
"width": 119,
"height": 17,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_encfs_backend_available"
],
"area": [
{
"xpos": 32,
"ypos": 100,
"width": 103,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_enter_name"
],
"area": [
{
"xpos": 68,
"ypos": 43,
"width": 180,
"height": 38,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_enter_password"
],
"area": [
{
"xpos": 38,
"ypos": 93,
"width": 196,
"height": 34,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_menu_create_new"
],
"area": [
{
"xpos": 730,
"ypos": 542,
"width": 148,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_menu_not_exist"
],
"area": [
{
"xpos": 693,
"ypos": 492,
"width": 221,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_menu_open"
],
"area": [
{
"xpos": 628,
"ypos": 449,
"width": 26,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_mountpoint"
],
"area": [
{
"xpos": 31,
"ypos": 64,
"width": 83,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_new_created"
],
"area": [
{
"xpos": 593,
"ypos": 345,
"width": 93,
"height": 28,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_security_notice"
],
"area": [
{
"xpos": 33,
"ypos": 48,
"width": 105,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_tray_icon"
],
"area": [
{
"xpos": 759,
"ypos": 738,
"width": 18,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"vault_verify_password"
],
"area": [
{
"xpos": 62,
"ypos": 130,
"width": 155,
"height": 36,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 16,
"xpos": 482,
"width": 48,
"ypos": 524
}
],
"properties": [],
"tags": [
"kde_next"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"ypos": 523,
"width": 48,
"xpos": 481,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"kde_next"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"show_hidden_icons"
],
"area": [
{
"xpos": 873,
"ypos": 736,
"width": 27,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View 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:

View 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: