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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix bcf spec with cuprite
Oliver Günther26c0df0b51ea
diff --git a/modules/bim/spec/features/bcf/api_authorization_spec.rb b/modules/bim/spec/features/bcf/api_authorization_spec.rbindex a0cba3729c0..ad10114fed7 100644--- a/modules/bim/spec/features/bcf/api_authorization_spec.rb+++ b/modules/bim/spec/features/bcf/api_authorization_spec.rb@@ -130,20 +130,13 @@ RSpec.describe "authorization for BCF api",expect(page).to have_content(JSON.dump({ project_id: project.id, name: project.name }))- visit signout_path- wait_for_network_idle+ logout++ page.driver.basic_authorize("foo", "bar")- # A basic auth alert is displayed asking to enter name and password Register- # some basic auth credentials- # - A non-matching url is used so that capybara will issue a CancelAuth- # instead of trying to authenticate- # - The register method is not recognized by selenium-webdriver with Chrome- # 120 with old headless- if page.driver.browser.respond_to?(:register)- page.driver.browser.register(username: "foo", password: "bar", uri: /does_not_match/)- end# While not being logged in and without a token, the api cannot be accessedvisit("/api/bcf/2.1/projects/#{project.id}")+# Cancel button of basic auth should have been chosen nowexpect(page).to have_content(JSON.dump({ message: "You need to be authenticated to access this resource." }))