Update broken tests

parent 289dffe0
......@@ -2,22 +2,19 @@
exports[`GroupActivity component matches the snapshot 1`] = `
<div
class="card"
class="gl-card gl-mb-5"
>
<!---->
<div
class="card-header"
class="gl-card-header"
>
<strong>
Recent activity (last 90 days)
</strong>
</div>
<div
class="card-body"
class="gl-card-body"
>
<!---->
<!---->
<div
class="gl-display-flex"
>
......@@ -76,9 +73,8 @@ exports[`GroupActivity component matches the snapshot 1`] = `
</p>
</div>
</div>
</div>
<!---->
<!---->
</div>
`;
......@@ -2,13 +2,12 @@
exports[`OnDemandScansScannerProfileSelector renders properly with profiles 1`] = `
<div
class="card"
class="gl-card"
data-foo="bar"
value="gid://gitlab/DastScannerProfile/1"
>
<!---->
<div
class="card-header"
class="gl-card-header"
>
<div
class="row"
......@@ -46,12 +45,11 @@ exports[`OnDemandScansScannerProfileSelector renders properly with profiles 1`]
</div>
</div>
</div>
<div
class="card-body"
class="gl-card-body"
>
<!---->
<!---->
<fieldset
class="form-group gl-form-group"
>
......@@ -318,21 +316,19 @@ exports[`OnDemandScansScannerProfileSelector renders properly with profiles 1`]
<!---->
</div>
</fieldset>
</div>
<!---->
<!---->
</div>
`;
exports[`OnDemandScansScannerProfileSelector renders properly without profiles 1`] = `
<div
class="card"
class="gl-card"
data-foo="bar"
>
<!---->
<div
class="card-header"
class="gl-card-header"
>
<div
class="row"
......@@ -371,12 +367,11 @@ exports[`OnDemandScansScannerProfileSelector renders properly without profiles 1
</div>
</div>
</div>
<div
class="card-body"
class="gl-card-body"
>
<!---->
<!---->
<p
class="gl-text-gray-700"
>
......@@ -398,9 +393,8 @@ exports[`OnDemandScansScannerProfileSelector renders properly without profiles 1
Create a new scanner profile
</span>
</a>
</div>
<!---->
<!---->
</div>
`;
......@@ -73,7 +73,7 @@ describe('Embed Group', () => {
metricsWithDataGetter.mockReturnValue([1]);
mountComponent({ shallow: false, stubs: { MetricEmbed: true } });
expect(wrapper.find('.card-body').classes()).not.toContain('d-none');
expect(wrapper.find('.gl-card-body').classes()).not.toContain('d-none');
});
it('collapses when clicked', done => {
......@@ -83,7 +83,7 @@ describe('Embed Group', () => {
wrapper.find(GlButton).trigger('click');
wrapper.vm.$nextTick(() => {
expect(wrapper.find('.card-body').classes()).toContain('d-none');
expect(wrapper.find('.gl-card-body').classes()).toContain('d-none');
done();
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment