debian-mirror-gitlab/spec/views/groups/observability.html.haml_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
400 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'groups/observability/index' do
let_it_be(:iframe_url) { "foo.test" }
before do
assign(:observability_iframe_src, iframe_url)
end
it 'renders as expected' do
render
page = Capybara.string(rendered)
iframe = page.find('iframe#observability-ui-iframe')
expect(iframe['src']).to eq(iframe_url)
end
end