diff options
Diffstat (limited to 'bitbake/lib/toaster/tests/functional/test_project_page.py')
-rw-r--r-- | bitbake/lib/toaster/tests/functional/test_project_page.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/tests/functional/test_project_page.py b/bitbake/lib/toaster/tests/functional/test_project_page.py index c6dad0eb5d..429d86feba 100644 --- a/bitbake/lib/toaster/tests/functional/test_project_page.py +++ b/bitbake/lib/toaster/tests/functional/test_project_page.py | |||
@@ -685,17 +685,17 @@ class TestProjectPage(TestProjectPageBase): | |||
685 | 'active', str(self.find('#information').get_attribute('class')) | 685 | 'active', str(self.find('#information').get_attribute('class')) |
686 | ) | 686 | ) |
687 | # Check second tab (recipes) | 687 | # Check second tab (recipes) |
688 | # Ensure page is scrolled to the top | ||
689 | self.driver.find_element(By.XPATH, '//body').send_keys(Keys.CONTROL + Keys.HOME) | ||
690 | self.wait_until_visible('.nav-tabs') | 688 | self.wait_until_visible('.nav-tabs') |
689 | # Ensure page is scrolled to the top | ||
690 | self.driver.execute_script('window.scrollTo({behavior: "instant", top: 0, left: 0})') | ||
691 | tabs[1].click() | 691 | tabs[1].click() |
692 | self.assertIn( | 692 | self.assertIn( |
693 | 'active', str(self.find('#recipes').get_attribute('class')) | 693 | 'active', str(self.find('#recipes').get_attribute('class')) |
694 | ) | 694 | ) |
695 | # Check third tab (machines) | 695 | # Check third tab (machines) |
696 | # Ensure page is scrolled to the top | ||
697 | self.driver.find_element(By.XPATH, '//body').send_keys(Keys.CONTROL + Keys.HOME) | ||
698 | self.wait_until_visible('.nav-tabs') | 696 | self.wait_until_visible('.nav-tabs') |
697 | # Ensure page is scrolled to the top | ||
698 | self.driver.execute_script('window.scrollTo({behavior: "instant", top: 0, left: 0})') | ||
699 | tabs[2].click() | 699 | tabs[2].click() |
700 | self.assertIn( | 700 | self.assertIn( |
701 | 'active', str(self.find('#machines').get_attribute('class')) | 701 | 'active', str(self.find('#machines').get_attribute('class')) |