WD-17071 - chore(tests): add tests for the provider list #384
Annotations
2 errors and 1 warning
Run yarn --cwd ui test-js --coverage.enabled true:
ui/src/pages/providers/ProviderList/ProviderList.test.tsx#L75
TestingLibraryElementError: Unable to find an element by: [data-testid="DeleteProviderBtn"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="p-panel"
>
<div
class="p-panel__header "
>
<div
class="p-panel__title"
>
<h1
class="p-heading--4 u-no-margin--bottom"
>
Identity Providers
</h1>
</div>
<div
class="p-panel__controls"
>
<button
class="p-button--positive"
>
Add ID provider
</button>
</div>
</div>
<div
class="p-panel__content"
>
<div
class="row"
>
<div
class="col-12"
>
<table
class="u-table-layout--auto p-table--mobile-card"
role="grid"
>
<thead>
<tr
role="row"
>
<th
aria-sort="none"
role="columnheader"
>
Name
</th>
<th
aria-sort="none"
role="columnheader"
>
Provider
</th>
<th
role="columnheader"
>
Actions
</th>
</tr>
</thead>
<tbody>
<tr
role="row"
>
<td
aria-hidden="false"
class=""
data-heading="Name"
role="rowheader"
/>
<td
aria-hidden="false"
class=""
data-heading="Provider"
role="gridcell"
/>
<td
aria-hidden="false"
class=""
data-heading="Actions"
role="gridcell"
>
<button
class="p-button has-icon u-no-margin--bottom"
data-testid="EditProviderBtn"
>
<i
class="p-icon--edit"
/>
<span>
Edit
</span>
</button>
<button
class="p-button u-no-margin--bottom"
title="Confirm delete"
>
Delete
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div />
</body>
Ignored nodes: comments, script, style
<body>
<div>
<div
class="p-panel"
>
<div
class="p-panel__header "
>
<div
class="p-panel__title"
>
<h1
class="p-heading--4 u-no-margin--bottom"
>
Identity Providers
</h1>
</div>
<div
class="p-panel__controls"
>
<button
class="p-button--positive"
>
Add ID provider
</button>
</div>
</div>
<div
class="p-panel__content"
>
<div
class="row"
>
<div
class="col-12"
>
<table
class="u-table-layout--auto p-table--mobile-card"
role="grid"
>
<thead>
<tr
role="row"
>
<th
aria-sort="none"
role="columnheader"
>
Name
</th>
<th
aria-sort="none"
|
Run yarn --cwd ui test-js --coverage.enabled true
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading