@@ -55,37 +55,6 @@ for (const displaySize of ['small', 'large']) {
55
55
} ) ;
56
56
}
57
57
58
- for ( const displaySize of [ 'small' , 'large' ] ) {
59
- msTest ( `Documents page default state on ${ displaySize } display` , async ( { home, documents } ) => {
60
- if ( displaySize === 'small' ) {
61
- const viewport = home . viewportSize ( ) ;
62
- await home . setViewportSize ( { width : 700 , height : viewport ? viewport . height : 700 } ) ;
63
- }
64
-
65
- const actionBar = documents . locator ( '#folders-ms-action-bar' ) ;
66
- await expect ( actionBar . locator ( '.ms-action-bar-button:visible' ) ) . toHaveText ( [ 'New folder' , 'Import' ] ) ;
67
- await expect ( actionBar . locator ( '.counter' ) ) . toHaveText ( '11 items' , { useInnerText : true } ) ;
68
- await expect ( actionBar . locator ( '#select-popover-button' ) ) . toHaveText ( 'Name' ) ;
69
- await expect ( actionBar . locator ( '#grid-view' ) ) . toNotHaveDisabledAttribute ( ) ;
70
- await expect ( actionBar . locator ( '#list-view' ) ) . toHaveDisabledAttribute ( ) ;
71
- const entries = documents . locator ( '.folder-container' ) . locator ( '.file-list-item' ) ;
72
- await expect ( entries ) . toHaveCount ( 11 ) ;
73
- if ( displaySize === 'small' ) {
74
- await expect ( entries . locator ( '.file-name' ) . locator ( '.file-name__label' ) ) . toHaveText ( NAME_MATCHER_ARRAY ) ;
75
- await expect ( entries . locator ( '.data-date' ) ) . toHaveText ( TIME_MATCHER_ARRAY ) ;
76
- await expect ( entries . locator ( '.data-size' ) ) . toHaveText ( SIZE_MATCHER_ARRAY . slice ( 2 ) ) ;
77
- for ( let i = 0 ; i < ( await entries . count ( ) ) ; i ++ ) {
78
- const entry = entries . nth ( i ) ;
79
- await expect ( entry . locator ( '.options-button' ) ) . toBeVisible ( ) ;
80
- }
81
- } else {
82
- await expect ( entries . locator ( '.file-name' ) . locator ( '.file-name__label' ) ) . toHaveText ( NAME_MATCHER_ARRAY ) ;
83
- await expect ( entries . locator ( '.file-lastUpdate' ) ) . toHaveText ( TIME_MATCHER_ARRAY ) ;
84
- await expect ( entries . locator ( '.file-size' ) ) . toHaveText ( SIZE_MATCHER_ARRAY ) ;
85
- }
86
- } ) ;
87
- }
88
-
89
58
msTest ( 'Check documents in grid mode' , async ( { documents } ) => {
90
59
await toggleViewMode ( documents ) ;
91
60
const entries = documents . locator ( '.folder-container' ) . locator ( '.file-card-item' ) ;
0 commit comments