Skip to content

Commit

Permalink
added a testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 17, 2015
1 parent 18232b4 commit cdd9f29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/inst_scc_test.rb
Expand Up @@ -28,6 +28,16 @@
expect(Yast::WFM.call("inst_scc")).to eq(:abort)
end

it "displays an error when loading the available extensions fails" do
# click installing extensions, close the error message and abort the workflow
expect(Yast::UI).to receive(:UserInput).and_return(:extensions, :ok, :abort)

expect_any_instance_of(Registration::RegistrationUI).to receive(:get_available_addons)
.and_raise("Invalid system credentials")

expect(Yast::WFM.call("inst_scc")).to eq(:abort)
end

it "goes back to initial screen when aborting selection of url" do
# User clicks on 'select extensions' first time the initial screen is
# displayed and 'finish' the second time
Expand Down

0 comments on commit cdd9f29

Please sign in to comment.