Skip to content

Commit 4eaf5f3

Browse files
committed
Rudimentary Feature Spec for conducting a simple experiment
1 parent f591de4 commit 4eaf5f3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

evaluationserver/spec/features/conduct_experiment_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
RSpec.feature "conduct experiment", type: :feature do
44

55
scenario "with static text" do
6-
6+
@experiment = create(:experiment_with_static_text)
7+
visit start_path(:experiment_hash => @experiment.id_hash)
8+
expect(page).to have_content(Nokogiri::XML(@experiment.steps.first.textual_elements.first.html).content)
9+
find('input[name="commit"]').click
710
end
811

912
scenario "with scene" do
@@ -13,7 +16,11 @@
1316

1417
scenario "with scene test" do
1518

19+
end
20+
21+
scenario "with multiple scenes test" do
1622

1723
end
24+
1825

1926
end

0 commit comments

Comments
 (0)