Skip to content

Commit

Permalink
Update spec and cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Mar 20, 2024
1 parent 762e478 commit a4770f4
Show file tree
Hide file tree
Showing 20 changed files with 7,804 additions and 6,048 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/api/spec/components/sourcediff_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

context 'with a request with a submit action' do
before do
action = bs_request.send(:action_details, bs_request_opts, xml: bs_request.bs_request_actions.last)
render_inline(described_class.new(bs_request: bs_request, action: action))
render_inline(described_class.new(bs_request: bs_request, action: bs_request.bs_request_actions.last))
end

it 'renders the diff' do
Expand Down
18 changes: 10 additions & 8 deletions src/api/spec/features/webui/requests/submissions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@
describe 'when under the beta program', :beta do
describe 'submit several packages at once against a factory staging project' do
let!(:factory) { create(:project, name: 'openSUSE:Factory') }
let!(:staging_workflow) { create(:staging_workflow, project: factory) }
let!(:staging_workflow) { create(:staging_workflow, project: factory, commit_user: factory.commit_user) }
# Create another action to submit new files from different packages to package_b
let!(:another_bs_request_action) do
create(:bs_request_action_submit,
bs_request: bs_request,
source_project: source_project,
source_package: source_package,
target_project: factory,
target_package: target_package_b)
receiver.run_as do
create(:bs_request_action_submit,
bs_request: bs_request,
source_project: source_project,
source_package: source_package,
target_project: factory,
target_package: target_package_b)
end
end
let(:bs_request) do
create(:bs_request_with_submit_action,
Expand All @@ -139,7 +141,7 @@
login receiver
visit request_show_path(bs_request.number)

expect(page).to have_text(bs_request.bs_request_actions.first[:name])
expect(page).to have_text(bs_request.bs_request_actions.first.name)
expect(page).to have_text('Next')
expect(page).to have_text("(of #{bs_request.bs_request_actions.count})")
expect(page).to have_css('.bg-staging')
Expand Down

0 comments on commit a4770f4

Please sign in to comment.