Skip to content

Commit

Permalink
Merge pull request #17524 from lemon-suse/Add-pom-for-main-page-agama
Browse files Browse the repository at this point in the history
Change hard coded product names in playwright test specs
  • Loading branch information
sofiasyria committed Aug 8, 2023
2 parents f7fe7cc + 970eec3 commit 9fe578f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/yam/agama/agama_full_disk_encryption.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ use warnings;
use testapi qw(
assert_screen
assert_script_run
get_required_var
select_console
upload_logs
);
use power_action_utils 'power_action';
use transactional 'process_reboot';

sub run {
my $product_name = get_required_var('AGAMA_PRODUCT');
assert_screen('agama_product_selection', 120);
$testapi::password = 'linux';
select_console 'root-console';

assert_script_run('playwright test --trace on --project chromium --config /usr/share/e2e-agama-playwright full-disk-encryption', timeout => 600);
assert_script_run("PRODUCTNAME=\"$product_name\" playwright test --trace on --project chromium --config /usr/share/e2e-agama-playwright full-disk-encryption", timeout => 600);

$testapi::password = 'nots3cr3t';
assert_script_run('reboot');
Expand Down
4 changes: 3 additions & 1 deletion tests/yam/agama/agama_lvm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use warnings;
use testapi qw(
assert_screen
assert_script_run
get_required_var
reset_consoles
select_console
upload_logs
Expand All @@ -20,11 +21,12 @@ use power_action_utils 'power_action';
use transactional 'process_reboot';

sub run {
my $product_name = get_required_var('AGAMA_PRODUCT');
assert_screen('agama_product_selection', 120);
$testapi::password = 'linux';
select_console 'root-console';

assert_script_run('RUN_INSTALLATION=1 playwright test --trace on --project chromium --config /usr/share/e2e-agama-playwright lvm', timeout => 1200);
assert_script_run("RUN_INSTALLATION=1 PRODUCTNAME=\"$product_name\" playwright test --trace on --project chromium --config /usr/share/e2e-agama-playwright lvm", timeout => 1200);
upload_logs('./test-results/lvm-Use-logical-volume-management-LVM-as-storage-device-for-installation-chromium/trace.zip');

assert_script_run('reboot');
Expand Down

0 comments on commit 9fe578f

Please sign in to comment.