Skip to content

Commit

Permalink
Merge pull request #7102 from jouyingbin/master
Browse files Browse the repository at this point in the history
Replace start_firefox as x11_start_program for firefox_nss
  • Loading branch information
dzedro committed Mar 21, 2019
2 parents 3adbbb5 + 5072eb9 commit 26634c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/fips/mozilla_nss/firefox_nss.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SUSE's openQA tests - FIPS tests
#
# Copyright © 2016-2018 SUSE LLC
# Copyright © 2016-2019 SUSE LLC
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
Expand All @@ -12,11 +12,13 @@
# Summary: FIPS mozilla-nss test for firefox
# Maintainer: mitiao <mitiao@gmail.com>,
# wnereiz <wnereiz@fsf.member.org>
# Tag: poo#47018

use base "x11test";
use strict;
use warnings;
use testapi;
use x11utils 'turn_off_gnome_screensaver';

sub quit_firefox {
send_key "alt-f4";
Expand All @@ -34,7 +36,9 @@ sub run {
# - at least one non-alphabet-non-number character (like: @-.=%)
my $fips_password = 'openqa@SUSE';

$self->start_firefox;
# Turn off screensaver before launch firefox in order to avoid the screensaver block
turn_off_gnome_screensaver if check_var('DESKTOP', 'gnome');
x11_start_program('firefox https://html5test.opensuse.org', target_match => 'firefox-html-test', match_timeout => 360);

# Firfox Preferences
send_key "alt-e";
Expand Down

0 comments on commit 26634c7

Please sign in to comment.