improve tests and coverage

This commit is contained in:
Rene Haas
2022-08-20 17:37:08 +02:00
parent 814591afb1
commit 52c3f83e21
2 changed files with 18 additions and 7 deletions
@@ -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' } });
@@ -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);
});
}
});
});
});