Remove superfluous test attributes (#5927)

I found while working on #5926 that x-icon already adds
assertion-compatible selectors, so these wrappers are
unnecessary.
This commit is contained in:
Buck Doyle 2019-07-08 10:36:56 -05:00 committed by GitHub
parent d5232ecf78
commit 4edd1d78c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@
<tbody>
<tr data-test-entry>
<td colspan="3">
<span data-test-empty-icon>{{x-icon "alert-circle-outline"}}</span>
{{x-icon "alert-circle-outline"}}
<span class="name" data-test-name>Directory is empty</span>
</td>
</tr>

View File

@ -2,9 +2,9 @@
<td>
{{#link-to "allocations.allocation.task.fs" task.allocation task pathToEntry activeClass="is-active"}}
{{#if entry.IsDir}}
<span data-test-directory-icon>{{x-icon "folder-outline"}}</span>
{{x-icon "folder-outline"}}
{{else}}
<span data-test-file-icon>{{x-icon "file-outline"}}</span>
{{x-icon "file-outline"}}
{{/if}}
<span class="name" data-test-name>{{entry.Name}}</span>

View File

@ -28,9 +28,9 @@ export default create({
directoryEntries: collection('[data-test-entry]', {
name: text('[data-test-name]'),
isFile: isPresent('[data-test-file-icon]'),
isDirectory: isPresent('[data-test-directory-icon]'),
isEmpty: isPresent('[data-test-empty-icon]'),
isFile: isPresent('.icon-is-file-outline'),
isDirectory: isPresent('.icon-is-folder-outline'),
isEmpty: isPresent('.icon-is-alert-circle-outline'),
size: text('[data-test-size]'),
lastModified: text('[data-test-last-modified]'),