Slides for the talk given on South Florida Software Testing meetup (https://www.meetup.com/South-Florida-Software-Testing/events/233980212) about choosing a programming language for you test automation project.
14. Full coverage for TodoMVC:
Without “backend” preconditions: 22s
With “backend” preconditions: 17s
=> optimised for 23%
15. A remark
TodoMVC is very simple app with small light-weight
“preconditions” in tests
Real app will usually have much more “hard-weight”
preconditions
So the optimisation may be much bigger
31. module Tasks
extend Capybara ::DSL
def self.open
visit 'https: //todomvc4tasj.herokuapp.com'
end
def self.filter_active
find("a", text:"Active").click
end
def self.filter_completed
find("a", text:"Completed").click
end
def self.add *task_texts
task_texts.each do |text|
find("#new-todo").send_keys(text, :enter)
end
end
...
end