fix: Update min/max zoom value and fit view values (#7113)
* fix: Update minZoom value in PageComponent to improve zoom functionality * [autofix.ci] apply automated fixes * fix: Add fitViewOptions to PageComponent for enhanced zoom control * fix: update default zoom out level in adjustScreenView utility Changed the default value of numberOfZoomOut from 3 to 1 in the adjustScreenView function to improve initial screen adjustment behavior. * fix: update zoom out level in filterEdge test Modified the filterEdge test to pass a specific zoom out level of 3 to the adjustScreenView function, ensuring consistent screen adjustments during test execution. * chore: update .gitignore to exclude .qodo files * fix tests * fixed test * fix loop on zoom out * Remove unnecessary zoom out click in starter projects test to improve test accuracy. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mike Fortman <michael.fortman@datastax.com> Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
This commit is contained in:
parent
6a9a4e94ff
commit
f99469f06d
12 changed files with 44 additions and 37 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
import { adjustScreenView } from "../../utils/adjust-screen-view";
|
||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||
import { zoomOut } from "../../utils/zoom-out";
|
||||
|
||||
test(
|
||||
"user must be able to minimize and expand a component",
|
||||
|
|
@ -33,6 +34,8 @@ test(
|
|||
|
||||
await adjustScreenView(page);
|
||||
|
||||
await zoomOut(page, 4);
|
||||
|
||||
await page.getByTestId("more-options-modal").click();
|
||||
|
||||
await page.waitForSelector("data-testid=minimize-button-modal", {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||
import { zoomOut } from "../../utils/zoom-out";
|
||||
|
||||
test(
|
||||
"user should be able to interact with sticky notes",
|
||||
|
|
@ -52,9 +53,7 @@ The future of AI is both exciting and uncertain. As the technology continues to
|
|||
});
|
||||
|
||||
await page.getByTestId("fit_view").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
|
||||
await zoomOut(page, 6);
|
||||
await page.getByTestId("note_node").click();
|
||||
|
||||
await page.locator(".generic-node-desc-text").last().dblclick();
|
||||
|
|
@ -122,8 +121,6 @@ The future of AI is both exciting and uncertain. As the technology continues to
|
|||
await page.getByText("Copy").click();
|
||||
|
||||
await page.getByTestId("fit_view").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
|
||||
//double click
|
||||
await targetElement.click();
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ test(
|
|||
|
||||
await focusElementsOnBoard({ page });
|
||||
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
|
||||
await page.getByText("Retriever", { exact: true }).first().isHidden();
|
||||
await page.getByTestId("icon-ChevronDown").last().isVisible();
|
||||
await page.getByTestId("icon-ChevronDown").last().click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue