Skip to content

Commit

Permalink
Batterieboost Screenshot spec (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
heatpumper authored Oct 24, 2024
1 parent 5ae2404 commit cb15c3d
Show file tree
Hide file tree
Showing 115 changed files with 256 additions and 336 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/features/screenshots/battery-buffer-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-buffer-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-buffer-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-buffer-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-bufferstart-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-bufferstart-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-bufferstart-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-bufferstart-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-grid-charging-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-grid-charging-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-grid-charging-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-grid-charging-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-priority-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-priority-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-priority-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/battery-priority-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-modal-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-modal-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-modal-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-modal-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-plan-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-plan-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-plan-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/dynamicprice-plan-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/energyflow-surplus-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/energyflow-surplus-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/energyflow-surplus-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-loadpoint-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-loadpoint-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-setting-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-setting-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-setting-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/minsoc-setting-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-energy-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-energy-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-energy-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-energy-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-soc-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-soc-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-soc-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/plan-soc-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-detail-dark-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-detail-dark-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-detail-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-detail-light-2x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-main-ui-light-1x.webp
Binary file not shown.
Binary file modified docs/features/screenshots/sessions-main-ui-light-2x.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
488 changes: 217 additions & 271 deletions screenshot-generator/package-lock.json

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions screenshot-generator/recipes/batterie-boost.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { test, expect } from "@playwright/test";
import { loop } from "./utils/loop";
import { CURSOR, ARROW, placeOverlay, removeOverlays } from "./utils/overlay";
import enableExperimental from "./utils/enableExperimental";
import { start, stop } from "./utils/evcc";

const BASE_PATH = "features/screenshots";

test.beforeAll(async () => {
await start("basics.evcc.yaml", "password.sql");
});

test.afterAll(async () => {
await stop();
});

const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

loop((screenshot) => {
test("batterie boost", async ({ page }) => {
await page.goto(`/`);
await enableExperimental(page);

await page.getByTestId("loadpoint-settings-button").nth(1).click();
await wait(700);
await page.getByTestId("battery-boost-checkbox").first().click();

await placeOverlay(page, "[data-testid=battery-boost-checkbox]", CURSOR);

await screenshot(
page,
`${BASE_PATH}/batterie-boost`,
"#loadpointSettingsModal_1 .modal-content",
{
all: 20,
},
);
});
});
65 changes: 0 additions & 65 deletions screenshot-generator/recipes/co2.spec.js

This file was deleted.

0 comments on commit cb15c3d

Please sign in to comment.