Skip to content

Commit

Permalink
Increase tests for ServiceWidget#content
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Jul 31, 2018
1 parent 90a30dd commit 6fa6567
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions library/systemd/test/yast2/service_widget_test.rb
Expand Up @@ -50,6 +50,24 @@
it "returns Term" do
expect(subject.content).to be_a(Yast::Term)
end

it "includes status label" do
status_label = find_term(subject.content, :Label, :service_widget_status)

expect(status_label).to_not be_nil
end

it "includes action selector" do
action_selector = find_term(subject.content, :ComboBox, :service_widget_action)

expect(action_selector).to_not be_nil
end

it "includes start mode selector" do
autostart_selector = find_term(subject.content, :ComboBox, :service_widget_autostart)

expect(autostart_selector).to_not be_nil
end
end

describe "#store" do
Expand Down

0 comments on commit 6fa6567

Please sign in to comment.