Skip to content

Commit fbf65f5

Browse files
committed
Add more attributes to the test app elements
1 parent 4b961bf commit fbf65f5

File tree

9 files changed

+25
-11
lines changed

9 files changed

+25
-11
lines changed

test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-chromium.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-chrome.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-mobile-safari.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/csr.spec.ts-snapshots/CSR-test-case-1-webkit.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-chromium.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-chrome.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-mobile-safari.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/e2e/ssr.spec.ts-snapshots/SSR-test-case-1-webkit.txt

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-app/src/app/app.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ <h2>IKImageDirective</h2>
155155
alt="Image with responsive off"
156156
[height]="300"
157157
[width]="300"
158-
[transformation]=""
158+
[transformation]="[{
159+
named: 'restrict-unnamed',
160+
}]"
159161
[responsive]="false"
160162
sizes="(max-width: 600px) 100vw, 50vw"
161163
/>
@@ -164,6 +166,7 @@ <h2>IKVideoDirective</h2>
164166

165167
<!-- Video without ImageKit provider -->
166168
<video
169+
title="Video without ImageKit provider"
167170
ikSrc="sample-video.mp4"
168171
urlEndpoint="https://ik.imagekit.io/demo/"
169172
[height]="300"
@@ -172,7 +175,13 @@ <h2>IKVideoDirective</h2>
172175
></video>
173176

174177
<!-- With ImageKit provider -->
175-
<video ikSrc="sample-video.mp4" [height]="300" [width]="300" [controls]="true"></video>
178+
<video
179+
ikSrc="sample-video.mp4"
180+
[height]="300"
181+
[width]="300"
182+
[controls]="true"
183+
title="Video with ImageKit provider"
184+
></video>
176185

177186
<!-- With transformations -->
178187
<video
@@ -181,6 +190,7 @@ <h2>IKVideoDirective</h2>
181190
[height]="300"
182191
[width]="300"
183192
[controls]="true"
193+
title="Video with transformations"
184194
></video>
185195

186196
<!-- Passing all props to the video tag as it is -->
@@ -192,18 +202,21 @@ <h2>IKVideoDirective</h2>
192202
[autoplay]="true"
193203
[loop]="true"
194204
[muted]="true"
205+
[playsInline]="true"
206+
preload='none'
195207
poster="https://ik.imagekit.io/demo/default-image.jpg"
208+
title="Video with all props"
196209
></video>
197210

198211
<!-- urlEndpoint override -->
199212
<video
200213
ikSrc="sample-video.mp4"
201-
alt="Video with urlEndpoint override"
202214
urlEndpoint="https://ik.imagekit.io/demo2/"
203215
[height]="300"
204216
[width]="300"
205217
[transformation]="[{ height: 100, width: 100 }]"
206218
[controls]="true"
219+
title="Video with urlEndpoint override"
207220
></video>
208221

209222
<!-- transformationPosition="path" -->
@@ -213,6 +226,7 @@ <h2>IKVideoDirective</h2>
213226
[height]="300"
214227
[width]="300"
215228
[transformation]="[{ height: 100, width: 100 }]"
229+
title="Video with path transformation"
216230
></video>
217231
</div>
218232
<div *ngIf="activeTab === 'upload'" class="upload-tests">

0 commit comments

Comments
 (0)