Skip to content

Commit 5eda223

Browse files
committed
fix: quick view integ test fails in slow machines
1 parent 4a1cce8 commit 5eda223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/spec/QuickViewManager-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ define(function (require, exports, module) {
203203
}
204204
expect(rangeMarker).toBeDefined();
205205
let range = rangeMarker.find();
206-
expect(range.from.ch).toBe(4);
206+
// there are two quick views, if the test started before css lint, then we will only have color preview
207+
// at ch:11, else the css lint error preview starts at 4
208+
expect([4, 11].includes(range.from.ch)).toBeTrue();
207209
expect(range.to.ch).toBe(18);
208210
});
209211

0 commit comments

Comments
 (0)