diff --git a/.github/workflows/visual-tests-demos.yml b/.github/workflows/visual-tests-demos.yml index ae92f60e3d60..4f4012f5eb34 100644 --- a/.github/workflows/visual-tests-demos.yml +++ b/.github/workflows/visual-tests-demos.yml @@ -773,6 +773,66 @@ jobs: CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally run: pnpm exec nx test-testcafe + - name: Set Playwright artifact name + if: ${{ !cancelled() }} + run: echo "PLAYWRIGHT_JOB_NAME=$(echo "${{ matrix.CONSTEL }}-${{ matrix.THEME }}" | tr '/' '-')" >> $GITHUB_ENV + + - name: Run Playwright tests + if: ${{ !cancelled() }} + timeout-minutes: 10 + working-directory: apps/demos + env: + NODE_OPTIONS: --max-old-space-size=8192 + CONCURRENCY: ${{ steps.set-concurrency.outputs.concurrency }} + CONSTEL: ${{ matrix.CONSTEL }} + THEME: ${{ matrix.THEME }} + # The default blob name is built from the test paths only, so jobs that differ by theme or + # shard alone would write the same zip and overwrite each other once merged. + PLAYWRIGHT_BLOB_OUTPUT_NAME: report-${{ env.PLAYWRIGHT_JOB_NAME }}.zip + run: pnpm run test-playwright + + - name: Upload Playwright blob report + if: failure() + uses: actions/upload-artifact@v7 + with: + name: playwright-blob-${{ env.PLAYWRIGHT_JOB_NAME }} + path: ${{ github.workspace }}/apps/demos/testing/artifacts/playwright/blob-report + if-no-files-found: ignore + + - name: Upload Playwright traces and screenshot diffs + if: always() + uses: actions/upload-artifact@v7 + with: + name: playwright-traces-${{ env.PLAYWRIGHT_JOB_NAME }} + path: ${{ github.workspace }}/apps/demos/testing/artifacts/playwright/test-results + if-no-files-found: ignore + + - name: Collect new etalons + if: always() + run: | + mkdir -p "$RUNNER_TEMP/new-etalons" + git ls-files --others --exclude-standard -z -- 'apps/demos/testing/etalons/*.png' \ + | xargs -0 -r cp --parents -t "$RUNNER_TEMP/new-etalons" + + - name: Upload new etalons + if: always() + uses: actions/upload-artifact@v7 + with: + name: playwright-etalons-${{ env.PLAYWRIGHT_JOB_NAME }} + path: ${{ runner.temp }}/new-etalons + if-no-files-found: ignore + + # A retry passes against the etalon its first attempt wrote, so new etalons fail the job here. + - name: Fail on new etalons + if: always() + run: | + new_etalons=$(git ls-files --others --exclude-standard -- 'apps/demos/testing/etalons/*.png') + if [ -n "$new_etalons" ]; then + echo "::error::The tests wrote etalons that are not in the repository. They are in the playwright-etalons artifact:" + echo "$new_etalons" + exit 1 + fi + - name: Sanitize job name if: ${{ failure() }} run: echo "JOB_NAME=$(echo "${{ matrix.CONSTEL }}-${{ matrix.THEME }}" | tr '/' '-')" >> $GITHUB_ENV diff --git a/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts b/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts index 2f8044c628e1..8155b4739ba0 100644 --- a/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts +++ b/apps/demos/Demos/Autocomplete/Overview/Angular/app/app.component.ts @@ -79,6 +79,10 @@ export class AppComponent { readonly fullInfo = signal(''); + constructor() { + this.updateEmployeeInfo(); + } + updateEmployeeInfo() { let result = ''; result += (`${this.firstName || ''} ${this.lastName || ''}`).trim(); diff --git a/apps/demos/Demos/Autocomplete/Overview/Vue/App.vue b/apps/demos/Demos/Autocomplete/Overview/Vue/App.vue index 266449c8d690..7fc95f11c8fe 100644 --- a/apps/demos/Demos/Autocomplete/Overview/Vue/App.vue +++ b/apps/demos/Demos/Autocomplete/Overview/Vue/App.vue @@ -151,6 +151,7 @@ function updateEmployeeInfo() { employeeInfo += (employeeInfo && currentClient.value) ? `, ${currentClient.value}` : currentClient.value || ''; fullInfo.value = employeeInfo; } +updateEmployeeInfo(); function isNotEmpty(value: unknown) { return value !== undefined && value !== null && value !== ''; } diff --git a/apps/demos/Demos/Autocomplete/Overview/jQuery/index.js b/apps/demos/Demos/Autocomplete/Overview/jQuery/index.js index 3621f906fb90..e70367864ff0 100644 --- a/apps/demos/Demos/Autocomplete/Overview/jQuery/index.js +++ b/apps/demos/Demos/Autocomplete/Overview/jQuery/index.js @@ -91,6 +91,8 @@ $(() => { }, }); + updateEmployeeInfo(); + function updateEmployeeInfo() { let result = `${firstName || ''} ${lastName || ''}`.trim(); diff --git a/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.html b/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.html index 5e603d27886a..e8353c951797 100644 --- a/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.html +++ b/apps/demos/Demos/Charts/Annotation/Angular/app/app.component.html @@ -14,27 +14,6 @@ - - - - - + + + + + diff --git a/apps/demos/Demos/Charts/Colorization/Vue/App.vue b/apps/demos/Demos/Charts/Colorization/Vue/App.vue index 6b34c773f07a..fce16f75d311 100644 --- a/apps/demos/Demos/Charts/Colorization/Vue/App.vue +++ b/apps/demos/Demos/Charts/Colorization/Vue/App.vue @@ -16,7 +16,7 @@
Options
- Colorization Type + Colorization Type span { - margin-right: 14px; + margin-right: 10px; } .option > .dx-widget { diff --git a/apps/demos/Demos/Charts/ExportAndPrintingAPI/Vue/App.vue b/apps/demos/Demos/Charts/ExportAndPrintingAPI/Vue/App.vue index dc22af878960..ff8228b66ac8 100644 --- a/apps/demos/Demos/Charts/ExportAndPrintingAPI/Vue/App.vue +++ b/apps/demos/Demos/Charts/ExportAndPrintingAPI/Vue/App.vue @@ -28,7 +28,7 @@ icon="print" text="Print" @click="printChart" - /> + />{{ ' ' }} .dx-button { - margin: 0 22px; + margin: 0 20px; } .title { diff --git a/apps/demos/Demos/Charts/ExportCustomMarkup/jQuery/index.html b/apps/demos/Demos/Charts/ExportCustomMarkup/jQuery/index.html index 830ec01f00b7..1d4eca11ae0a 100644 --- a/apps/demos/Demos/Charts/ExportCustomMarkup/jQuery/index.html +++ b/apps/demos/Demos/Charts/ExportCustomMarkup/jQuery/index.html @@ -19,6 +19,7 @@
+ @@ -30,7 +31,6 @@ Export a chart with custom elements -
diff --git a/apps/demos/Demos/Charts/LegendMarkersCustomization/jQuery/index.js b/apps/demos/Demos/Charts/LegendMarkersCustomization/jQuery/index.js index 9e70a6f66904..a4abcb218fe5 100644 --- a/apps/demos/Demos/Charts/LegendMarkersCustomization/jQuery/index.js +++ b/apps/demos/Demos/Charts/LegendMarkersCustomization/jQuery/index.js @@ -36,8 +36,8 @@ $(() => { marker.setAttribute('fill', color); marker.setAttribute('d', markerPath[item.series.name]); - group.appendChild(marker); group.appendChild(background); + group.appendChild(marker); }, }, onLegendClick(e) { diff --git a/apps/demos/Demos/Charts/Line/Vue/App.vue b/apps/demos/Demos/Charts/Line/Vue/App.vue index 8b5b405bcf26..407ea88106cf 100644 --- a/apps/demos/Demos/Charts/Line/Vue/App.vue +++ b/apps/demos/Demos/Charts/Line/Vue/App.vue @@ -36,7 +36,7 @@
Options
- Series Type + Series Type ('line'); } .option > span { - margin-right: 14px; + margin-right: 10px; } .option > .dx-widget { diff --git a/apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js b/apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js index 2c7fd2121c1f..ac31d282052a 100644 --- a/apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js +++ b/apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js @@ -10,6 +10,8 @@ testUtils.importAnd(() => ['devextreme/viz/chart', 'devextreme/data/data_source' .postponeUntilFound('#chart', 100, 5000) .then(() => { const instance = dxChart.getInstance(document.querySelector('#chart')); + instance.skipOptionsRollBack = true; instance.option('dataSource', dataSource); + instance.skipOptionsRollBack = false; }); }); diff --git a/apps/demos/Demos/Charts/PointsAggregation/Vue/App.vue b/apps/demos/Demos/Charts/PointsAggregation/Vue/App.vue index c831833d7e41..d2001bbee059 100644 --- a/apps/demos/Demos/Charts/PointsAggregation/Vue/App.vue +++ b/apps/demos/Demos/Charts/PointsAggregation/Vue/App.vue @@ -80,7 +80,7 @@ />
- Interval: + Interval:{{ ' ' }}
- Method: + Method:{{ ' ' }} span { width: 50px; display: inline-block; - margin-right: 14px; + margin-right: 10px; } .option > .dx-selectbox { diff --git a/apps/demos/Demos/Charts/ResolveLabelOverlap/Vue/App.vue b/apps/demos/Demos/Charts/ResolveLabelOverlap/Vue/App.vue index b7a6c913b34c..15d523e667f7 100644 --- a/apps/demos/Demos/Charts/ResolveLabelOverlap/Vue/App.vue +++ b/apps/demos/Demos/Charts/ResolveLabelOverlap/Vue/App.vue @@ -17,7 +17,7 @@
Options
- Overlapping Modes: + Overlapping Modes: (overlappingModes[0] .option > span { position: relative; top: 2px; - margin-right: 14px; + margin-right: 10px; } .option > .dx-widget { diff --git a/apps/demos/Demos/Charts/Spline/Vue/App.vue b/apps/demos/Demos/Charts/Spline/Vue/App.vue index 7a004d857081..a676d73f25ea 100644 --- a/apps/demos/Demos/Charts/Spline/Vue/App.vue +++ b/apps/demos/Demos/Charts/Spline/Vue/App.vue @@ -38,7 +38,7 @@
Options
- Series Type + Series Type span { - margin-right: 14px; + margin-right: 10px; } .option > .dx-widget { diff --git a/apps/demos/Demos/Charts/TilingAlgorithms/Vue/App.vue b/apps/demos/Demos/Charts/TilingAlgorithms/Vue/App.vue index b93ed787ef1d..9c245ba3a25b 100644 --- a/apps/demos/Demos/Charts/TilingAlgorithms/Vue/App.vue +++ b/apps/demos/Demos/Charts/TilingAlgorithms/Vue/App.vue @@ -19,7 +19,7 @@
Options
- Tiling Algorithm + Tiling Algorithm span { - margin-right: 14px; + margin-right: 10px; } .option > .dx-widget { diff --git a/apps/demos/Demos/Chat/MessageStreaming/Angular/app/app.component.css b/apps/demos/Demos/Chat/MessageStreaming/Angular/app/app.component.css index 483774a91c5e..6d4ad6b1c894 100644 --- a/apps/demos/Demos/Chat/MessageStreaming/Angular/app/app.component.css +++ b/apps/demos/Demos/Chat/MessageStreaming/Angular/app/app.component.css @@ -44,6 +44,11 @@ flex-direction: column; } +::ng-deep .dx-button { + display: inline-block; + color: var(--dx-color-icon); +} + ::ng-deep .dx-template-wrapper > div > p:first-child { margin-top: 0; } diff --git a/apps/demos/Demos/Chat/MessageStreaming/Vue/App.vue b/apps/demos/Demos/Chat/MessageStreaming/Vue/App.vue index f90474c104a7..a2d55fb8bb6a 100644 --- a/apps/demos/Demos/Chat/MessageStreaming/Vue/App.vue +++ b/apps/demos/Demos/Chat/MessageStreaming/Vue/App.vue @@ -295,6 +295,11 @@ function sendSuggestion(prompt: string): void { flex-direction: column; } +.dx-button { + display: inline-block; + color: var(--dx-color-icon); +} + .dx-chat-messagebubble-content > div > p:first-child { margin-top: 0; } diff --git a/apps/demos/Demos/Common/ListsOverview/React/App.tsx b/apps/demos/Demos/Common/ListsOverview/React/App.tsx index 1103f4e2ff1e..9164053da12d 100644 --- a/apps/demos/Demos/Common/ListsOverview/React/App.tsx +++ b/apps/demos/Demos/Common/ListsOverview/React/App.tsx @@ -117,7 +117,7 @@ const App = () => { elementAttr={tileViewAttrs} /> -
{currentHotel.Postal_Code}, {currentHotel.Address}
+
{`${currentHotel.Postal_Code}, ${currentHotel.Address}`}
{currentHotel.Description}
diff --git a/apps/demos/Demos/Common/ListsOverview/ReactJs/App.js b/apps/demos/Demos/Common/ListsOverview/ReactJs/App.js index f00d0e1afef1..1cc0c889cf0f 100644 --- a/apps/demos/Demos/Common/ListsOverview/ReactJs/App.js +++ b/apps/demos/Demos/Common/ListsOverview/ReactJs/App.js @@ -98,9 +98,7 @@ const App = () => { elementAttr={tileViewAttrs} /> -
- {currentHotel.Postal_Code}, {currentHotel.Address} -
+
{`${currentHotel.Postal_Code}, ${currentHotel.Address}`}
{currentHotel.Description}
diff --git a/apps/demos/Demos/Common/ListsOverview/Vue/App.vue b/apps/demos/Demos/Common/ListsOverview/Vue/App.vue index e5034b037ca5..bae008d72f6c 100644 --- a/apps/demos/Demos/Common/ListsOverview/Vue/App.vue +++ b/apps/demos/Demos/Common/ListsOverview/Vue/App.vue @@ -21,7 +21,7 @@ />
-
{{ currency(item.Price) }}
+
{{ currency(item.Price) }}
{{ ' ' }}
per
night
@@ -41,7 +41,7 @@ />
-
{{ currency(currentHotel.Price) }}
+
{{ currency(currentHotel.Price) }}
{{ ' ' }}
per
night
@@ -200,6 +200,6 @@ function listSelectionChanged(e: DxListTypes.SelectionChangedEvent) { .price-container .caption { font-size: 11px; line-height: 12px; - padding-left: 6px; + padding-left: 2px; } diff --git a/apps/demos/Demos/Common/NavigationOverview/React/App.tsx b/apps/demos/Demos/Common/NavigationOverview/React/App.tsx index 1d59f2645976..93da284183fa 100644 --- a/apps/demos/Demos/Common/NavigationOverview/React/App.tsx +++ b/apps/demos/Demos/Common/NavigationOverview/React/App.tsx @@ -35,14 +35,14 @@ const renderPanelItem = (city: City) => (
Population
- {city.population} people + {`${city.population} people`}
Area
- {city.area} km2 + {`${city.area} km`}2
@@ -50,7 +50,7 @@ const renderPanelItem = (city: City) => (
Density
- {city.density}/km2 + {`${city.density}/km`}2
diff --git a/apps/demos/Demos/Common/NavigationOverview/ReactJs/App.js b/apps/demos/Demos/Common/NavigationOverview/ReactJs/App.js index b8e1db6104b3..6f293c7780ae 100644 --- a/apps/demos/Demos/Common/NavigationOverview/ReactJs/App.js +++ b/apps/demos/Demos/Common/NavigationOverview/ReactJs/App.js @@ -20,14 +20,15 @@ const renderPanelItem = (city) => (
Population
- {city.population} people + {`${city.population} people`}
Area
- {city.area} km2 + {`${city.area} km`} + 2
@@ -35,7 +36,8 @@ const renderPanelItem = (city) => (
Density
- {city.density}/km2 + {`${city.density}/km`} + 2
diff --git a/apps/demos/Demos/DataGrid/DeferredSelection/Vue/App.vue b/apps/demos/Demos/DataGrid/DeferredSelection/Vue/App.vue index a04d06b1bd32..b0118c7b3c3e 100644 --- a/apps/demos/Demos/DataGrid/DeferredSelection/Vue/App.vue +++ b/apps/demos/Demos/DataGrid/DeferredSelection/Vue/App.vue @@ -57,15 +57,15 @@ />
- Task count: + Task count:{{ ' ' }} {{ taskCount }} -
+
{{ ' ' }}
- People assigned: + People assigned:{{ ' ' }} {{ peopleCount }} -
+
{{ ' ' }}
- Average task duration (days): + Average task duration (days):{{ ' ' }} {{ avgDuration }}
@@ -155,10 +155,6 @@ const onInitialized = (e: DxDataGridTypes.InitializedEvent) => { text-align: right; } -.column:nth-child(2) { - padding: 0 4px; -} - .value { font-size: 40px; display: inline-block; @@ -170,7 +166,6 @@ const onInitialized = (e: DxDataGridTypes.InitializedEvent) => { white-space: normal; display: inline-block; vertical-align: middle; - margin-right: 4px; } .avg-duration { diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/React/App.tsx b/apps/demos/Demos/DataGrid/EditStateManagement/React/App.tsx index 4d53969c1d2a..2db74bbb8a49 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/React/App.tsx +++ b/apps/demos/Demos/DataGrid/EditStateManagement/React/App.tsx @@ -83,11 +83,11 @@ const App = () => {
Options
- Edit Row Key: + Edit Row Key:
{state.editRowKey == null ? 'null' : state.editRowKey.toString()}
- Changes: + Changes:
{changesText}
diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/React/styles.css b/apps/demos/Demos/DataGrid/EditStateManagement/React/styles.css index 9147ca8f4415..0957a3d3144f 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/React/styles.css +++ b/apps/demos/Demos/DataGrid/EditStateManagement/React/styles.css @@ -20,7 +20,7 @@ .option > span { position: relative; - margin-right: 14px; + margin-right: 10px; } .option > div { diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/App.js b/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/App.js index a255fa4595f0..cc3549f31731 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/App.js +++ b/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/App.js @@ -86,13 +86,13 @@ const App = () => {
Options
- Edit Row Key: + Edit Row Key:
{state.editRowKey == null ? 'null' : state.editRowKey.toString()}
- Changes: + Changes:
{changesText}
diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/styles.css b/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/styles.css index 9147ca8f4415..0957a3d3144f 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/styles.css +++ b/apps/demos/Demos/DataGrid/EditStateManagement/ReactJs/styles.css @@ -20,7 +20,7 @@ .option > span { position: relative; - margin-right: 14px; + margin-right: 10px; } .option > div { diff --git a/apps/demos/Demos/DataGrid/EditStateManagement/Vue/App.vue b/apps/demos/Demos/DataGrid/EditStateManagement/Vue/App.vue index dc9a41fcf995..e6345c6e4b9a 100644 --- a/apps/demos/Demos/DataGrid/EditStateManagement/Vue/App.vue +++ b/apps/demos/Demos/DataGrid/EditStateManagement/Vue/App.vue @@ -38,11 +38,11 @@
Options
- Edit Row Key: + Edit Row Key:
{{ editRowKey == null ? "null" : editRowKey.toString() }}
- Changes: + Changes:
{{ changesText }}
@@ -114,7 +114,7 @@ loadOrders(); .option > span { position: relative; - margin-right: 14px; + margin-right: 10px; } .option > div { diff --git a/apps/demos/Demos/Gantt/ContextMenu/Vue/App.vue b/apps/demos/Demos/Gantt/ContextMenu/Vue/App.vue index b34ed6482d1c..643a6c784558 100644 --- a/apps/demos/Demos/Gantt/ContextMenu/Vue/App.vue +++ b/apps/demos/Demos/Gantt/ContextMenu/Vue/App.vue @@ -8,7 +8,7 @@ text="Prevent Context Menu Showing" @value-changed="onPreventContextMenuShowing" /> -
+ {{ ' ' }}
-
+ {{ ' ' }}
-
+ {{ ' ' }}
Assigned: {item.key}
; +const GroupTemplate = (item: Employee) =>
{`Assigned: ${item.key}`}
; const App = () => (
diff --git a/apps/demos/Demos/List/Grouping/ReactJs/App.js b/apps/demos/Demos/List/Grouping/ReactJs/App.js index 7027cf70a8c0..d17337ad1494 100644 --- a/apps/demos/Demos/List/Grouping/ReactJs/App.js +++ b/apps/demos/Demos/List/Grouping/ReactJs/App.js @@ -2,7 +2,7 @@ import React from 'react'; import List from 'devextreme-react/list'; import { employees } from './data.js'; -const GroupTemplate = (item) =>
Assigned: {item.key}
; +const GroupTemplate = (item) =>
{`Assigned: ${item.key}`}
; const App = () => (
-
John Heart
+
John Heart
{{ ' ' }} diff --git a/apps/demos/Demos/Map/OpenStreetMapProvider/Angular/index.html b/apps/demos/Demos/Map/OpenStreetMapProvider/Angular/index.html index a7b266fe90ab..7eaac5389655 100644 --- a/apps/demos/Demos/Map/OpenStreetMapProvider/Angular/index.html +++ b/apps/demos/Demos/Map/OpenStreetMapProvider/Angular/index.html @@ -4,6 +4,7 @@ DevExtreme Demo + diff --git a/apps/demos/Demos/Map/OpenStreetMapProvider/React/index.html b/apps/demos/Demos/Map/OpenStreetMapProvider/React/index.html index 6a43bb99f75f..5b40dc6f29ba 100644 --- a/apps/demos/Demos/Map/OpenStreetMapProvider/React/index.html +++ b/apps/demos/Demos/Map/OpenStreetMapProvider/React/index.html @@ -4,6 +4,7 @@ DevExtreme Demo + diff --git a/apps/demos/Demos/Map/OpenStreetMapProvider/Vue/index.html b/apps/demos/Demos/Map/OpenStreetMapProvider/Vue/index.html index afc126947e1b..faa381109f5a 100644 --- a/apps/demos/Demos/Map/OpenStreetMapProvider/Vue/index.html +++ b/apps/demos/Demos/Map/OpenStreetMapProvider/Vue/index.html @@ -4,6 +4,7 @@ DevExtreme Demo + diff --git a/apps/demos/Demos/PivotGrid/Customization/Vue/App.vue b/apps/demos/Demos/PivotGrid/Customization/Vue/App.vue index 2f28da0fb80b..925542951242 100644 --- a/apps/demos/Demos/PivotGrid/Customization/Vue/App.vue +++ b/apps/demos/Demos/PivotGrid/Customization/Vue/App.vue @@ -21,7 +21,7 @@ :on-value-changed="onShowTotalsPriorChanged" text="Show Totals Prior" /> -
+
{{ ' ' }}
-
+
{{ ' ' }}
diff --git a/apps/demos/Demos/PivotGrid/Customization/test-code.js b/apps/demos/Demos/PivotGrid/Customization/test-code.js index 5149a1e512cb..0762c286b92d 100644 --- a/apps/demos/Demos/PivotGrid/Customization/test-code.js +++ b/apps/demos/Demos/PivotGrid/Customization/test-code.js @@ -1,7 +1,10 @@ testUtils .postponeUntilFound('.dx-pivotgrid') .then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); })); diff --git a/apps/demos/Demos/PivotGrid/ExcelJSCellCustomization/test-code.js b/apps/demos/Demos/PivotGrid/ExcelJSCellCustomization/test-code.js index 5149a1e512cb..0762c286b92d 100644 --- a/apps/demos/Demos/PivotGrid/ExcelJSCellCustomization/test-code.js +++ b/apps/demos/Demos/PivotGrid/ExcelJSCellCustomization/test-code.js @@ -1,7 +1,10 @@ testUtils .postponeUntilFound('.dx-pivotgrid') .then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); })); diff --git a/apps/demos/Demos/PivotGrid/ExcelJSOverview/test-code.js b/apps/demos/Demos/PivotGrid/ExcelJSOverview/test-code.js index 5149a1e512cb..0762c286b92d 100644 --- a/apps/demos/Demos/PivotGrid/ExcelJSOverview/test-code.js +++ b/apps/demos/Demos/PivotGrid/ExcelJSOverview/test-code.js @@ -1,7 +1,10 @@ testUtils .postponeUntilFound('.dx-pivotgrid') .then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); })); diff --git a/apps/demos/Demos/PivotGrid/Filtering/test-code.js b/apps/demos/Demos/PivotGrid/Filtering/test-code.js index 71be1899d7f9..3adb5c53e3ac 100644 --- a/apps/demos/Demos/PivotGrid/Filtering/test-code.js +++ b/apps/demos/Demos/PivotGrid/Filtering/test-code.js @@ -1,6 +1,9 @@ testUtils.postponeUntil(() => testUtils.findElements('td, span').some((x) => (x.innerHTML || '').indexOf('London') !== -1 || (x.innerHTML || '').indexOf('Accessories') !== -1), 200, 20000).then(() => testUtils .postponeUntilFound('.dx-pivotgrid').then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); }))); diff --git a/apps/demos/Demos/PivotGrid/OLAPDataSource/test-code.js b/apps/demos/Demos/PivotGrid/OLAPDataSource/test-code.js index d1e933066510..869762cffd09 100644 --- a/apps/demos/Demos/PivotGrid/OLAPDataSource/test-code.js +++ b/apps/demos/Demos/PivotGrid/OLAPDataSource/test-code.js @@ -1,6 +1,9 @@ testUtils.postponeUntil(() => testUtils.findElements('td, span').some((x) => (x.innerHTML || '').indexOf('Accessories') !== -1), 200, 20000).then(() => testUtils .postponeUntilFound('.dx-pivotgrid').then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); }))); diff --git a/apps/demos/Demos/PivotGrid/Overview/Angular/app/app.component.html b/apps/demos/Demos/PivotGrid/Overview/Angular/app/app.component.html index d0001f5a2bc8..c91463083245 100644 --- a/apps/demos/Demos/PivotGrid/Overview/Angular/app/app.component.html +++ b/apps/demos/Demos/PivotGrid/Overview/Angular/app/app.component.html @@ -28,6 +28,5 @@ [enabled]="true" [height]="400" > -
diff --git a/apps/demos/Demos/PivotGrid/RemoteVirtualScrolling/test-code.js b/apps/demos/Demos/PivotGrid/RemoteVirtualScrolling/test-code.js index ad543cda5950..701f0d57a62a 100644 --- a/apps/demos/Demos/PivotGrid/RemoteVirtualScrolling/test-code.js +++ b/apps/demos/Demos/PivotGrid/RemoteVirtualScrolling/test-code.js @@ -1,6 +1,9 @@ testUtils.postponeUntil(() => testUtils.findElements('td, span').some((x) => (x.innerHTML || '').indexOf('Aaron') !== -1), 200, 20000).then(() => testUtils .postponeUntilFound('.dx-pivotgrid').then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); }))); diff --git a/apps/demos/Demos/PivotGrid/StandaloneFieldChooser/jQuery/styles.css b/apps/demos/Demos/PivotGrid/StandaloneFieldChooser/jQuery/styles.css index 0cdbb1b739e8..f24e894c3b60 100644 --- a/apps/demos/Demos/PivotGrid/StandaloneFieldChooser/jQuery/styles.css +++ b/apps/demos/Demos/PivotGrid/StandaloneFieldChooser/jQuery/styles.css @@ -1,7 +1,6 @@ .container { position: relative; margin-top: 20px; - margin-bottom: 20px; } .bottom-bar { @@ -19,7 +18,7 @@ background-color: var(--dx-color-options-panel-bg); position: absolute; top: 29px; - bottom: 3px; + bottom: 5px; left: 420px; width: 180px; } diff --git a/apps/demos/Demos/PivotGrid/VirtualScrolling/test-code.js b/apps/demos/Demos/PivotGrid/VirtualScrolling/test-code.js index 5149a1e512cb..0762c286b92d 100644 --- a/apps/demos/Demos/PivotGrid/VirtualScrolling/test-code.js +++ b/apps/demos/Demos/PivotGrid/VirtualScrolling/test-code.js @@ -1,7 +1,10 @@ testUtils .postponeUntilFound('.dx-pivotgrid') .then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); })); diff --git a/apps/demos/Demos/PivotGrid/WebAPIService/test-code.js b/apps/demos/Demos/PivotGrid/WebAPIService/test-code.js index 9e512765ac92..d1d5afccb41b 100644 --- a/apps/demos/Demos/PivotGrid/WebAPIService/test-code.js +++ b/apps/demos/Demos/PivotGrid/WebAPIService/test-code.js @@ -1,6 +1,9 @@ testUtils.postponeUntil(() => testUtils.findElements('span').some((x) => (x.innerHTML || '').indexOf('Home Appliances Total') !== -1), 200, 20000).then(() => testUtils .postponeUntilFound('.dx-pivotgrid').then(() => testUtils.importAnd(() => 'devextreme/ui/pivot_grid', () => DevExpress.ui.dxPivotGrid, (dxPivotGrid) => { - testUtils.findElements('.dx-pivotgrid:first-of-type').forEach((x) => { - dxPivotGrid.getInstance(x).resetOption('height'); + testUtils.findElements('.dx-pivotgrid').forEach((x) => { + const instance = dxPivotGrid.getInstance(x); + instance.skipOptionsRollBack = true; + instance.resetOption('height'); + instance.skipOptionsRollBack = false; }); }))); diff --git a/apps/demos/Demos/Popup/Overview/Angular/app/app.component.html b/apps/demos/Demos/Popup/Overview/Angular/app/app.component.html index 9751d1d9e3b9..33972c873014 100644 --- a/apps/demos/Demos/Popup/Overview/Angular/app/app.component.html +++ b/apps/demos/Demos/Popup/Overview/Angular/app/app.component.html @@ -9,7 +9,10 @@ [src]="employee.Picture" />
- {{ employee.FirstName }} {{ employee.LastName }}{{ employee.FirstName }}{{ " " }}{{ employee.LastName }}

- {{ employee.FirstName }} {{ employee.LastName }}
+ {{ employee.FirstName }}{{ ' ' }}{{ employee.LastName }}
-

Working days count: {{ workingDaysCount().toFixed() }}

+

Working days count: {{ workingDaysCount().toFixed() }}

Options
diff --git a/apps/demos/Demos/RangeSelector/Calculation/Vue/App.vue b/apps/demos/Demos/RangeSelector/Calculation/Vue/App.vue index 1922c14eba14..2b94c7eb2e18 100644 --- a/apps/demos/Demos/RangeSelector/Calculation/Vue/App.vue +++ b/apps/demos/Demos/RangeSelector/Calculation/Vue/App.vue @@ -20,7 +20,7 @@ -

Working days count: {{ workingDaysCount }}

+

Working days count: {{ workingDaysCount }}

Options
diff --git a/apps/demos/Demos/RangeSelector/LogarithmicScale/Angular/app/app.component.ts b/apps/demos/Demos/RangeSelector/LogarithmicScale/Angular/app/app.component.ts index 83b68aab52ff..a2b5f2683a41 100644 --- a/apps/demos/Demos/RangeSelector/LogarithmicScale/Angular/app/app.component.ts +++ b/apps/demos/Demos/RangeSelector/LogarithmicScale/Angular/app/app.component.ts @@ -18,7 +18,7 @@ if (!/localhost/.test(document.location.host)) { }) export class AppComponent { readonly dataSource: Record[] = Array.from({ length: 100 }, (_, i) => ({ - arg: Math.pow(10, i * 0.1), + arg: 10 ** i * 0.1, val: Math.log(i + 1) / Math.log(0.5) + (Math.random() - 0.5) * (100 / (i + 1)) + 10, })); diff --git a/apps/demos/Demos/Scheduler/CurrentTimeIndicator/Vue/AppointmentTemplate.vue b/apps/demos/Demos/Scheduler/CurrentTimeIndicator/Vue/AppointmentTemplate.vue index b2939d9766f1..9df7d26dd0b3 100644 --- a/apps/demos/Demos/Scheduler/CurrentTimeIndicator/Vue/AppointmentTemplate.vue +++ b/apps/demos/Demos/Scheduler/CurrentTimeIndicator/Vue/AppointmentTemplate.vue @@ -1,10 +1,12 @@ diff --git a/apps/demos/Demos/Scheduler/Templates/Vue/AppointmentTemplate.vue b/apps/demos/Demos/Scheduler/Templates/Vue/AppointmentTemplate.vue index aa21bd18b88b..a93dbb5d508c 100644 --- a/apps/demos/Demos/Scheduler/Templates/Vue/AppointmentTemplate.vue +++ b/apps/demos/Demos/Scheduler/Templates/Vue/AppointmentTemplate.vue @@ -1,19 +1,21 @@