Removing ambiguity and non-working selectors

This commit is contained in:
Dmitriy Zaporozhets 2013-02-21 13:28:05 +02:00
parent 5aeaf248f1
commit cce14e0b01
4 changed files with 8 additions and 6 deletions

View file

@ -17,7 +17,7 @@ describe "On the project wall", js: true do
it { should have_css(".js-main-target-form", visible: true, count: 1) }
# button initalization
it { within(".js-main-target-form") { should have_button("Add Comment") } }
it { find(".js-main-target-form input[type=submit]").value.should == "Add Comment" }
it { within(".js-main-target-form") { should_not have_link("Cancel") } }
# notifiactions