Skip to content

Commit

Permalink
fix f- and v- tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Feb 20, 2025
1 parent ae05ff5 commit cabe245
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions functionalTests/preview/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ test("Simulator popups", async (t) => {
.expect(dropdownPopupContainer.visible).ok()
.expect(dropdownPopup.classNames).contains(overlayPopup)
.expect(dropdownPopup.classNames).contains(tabletPopup)
.click(Selector(".sv-popup--dropdown-overlay"), { offsetY: 10 })

.click(getBarItemByTitle("Select device type"))
.click(getListItemByText("iPhone 15"))
Expand Down
4 changes: 2 additions & 2 deletions packages/survey-creator-core/src/components/popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
height: auto;
}

&.sv-popup--overlay.sv-popup--tablet > .sv-popup__container {
&.sv-popup--overlay.sv-popup--tablet {
background-color: var(--ctr-popup-haze-background-color, var(--sjs-special-haze, #cceeee59));
}
&.sv-popup--overlay .sv-popup__container {
&.sv-popup--overlay {
// background-color: var(--ctr-popup-menu-background-color, var(--sjs-layer-1-background-500, #ffffffff));
background-color: var(--ctr-popup-haze-background-color, var(--sjs-special-haze, #cceeee59));
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified visualRegressionTests/tests/designer/etalons/pg-overlay-popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion visualRegressionTests/tests/designer/pg-editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ test("popup overlay in property grid", async (t) => {
.click(getQuestionBarItemByTitle("Open settings"))
.click(Selector(".spg-dropdown[aria-label='Input type']"));

await takeElementScreenshot("pg-overlay-popup.png", getVisibleElement(".sv-popup .sv-popup__container"), t, comparer);
await takeElementScreenshot("pg-overlay-popup.png", getVisibleElement(".sv-popup"), t, comparer);
});
});

Expand Down

0 comments on commit cabe245

Please sign in to comment.