@@ -41,7 +41,7 @@ describe('<DrawButton />', () => {
41
41
} ) ;
42
42
43
43
describe ( '#Drawing' , ( ) => {
44
- it ( 'draws points' , async ( ) => {
44
+ xit ( 'draws points' , async ( ) => {
45
45
renderInMapContext ( map , < DrawButton drawType = { 'Point' } /> ) ;
46
46
47
47
const button = screen . getByRole ( 'button' ) ;
@@ -59,7 +59,7 @@ describe('<DrawButton />', () => {
59
59
expect ( feature ?. getGeometry ( ) ?. getType ( ) ) . toBe ( 'Point' ) ;
60
60
} ) ;
61
61
62
- it ( 'draws lines' , async ( ) => {
62
+ xit ( 'draws lines' , async ( ) => {
63
63
renderInMapContext ( map , < DrawButton drawType = { 'LineString' } /> ) ;
64
64
65
65
const button = screen . getByRole ( 'button' ) ;
@@ -81,7 +81,7 @@ describe('<DrawButton />', () => {
81
81
expect ( ( feature ?. getGeometry ( ) as LineString ) . getCoordinates ( ) ) . toHaveLength ( 2 ) ;
82
82
} ) ;
83
83
84
- it ( 'draws polygons' , async ( ) => {
84
+ xit ( 'draws polygons' , async ( ) => {
85
85
renderInMapContext ( map , < DrawButton drawType = { 'Polygon' } /> ) ;
86
86
87
87
const button = screen . getByRole ( 'button' ) ;
@@ -110,7 +110,7 @@ describe('<DrawButton />', () => {
110
110
expect ( coordinates [ 0 ] ) . toHaveLength ( 5 ) ;
111
111
} ) ;
112
112
113
- it ( 'draws labels' , async ( ) => {
113
+ xit ( 'draws labels' , async ( ) => {
114
114
renderInMapContext ( map , < DrawButton drawType = { 'Text' } /> ) ;
115
115
116
116
const button = screen . getByRole ( 'button' ) ;
@@ -142,7 +142,7 @@ describe('<DrawButton />', () => {
142
142
expect ( feature ?. get ( 'label' ) ) . toBe ( 'Label text.' ) ;
143
143
} ) ;
144
144
145
- it ( 'aborts drawing labels' , async ( ) => {
145
+ xit ( 'aborts drawing labels' , async ( ) => {
146
146
renderInMapContext ( map , < DrawButton drawType = { 'Text' } /> ) ;
147
147
148
148
const button = screen . getByRole ( 'button' ) ;
@@ -169,7 +169,7 @@ describe('<DrawButton />', () => {
169
169
expect ( digitizeLayer . getSource ( ) ?. getFeatures ( ) ) . toHaveLength ( 0 ) ;
170
170
} ) ;
171
171
172
- it ( 'draws circles' , async ( ) => {
172
+ xit ( 'draws circles' , async ( ) => {
173
173
renderInMapContext ( map , < DrawButton drawType = { 'Circle' } /> ) ;
174
174
175
175
const button = screen . getByRole ( 'button' ) ;
@@ -189,7 +189,7 @@ describe('<DrawButton />', () => {
189
189
expect ( feature ?. getGeometry ( ) ?. getType ( ) ) . toBe ( 'Circle' ) ;
190
190
} ) ;
191
191
192
- it ( 'draws rectangles' , async ( ) => {
192
+ xit ( 'draws rectangles' , async ( ) => {
193
193
renderInMapContext ( map , < DrawButton drawType = { 'Rectangle' } /> ) ;
194
194
195
195
const button = screen . getByRole ( 'button' ) ;
@@ -214,7 +214,7 @@ describe('<DrawButton />', () => {
214
214
expect ( coordinates [ 0 ] ) . toHaveLength ( 5 ) ;
215
215
} ) ;
216
216
217
- it ( 'toggles off' , async ( ) => {
217
+ xit ( 'toggles off' , async ( ) => {
218
218
renderInMapContext ( map , < DrawButton drawType = { 'Point' } /> ) ;
219
219
220
220
const button = screen . getByRole ( 'button' ) ;
@@ -242,7 +242,7 @@ describe('<DrawButton />', () => {
242
242
expect ( digitizeLayer . getSource ( ) ?. getFeatures ( ) ) . toHaveLength ( 2 ) ;
243
243
} ) ;
244
244
245
- it ( 'calls draw start and draw end listeners' , async ( ) => {
245
+ xit ( 'calls draw start and draw end listeners' , async ( ) => {
246
246
const startSpy = jest . fn ( ) ;
247
247
const endSpy = jest . fn ( ) ;
248
248
@@ -276,7 +276,7 @@ describe('<DrawButton />', () => {
276
276
expect ( geometry . getCoordinates ( ) [ 0 ] ) . toHaveLength ( 5 ) ;
277
277
} ) ;
278
278
279
- it ( 'multiple draw buttons use the same digitize layer' , async ( ) => {
279
+ xit ( 'multiple draw buttons use the same digitize layer' , async ( ) => {
280
280
renderInMapContext ( map , < >
281
281
< DrawButton drawType = { 'Point' } > Point 1</ DrawButton >
282
282
< DrawButton drawType = { 'Point' } > Point 2</ DrawButton >
@@ -299,7 +299,7 @@ describe('<DrawButton />', () => {
299
299
expect ( digitizeLayer . getSource ( ) ?. getFeatures ( ) ) . toHaveLength ( 2 ) ;
300
300
} ) ;
301
301
302
- it ( 'can use a custom layer' , async ( ) => {
302
+ xit ( 'can use a custom layer' , async ( ) => {
303
303
const layer = new VectorLayer ( {
304
304
source : new VectorSource ( )
305
305
} ) ;
@@ -321,7 +321,7 @@ describe('<DrawButton />', () => {
321
321
expect ( defaultDigitizeLayer . getSource ( ) ?. getFeatures ( ) ) . toHaveLength ( 0 ) ;
322
322
} ) ;
323
323
324
- it ( 'can change the type' , async ( ) => {
324
+ xit ( 'can change the type' , async ( ) => {
325
325
const { rerenderInMapContext } = renderInMapContext ( map , < DrawButton drawType = { 'Point' } /> ) ;
326
326
327
327
const button = screen . getByRole ( 'button' ) ;
0 commit comments