Skip to content

Commit

Permalink
changed warning text if user has skipped registration
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 8, 2017
1 parent 98f877c commit 682fea8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/lib/registration/ui/base_system_registration_dialog.rb
Expand Up @@ -359,10 +359,12 @@ def help_text
# @return [Boolean] true when skipping has been confirmed
def show_skipping_warning
# Popup question: confirm skipping the registration
warning = _("If you do not register your system we will not be able\n" \
"to grant you access to the update repositories.\n\n" \
"You can register after the installation or visit our\n" \
"Customer Center for online registration.")
warning = _("Without registration, update-channels will not be\n" \
"configured. This disables updates and security fixes.\n\n" \
"A full system can be installed using the\n" \
"SLE-15-Packages media from download.suse.com.\n" \
"Without this media only a minimum system is available\n" \
"in this installation.")
Yast::Popup.Warning(warning)
end

Expand Down
2 changes: 1 addition & 1 deletion test/base_system_registration_dialog_test.rb
Expand Up @@ -156,7 +156,7 @@
context "when user skips registration" do
it "does not try to register the system and close the dialog" do
allow(Yast::UI).to receive(:UserInput).and_return(:skip_registration, :next)
expect(Yast::Popup).to receive(:Warning).with(/If you do not register/)
expect(Yast::Popup).to receive(:Warning).with(/Without registration/)
.and_return(true)
expect(subject.run).to eq(:skip)
end
Expand Down

0 comments on commit 682fea8

Please sign in to comment.