Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/visual-tests-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export class AppComponent {

readonly fullInfo = signal('');

constructor() {
this.updateEmployeeInfo();
}

updateEmployeeInfo() {
let result = '';
result += (`${this.firstName || ''} ${this.lastName || ''}`).trim();
Expand Down
1 change: 1 addition & 0 deletions apps/demos/Demos/Autocomplete/Overview/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== '';
}
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/Demos/Autocomplete/Overview/jQuery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ $(() => {
},
});

updateEmployeeInfo();

function updateEmployeeInfo() {
let result = `${firstName || ''} ${lastName || ''}`.trim();

Expand Down
42 changes: 21 additions & 21 deletions apps/demos/Demos/Charts/Annotation/Angular/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,6 @@
<dxo-chart-font [size]="16" [weight]="600"></dxo-chart-font>
<dxo-chart-image [width]="50.5" [height]="105.75"></dxo-chart-image>
</dxo-chart-common-annotation-settings>
<dxi-chart-annotation
type="text"
text="WWDC 2017"
[argument]="appleWWDCDate"
description="The Apple Worldwide Developers Conference was held from June 5 to June 9, 2017 at the San Jose Convention Center in San Jose, California, which was the first time since 2002 that the conference took place in the city. Software announcements included iOS 11, watchOS 4, macOS High Sierra, and updates to tvOS. Hardware announcements included updates to iMac, MacBook and MacBook Pro, as well as the new iMac Pro, 10.5-inch iPad Pro and smart speaker HomePod. Fall Out Boy performed at the Bash held in Discovery Meadow on June 8"
></dxi-chart-annotation>
<dxi-chart-annotation
type="text"
text="Apple TV+ announced"
[argument]="appleTVAnnouncementDate"
description="Apple TV+ is an upcoming over-the-top ad-free subscription video on demand web television service announced by Apple Inc. in 2019 during their March 25 Apple Special Event held at Steve Jobs Theater."
></dxi-chart-annotation>
<dxi-chart-annotation
[argument]="watchReleaseDate"
[paddingTopBottom]="5"
description="Apple Watch is a line of smartwatches designed, developed, and marketed by Apple Inc. It incorporates fitness tracking and health-oriented capabilities with integration with iOS and other Apple products and services. The Apple Watch was released on April 24, 2015 and quickly became the best-selling wearable device with 4.2 million sold in the second quarter of the 2015 fiscal year"
>
<dxo-chart-image
url="../../../../images/Charts/Annotation/apple-watch.png"
></dxo-chart-image>
</dxi-chart-annotation>
<dxi-chart-annotation
[argument]="seReleaseDate"
description="The iPhone SE (Special Edition) is a smartphone that was designed and marketed by Apple Inc. It is part of the ninth generation of the iPhone alongside the iPhone 6S. It was announced on March 21, 2016 at the Town Hall auditorium in the Apple Campus by Apple executive Greg Joswiak, with pre-orders beginning on March 24, and official release on March 31, 2016. It was re-released almost a year later on March 24, 2017 with larger storage capacities. The iPhone SE shares the same physical design and dimensions as the iPhone 5S, but has upgraded internal hardware, including the newer Apple A9 system-on-chip, greater battery capacity, and a 12-megapixel rear camera that can record 4K video. Along with the iPhone 6S and the iPhone X, the iPhone SE was discontinued by Apple on September 12, 2018"
Expand All @@ -52,4 +31,25 @@
url="../../../../images/Charts/Annotation/iphone-x.png"
></dxo-chart-image>
</dxi-chart-annotation>
<dxi-chart-annotation
[argument]="watchReleaseDate"
[paddingTopBottom]="5"
description="Apple Watch is a line of smartwatches designed, developed, and marketed by Apple Inc. It incorporates fitness tracking and health-oriented capabilities with integration with iOS and other Apple products and services. The Apple Watch was released on April 24, 2015 and quickly became the best-selling wearable device with 4.2 million sold in the second quarter of the 2015 fiscal year"
>
<dxo-chart-image
url="../../../../images/Charts/Annotation/apple-watch.png"
></dxo-chart-image>
</dxi-chart-annotation>
<dxi-chart-annotation
type="text"
text="WWDC 2017"
[argument]="appleWWDCDate"
description="The Apple Worldwide Developers Conference was held from June 5 to June 9, 2017 at the San Jose Convention Center in San Jose, California, which was the first time since 2002 that the conference took place in the city. Software announcements included iOS 11, watchOS 4, macOS High Sierra, and updates to tvOS. Hardware announcements included updates to iMac, MacBook and MacBook Pro, as well as the new iMac Pro, 10.5-inch iPad Pro and smart speaker HomePod. Fall Out Boy performed at the Bash held in Discovery Meadow on June 8"
></dxi-chart-annotation>
<dxi-chart-annotation
type="text"
text="Apple TV+ announced"
[argument]="appleTVAnnouncementDate"
description="Apple TV+ is an upcoming over-the-top ad-free subscription video on demand web television service announced by Apple Inc. in 2019 during their March 25 Apple Special Event held at Steve Jobs Theater."
></dxi-chart-annotation>
</dx-chart>
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/Colorization/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="options">
<div class="caption">Options</div>
<div class="option">
<span>Colorization Type</span>
<span>Colorization Type </span>
<DxSelectBox
:data-source="colorizationOptions"
:width="200"
Expand Down Expand Up @@ -71,7 +71,7 @@ const customizeTooltip = ({ node, node: { data: { name } }, valueText }: Record<
}

.option > span {
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-widget {
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/ExportAndPrintingAPI/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
icon="print"
text="Print"
@click="printChart"
/>
/>{{ ' ' }}
<DxButton
icon="export"
text="Export"
Expand Down Expand Up @@ -82,7 +82,7 @@ function exportChart() {
}

#buttonGroup > .dx-button {
margin: 0 22px;
margin: 0 20px;
}

.title {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<div class="chart-environment">
<div id="custom-markup-container">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="820px" height="420px">
<path opacity="1" d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0" stroke="#999999" stroke-width="1" stroke-linecap="butt" fill="white" stroke-linejoin="miter"></path>
<path d="M 13 407 L 128 407 L 232 39 L 13 39" fill="#6D39C3"></path>
<path d="M 46 381 L 161 381 L 265 13 L 46 13" opacity="0.5" fill="#6D39C3"></path>
<text transform="translate(30,89)" class="custom-markup-text custom-markup-text-title">
Expand All @@ -30,7 +31,6 @@
<tspan x="0" y="0">Export a chart with</tspan>
<tspan x="0" y="19.2">custom elements</tspan>
</text>
<path opacity="0.8" d="M 0 0 L 820 0 L 820 420 L 0 420 L 0 0" stroke="#999999" stroke-width="1" stroke-linecap="butt" fill="none" stroke-linejoin="miter"></path>
</svg>
</div>
<div id="chart"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/Line/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="options">
<div class="caption">Options</div>
<div class="option">
<span>Series Type</span>
<span>Series Type </span>
<DxSelectBox
:data-source="types"
:input-attr="{ 'aria-label': 'Series Type' }"
Expand Down Expand Up @@ -87,7 +87,7 @@ const type = ref<DxChartTypes.SeriesType>('line');
}

.option > span {
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-widget {
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/Demos/Charts/LoadDataOnDemand/test-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});
6 changes: 3 additions & 3 deletions apps/demos/Demos/Charts/PointsAggregation/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
/>
</div>
<div class="option">
<span>Interval:</span>
<span>Interval:</span>{{ ' ' }}
<DxSelectBox
:data-source="aggregationIntervals"
v-model:value="currentInterval"
Expand All @@ -90,7 +90,7 @@
/>
</div>
<div class="option">
<span>Method:</span>
<span>Method:</span>{{ ' ' }}
<DxSelectBox
:data-source="aggregationFunctions"
v-model:value="currentFunction"
Expand Down Expand Up @@ -194,7 +194,7 @@ function customizeTooltip(pointInfo: any) {
.option > span {
width: 50px;
display: inline-block;
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-selectbox {
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/ResolveLabelOverlap/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="options">
<div class="caption">Options</div>
<div class="option">
<span>Overlapping Modes:</span>
<span>Overlapping Modes: </span>
<DxSelectBox
:data-source="overlappingModes"
:input-attr="{ 'aria-label': 'Overlapping Mode' }"
Expand Down Expand Up @@ -67,7 +67,7 @@ const currentMode = ref<DxChartTypes.ChartsAxisLabelOverlap>(overlappingModes[0]
.option > span {
position: relative;
top: 2px;
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-widget {
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/Spline/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="options">
<div class="caption">Options</div>
<div class="option">
<span>Series Type</span>
<span>Series Type </span>
<DxSelectBox
:data-source="types"
:input-attr="{ 'aria-label': 'Series Type' }"
Expand Down Expand Up @@ -88,7 +88,7 @@ const type = ref(types[0]);
}

.option > span {
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-widget {
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/Demos/Charts/TilingAlgorithms/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="options">
<div class="caption">Options</div>
<div class="option">
<span>Tiling Algorithm</span>
<span>Tiling Algorithm </span>
<DxSelectBox
:data-source="algorithms"
:input-attr="{ 'aria-label': 'Algorithm' }"
Expand Down Expand Up @@ -106,7 +106,7 @@ function customizeTooltip({
}

.option > span {
margin-right: 14px;
margin-right: 10px;
}

.option > .dx-widget {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions apps/demos/Demos/Chat/MessageStreaming/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/Demos/Common/ListsOverview/React/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const App = () => {
elementAttr={tileViewAttrs}
/>

<div className="address">{currentHotel.Postal_Code}, {currentHotel.Address}</div>
<div className="address">{`${currentHotel.Postal_Code}, ${currentHotel.Address}`}</div>
<div className="description">{currentHotel.Description}</div>
</div>
</>
Expand Down
4 changes: 1 addition & 3 deletions apps/demos/Demos/Common/ListsOverview/ReactJs/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ const App = () => {
elementAttr={tileViewAttrs}
/>

<div className="address">
{currentHotel.Postal_Code}, {currentHotel.Address}
</div>
<div className="address">{`${currentHotel.Postal_Code}, ${currentHotel.Address}`}</div>
<div className="description">{currentHotel.Description}</div>
</div>
</>
Expand Down
6 changes: 3 additions & 3 deletions apps/demos/Demos/Common/ListsOverview/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
</div>
<div class="price-container">
<div class="price">{{ currency(item.Price) }}</div>
<div class="price">{{ currency(item.Price) }}</div>{{ ' ' }}
<div class="caption">per<br>night</div>
</div>
</div>
Expand All @@ -41,7 +41,7 @@
/>
</div>
<div class="price-container">
<div class="price">{{ currency(currentHotel.Price) }}</div>
<div class="price">{{ currency(currentHotel.Price) }}</div>{{ ' ' }}
<div class="caption">per<br>night</div>
</div>
</div>
Expand Down Expand Up @@ -200,6 +200,6 @@ function listSelectionChanged(e: DxListTypes.SelectionChangedEvent) {
.price-container .caption {
font-size: 11px;
line-height: 12px;
padding-left: 6px;
padding-left: 2px;
}
</style>
Loading