Skip to content

Commit 748a45c

Browse files
OlgaLarinaOlgaLarina
and
OlgaLarina
authored
playwright Panel Screenshots (#9999)
* playwright Panel Screenshots * playwright Panel Screenshots * playwright Panel Screenshots * playwright Panel Screenshots * playwright Panel Screenshots * playwright Panel Screenshots * playwright Panel Screenshots --------- Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
1 parent a4de099 commit 748a45c

36 files changed

+1807
-937
lines changed

e2e/helper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ export const url_test = "http://127.0.0.1:8080/examples_test/";
1515
export const FLOAT_PRECISION = 0.01;
1616

1717
export async function compareScreenshot(page: Page, elementSelector: string | Locator | undefined, screenshotName: string, elementIndex = 0) {
18-
await page.addStyleTag({
19-
content: "textarea::-webkit-resizer { visibility: hidden !important; }"
20-
});
21-
2218
let currentElement = elementSelector;
2319
if (!!currentElement && typeof currentElement == "string") {
2420
currentElement = page.locator(currentElement);
@@ -79,6 +75,7 @@ export const initSurvey = async (page: Page, framework: string, json: any, isDes
7975
window["Survey"].settings.animationEnabled = false;
8076
const self: any = window;
8177
const model = new window["Survey"].Model(json);
78+
model.allowResizeComment = false;
8279
model.setDesignMode(isDesignMode);
8380
const surveyComplete = function (model) {
8481
window["SurveyResult"] = model.data;

0 commit comments

Comments
 (0)