@@ -9,38 +9,6 @@ import { expect, test } from '@playwright/test'
99
1010import { expectObscured , stopInstance } from './utils'
1111
12- test ( 'Dropdown content can scroll off page and doesn’t hide TopBar' , async ( { page } ) => {
13- // load the page
14- await page . goto ( '/utilization' )
15- await expect ( page . getByRole ( 'heading' , { name : 'Utilization' } ) ) . toBeVisible ( )
16-
17- const button = page . getByRole ( 'button' , { name : 'All projects' } )
18-
19- // click on the 'All projects' dropdown
20- await button . click ( )
21- const options = [ 'All projects' , 'mock-project' , 'other-project' ]
22- for ( const name of options ) {
23- const option = page . getByRole ( 'option' , { name } )
24- await expect ( option ) . toBeVisible ( )
25- await expect ( option ) . toBeInViewport ( )
26- }
27-
28- // scroll the page down just enough that the button and the top item are off
29- // screen, but the bottom item is not
30- await page . mouse . wheel ( 0 , 480 )
31-
32- // if we don't do this, the test doesn't wait long enough for the following
33- // assertions to become true
34- await expect ( button ) . not . toBeInViewport ( )
35-
36- // now the top the listbox option is obscured by the topbar
37- await expectObscured ( page . getByRole ( 'option' , { name : 'All projects' } ) )
38-
39- // but we can still click the bottom one
40- await page . getByRole ( 'option' , { name : 'other-project' } ) . click ( )
41- await expect ( page . getByRole ( 'button' , { name : 'other-project' } ) ) . toBeVisible ( )
42- } )
43-
4412test ( 'Dropdown content in SidebarModal shows on screen' , async ( { page } ) => {
4513 // go to an instance’s Network Interfaces page
4614 await page . goto ( '/projects/mock-project/instances/db1/networking' )
0 commit comments