Skip to content

Commit

Permalink
tests: remove sleep before clicking 'next'
Browse files Browse the repository at this point in the history
Next button is disabled when no disks are selected, we don't need the
explicit sleep in the tests.
  • Loading branch information
KKoukiou committed Jan 23, 2025
1 parent fbfcd87 commit 52e470b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/helpers/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
from collections import UserDict
from time import sleep

import steps
from step_logger import log_step
Expand Down Expand Up @@ -131,11 +130,6 @@ def next(self, should_fail=False, next_page=""):
while next_page in self.steps.hidden_steps:
next_page = self.steps._steps_jump[next_page][0]

# Wait for a disk to be pre-selected before clicking 'Next'.
# FIXME: Find a better way.
if current_page == self.steps.INSTALLATION_METHOD:
sleep(2)

self.browser.click("#installation-next-btn")
expected_page = current_page if should_fail else next_page
self.wait_current_page(expected_page)
Expand Down

0 comments on commit 52e470b

Please sign in to comment.