mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 05:19:39 +03:00
improve tests and coverage
This commit is contained in:
+2
-1
@@ -829,9 +829,10 @@ const start = async () => {
|
||||
await overflowTest({ overflow: { x: 'visible', y: 'visible' } });
|
||||
await overflowTest({ overflow: { x: 'hidden', y: 'scroll' } });
|
||||
await overflowTest({ overflow: { x: 'visible-hidden', y: 'scroll' } });
|
||||
await overflowTest({ overflow: { x: 'visible-scroll', y: 'visible-hidden' } });
|
||||
await overflowTest({ overflow: { x: 'scroll', y: 'visible-scroll' } });
|
||||
|
||||
if (!isFastTestRun) {
|
||||
await overflowTest({ overflow: { x: 'visible-scroll', y: 'visible-hidden' } });
|
||||
await overflowTest({ overflow: { x: 'hidden', y: 'visible' } });
|
||||
await overflowTest({ overflow: { x: 'visible', y: 'scroll' } });
|
||||
await overflowTest({ overflow: { x: 'visible-hidden', y: 'hidden' } });
|
||||
|
||||
+16
-6
@@ -31,13 +31,13 @@ const createTests = (fast?: boolean) => {
|
||||
return;
|
||||
}
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await setFast(page);
|
||||
await setTargetIsVp(page);
|
||||
await nsh(page);
|
||||
});
|
||||
|
||||
test.describe(`${withText} native scrollbar styling`, () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await setFast(page);
|
||||
await setTargetIsVp(page);
|
||||
await nsh(page);
|
||||
});
|
||||
|
||||
test('default', async ({ page }) => {
|
||||
await expectSuccess(page);
|
||||
});
|
||||
@@ -65,6 +65,16 @@ const createTests = (fast?: boolean) => {
|
||||
|
||||
await expectSuccess(page);
|
||||
});
|
||||
|
||||
if (!nativeScrollbarHiding) {
|
||||
test('with fully overlaid scrollbars and flexbox glue', async ({ page }) => {
|
||||
await page.click('#fo');
|
||||
await page.click('#fbg');
|
||||
await page.click('#ccp');
|
||||
|
||||
await expectSuccess(page);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user