Commit 8912867d authored by jboyson's avatar jboyson

Fix failing tests

parent 222d2d21
...@@ -37,7 +37,7 @@ RSpec.describe 'Environments page', :js do ...@@ -37,7 +37,7 @@ RSpec.describe 'Environments page', :js do
expect(page).to have_css('.environments-container') expect(page).to have_css('.environments-container')
expect(page.all('.environment-name').length).to eq(1) expect(page.all('.environment-name').length).to eq(1)
expect(page.all('.ic-stop').length).to eq(1) expect(page.all('[data-testid="stop-icon"]').length).to eq(1)
end end
end end
......
import { shallowMount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import ExternalUrlComp from '~/environments/components/environment_external_url.vue'; import ExternalUrlComp from '~/environments/components/environment_external_url.vue';
describe('External URL Component', () => { describe('External URL Component', () => {
...@@ -6,7 +6,7 @@ describe('External URL Component', () => { ...@@ -6,7 +6,7 @@ describe('External URL Component', () => {
const externalUrl = 'https://gitlab.com'; const externalUrl = 'https://gitlab.com';
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(ExternalUrlComp, { propsData: { externalUrl } }); wrapper = mount(ExternalUrlComp, { propsData: { externalUrl } });
}); });
it('should link to the provided externalUrl prop', () => { it('should link to the provided externalUrl prop', () => {
......
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