Skip to content

Commit

Permalink
#8298 Invalid progress bar layout with default v2 theme within a Boot…
Browse files Browse the repository at this point in the history
…strap 5 based project (#8350)

* #8298 Invalid progress bar layout with default v2 theme within a Bootstrap 5 based project
Fixes #8298

* #8298 - update screenshots
  • Loading branch information
novikov82 authored Jun 3, 2024
1 parent 7926f5e commit 4b5f8c1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/defaultV2-theme/blocks/sd-progress-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
z-index: -1;
border: calcSize(0.5) solid transparent;
border-radius: 50%;
box-sizing: content-box;
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions visualRegressionTests/tests/defaultV2/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,19 @@ frameworks.forEach(framework => {
await takeElementScreenshot("survey-progress-bar-top-rtl.png", Selector(".sd-container-modern"), t, comparer); // title + progress
});
});

test("Check survey with progress and bootstrap", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await ClientFunction(() => {
document.head.insertAdjacentHTML("beforeend", "<style>* { box-sizing: border-box; }</style>");
})();
await t.resizeWindow(800, 1080);
await initSurvey(framework, json);
await ClientFunction(() => {
(<any>window).survey.progressBarType = "pages";
(<any>window).survey.currentPageNo = 1;
})();
await takeElementScreenshot("survey-progress-bar-bootstrap.png", Selector(".sd-progress-buttons__list"), t, comparer); // title + progress
});
});
});

0 comments on commit 4b5f8c1

Please sign in to comment.