Skip to content

Commit

Permalink
#6776 - fixed markup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Apr 4, 2024
1 parent 3438507 commit bbf6023
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/defaultCss/cssstandard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export var defaultStandardCss = {
file: {
root: "sv_q_file",
placeholderInput: "sv-visuallyhidden",
previewItem: "sd-file__preview-item",
previewItem: "sv_q_file_preview",
removeButton: "sv_q_file_remove_button",
fileInput: "sv-visuallyhidden",
removeFile: "sv_q_file_remove",
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-2-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item1.png">
<div class="sd-context-btn sd-context-btn--negative sd-file__remove-file-button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand All @@ -64,7 +64,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sd-file__preview" style="display:none;">
<span class="sd-file__preview-item" style="display:none;">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item2.png">
<div class="sd-context-btn sd-context-btn--negative sd-file__remove-file-button">
Expand Down
6 changes: 3 additions & 3 deletions tests/markup/snapshots/file-2-zip-png-ro.snap.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sd-file sd-file--answered">
<div class="sd-file sd-file--answered sd-file--readonly">
<input class="form-control sd-visuallyhidden" disabled="" id="testid0i" multiple="" placeholder="Question title" style="color:transparent;" type="file">
<div class="sd-file__drag-area">
<div class="sd-file__decorator">
Expand Down Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand All @@ -56,7 +56,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item2.png">
</div>
Expand Down
4 changes: 2 additions & 2 deletions tests/markup/snapshots/file-2-zip-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand All @@ -64,7 +64,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item2.png">
<div class="sd-context-btn sd-context-btn--negative sd-file__remove-file-button">
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-2-zip.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-mob2-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item1.png">
<div class="sd-context-btn sd-context-btn--negative sd-file__remove-file-button">
Expand Down
6 changes: 3 additions & 3 deletions tests/markup/snapshots/file-mob2-zip-png-ro.snap.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sd-file sd-file--answered sd-file--mobile">
<div class="sd-file sd-file--answered sd-file--mobile sd-file--readonly">
<input class="form-control sd-visuallyhidden" disabled="" id="testid0i" multiple="" placeholder="Question title" style="color:transparent;" type="file">
<div class="sd-file__drag-area">
<div class="sd-file__decorator">
Expand Down Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand All @@ -56,7 +56,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sd-file__preview" style="display:none;">
<span class="sd-file__preview-item" style="display:none;">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item2.png">
</div>
Expand Down
4 changes: 2 additions & 2 deletions tests/markup/snapshots/file-mob2-zip-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand All @@ -64,7 +64,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sd-file__preview" style="display:none;">
<span class="sd-file__preview-item" style="display:none;">
<div class="sd-file__image-wrapper">
<img alt="File preview" src="#item2.png">
<div class="sd-context-btn sd-context-btn--negative sd-file__remove-file-button">
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-mob2-zip.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</div>
</div>
<div class="sd-file__list">
<span class="sd-file__preview">
<span class="sd-file__preview-item">
<div class="sd-file__image-wrapper sd-file__image-wrapper--default-image">
<svg class="sd-file__default-image sv-svg-icon" role="img">
<use xlink:href="#icon-defaultfile" class="">
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-modern-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span>Clear</span>
</button>
<div>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
<img alt="File preview" src="#item1.png">
<div>
Expand Down
4 changes: 2 additions & 2 deletions tests/markup/snapshots/file-modern-zip-png-ro.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
</div>
</div>
<div>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
</div>
<div class="sv-file__sign">
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
<img alt="File preview" src="#item2.png">
</div>
Expand Down
4 changes: 2 additions & 2 deletions tests/markup/snapshots/file-modern-zip-png.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span>Clear</span>
</button>
<div>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
<div>
<span class="sv-hidden">Remove this file</span>
Expand All @@ -30,7 +30,7 @@
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a>
</div>
</span>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
<img alt="File preview" src="#item2.png">
<div>
Expand Down
2 changes: 1 addition & 1 deletion tests/markup/snapshots/file-modern-zip.snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span>Clear</span>
</button>
<div>
<span class="sv-file__preview">
<span class="sd-file__preview-item">
<div>
<div>
<span class="sv-hidden">Remove this file</span>
Expand Down

0 comments on commit bbf6023

Please sign in to comment.