Update broken tests

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