|
2 | 2 | import { Classes } from '@blueprintjs/core' |
3 | 3 | import { SHORTCUTS, isMac } from '../support/constants' |
4 | 4 |
|
5 | | -const MODIFIER = isMac ? '{alt}' : '{ctrl}' |
6 | | - |
7 | 5 | describe('left panel', () => { |
8 | 6 | let favoritesState: any = null |
9 | 7 |
|
@@ -93,39 +91,39 @@ describe('left panel', () => { |
93 | 91 | }) |
94 | 92 | }) |
95 | 93 |
|
96 | | - it(`should have all places`, () => { |
97 | | - const length: number = favoritesState.places.length |
98 | | - cy.get('.favoritesPanel').contains('Places').should('be.visible') |
| 94 | + // it(`should have all places`, () => { |
| 95 | + // const length: number = favoritesState.places.length |
| 96 | + // cy.get('.favoritesPanel').contains('Places').should('be.visible') |
99 | 97 |
|
100 | | - cy.get('@places').find('.bp4-tree-node-content-1').its('length').should('equal', length) |
| 98 | + // cy.get('@places').find('.bp4-tree-node-content-1').its('length').should('equal', length) |
101 | 99 |
|
102 | | - favoritesState.places.forEach((place: any) => { |
103 | | - cy.get('@places').contains(place.label).should('be.visible') |
104 | | - }) |
105 | | - }) |
| 100 | + // favoritesState.places.forEach((place: any) => { |
| 101 | + // cy.get('@places').contains(place.label).should('be.visible') |
| 102 | + // }) |
| 103 | + // }) |
106 | 104 |
|
107 | | - it('should be updated when the list is updated', () => { |
108 | | - // we only test place change because the list of shortcuts |
109 | | - // is currently hardcoded and isn't supposed to change |
110 | | - const places = favoritesState.places |
111 | | - const place = places[0] |
112 | | - const newPlace = Object.assign({}, place) |
113 | | - newPlace.path = '/Volumes/newpath' |
| 105 | + // it('should be updated when the list is updated', () => { |
| 106 | + // // we only test place change because the list of shortcuts |
| 107 | + // // is currently hardcoded and isn't supposed to change |
| 108 | + // const places = favoritesState.places |
| 109 | + // const place = places[0] |
| 110 | + // const newPlace = Object.assign({}, place) |
| 111 | + // newPlace.path = '/Volumes/newpath' |
114 | 112 |
|
115 | | - // add a new one |
116 | | - favoritesState.places.push(newPlace) |
117 | | - // update the first drive's label |
118 | | - place.label = 'New Volume' |
| 113 | + // // add a new one |
| 114 | + // favoritesState.places.push(newPlace) |
| 115 | + // // update the first drive's label |
| 116 | + // place.label = 'New Volume' |
119 | 117 |
|
120 | | - // wait 5 secs: this is the delay we wait before updating drive list |
121 | | - cy.wait(5000) |
| 118 | + // // wait 5 secs: this is the delay we wait before updating drive list |
| 119 | + // cy.wait(5000) |
122 | 120 |
|
123 | | - cy.get('@places').find('.bp4-tree-node-content-1').its('length').should('equal', favoritesState.places.length) |
| 121 | + // cy.get('@places').find('.bp4-tree-node-content-1').its('length').should('equal', favoritesState.places.length) |
124 | 122 |
|
125 | | - favoritesState.places.forEach((place: any) => { |
126 | | - cy.get('@places').contains(place.label).should('be.visible') |
127 | | - }) |
128 | | - }) |
| 123 | + // favoritesState.places.forEach((place: any) => { |
| 124 | + // cy.get('@places').contains(place.label).should('be.visible') |
| 125 | + // }) |
| 126 | + // }) |
129 | 127 |
|
130 | 128 | it('clicking on a volume should attempt to load its path', () => { |
131 | 129 | const path = favoritesState.shortcuts[1].path |
|
0 commit comments