Skip to content

Commit 71ca131

Browse files
committed
v2.4.0 CI fixes
1 parent 0f8c8bf commit 71ca131

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const BROWSERS = {
1414
FF: 'firefox',
1515
};
1616
const browser = Object.values(BROWSERS).find(b => b === process.env.TEST_BROWSER) || BROWSERS.DEFAULT;
17-
const flags = ['--window-size=1024,768'];
17+
const flags = ['--window-size=1024,768', '--no-sandbox'];
1818

1919
module.exports = function (config) {
2020

tests/min-max-indexes.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const _testStartIndexEdgeCase: ItFuncConfig = (settings) => misc => async done =
192192
const _testForwardGapCase: ItFuncConfig = () => misc => async done => {
193193
await misc.relaxNext();
194194
const viewportSize = misc.getViewportSize();
195-
const viewportChildren = misc.scroller.viewport.element.children;
195+
const viewportChildren = misc.scroller.viewport.routines.element.children;
196196
const lastChild = viewportChildren[viewportChildren.length - 2];
197197
const lastChildBottom = lastChild.getBoundingClientRect().bottom;
198198
let gapSize = viewportSize - lastChildBottom;

tests/miscellaneous/misc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class Misc<Comp = TestComponentInterface> {
9393
generateFakeWorkflow(settings?: Scroller['settings']): Workflow {
9494
return new Workflow({
9595
consumer: { name: 'fake', version: 'x.x.x' },
96-
element: this.scroller.viewport.element,
96+
element: this.scroller.viewport.routines.element,
9797
datasource: { get: (_a: unknown, _b: unknown) => null, settings },
9898
run: () => null
9999
});
@@ -148,7 +148,7 @@ export class Misc<Comp = TestComponentInterface> {
148148
}
149149

150150
getScrollableElement(): HTMLElement {
151-
return this.window ? document.scrollingElement : this.viewportElement.nativeElement;
151+
return this.window && document.scrollingElement || this.viewportElement.nativeElement;
152152
}
153153

154154
getScrollPosition(): number {

0 commit comments

Comments
 (0)