Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

attempt to stabilize spec

ulferts88799dbeb58e
diff --git a/spec/features/projects/projects_spec.rb b/spec/features/projects/projects_spec.rb
index 1f007758f40..6a7483a2241 100644
--- a/spec/features/projects/projects_spec.rb
+++ b/spec/features/projects/projects_spec.rb
@@ -68,13 +68,18 @@ describe 'Projects', type: :feature, js: true do
end
it 'can create a subproject' do
- click_on 'Foo project'
+ click_on project.name
SeleniumHubWaiter.wait
click_on 'Project settings'
SeleniumHubWaiter.wait
click_on 'New subproject'
- fill_in 'project[name]', with: 'Foo child'
+ fill_in 'Name', with: 'Foo child'
+
+ # This will also check that the "Advanced settings" are opened
+ expect(page)
+ .to have_field('Subproject of', with: project.id)
+
click_on 'Create'
expect(page).to have_content 'Successful creation.'