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
|
|
@ -26,7 +26,7 @@ test(
|
|||
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
||||
await page.mouse.up();
|
||||
await page.mouse.down();
|
||||
await adjustScreenView(page);
|
||||
await adjustScreenView(page, { numberOfZoomOut: 3 });
|
||||
|
||||
const outputElements = await page
|
||||
.getByTestId("handle-retrievalqa-shownode-text-right")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
import { readFileSync } from "fs";
|
||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||
|
||||
import { zoomOut } from "../../utils/zoom-out";
|
||||
test.describe("save component tests", () => {
|
||||
/// <reference lib="dom"/>
|
||||
test(
|
||||
|
|
@ -52,6 +52,8 @@ test.describe("save component tests", () => {
|
|||
.locator('//*[@id="react-flow-id"]/div[1]/div[2]/button[3]')
|
||||
.click();
|
||||
|
||||
await zoomOut(page, 2);
|
||||
|
||||
await page.getByTestId("title-Agent Initializer").click({
|
||||
modifiers: ["Control"],
|
||||
});
|
||||
|
|
@ -99,9 +101,6 @@ test.describe("save component tests", () => {
|
|||
await page.mouse.up();
|
||||
await page.mouse.down();
|
||||
await page.getByTestId("fit_view").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
await page.getByTestId("zoom_out").click();
|
||||
textArea = page.getByTestId("div-textarea-description");
|
||||
elementCountText = await textArea?.count();
|
||||
if (elementCountText > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue