Sha256: d314b65e7d5a1eb21478a2580121f908091f2a42557f9665ed28d5a9c464d36e

Contents?: true

Size: 550 Bytes

Versions: 13

Compression:

Stored size: 550 Bytes

Contents

module Cmor
  module Legal
    module Frontend
      module SpecHelpers
        module Feature
          def accept_eu_gdpr_cookies
            if has_css?("a#cmor-legal-cookies-expand_preferences")
              find("a#cmor-legal-cookies-expand_preferences").click
              find("input#cmor-legal-cookies-accept").click
            else
              puts "WARNING: Could not accept EU GDPR Cookies as the consent button ('input#cmor-legal-cookies-accept') was not found."
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cmor_legal_frontend-0.0.60.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.59.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.58.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.57.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.56.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.55.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.54.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.53.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.52.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.51.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.50.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.49.pre lib/cmor/legal/frontend/spec_helpers/feature.rb
cmor_legal_frontend-0.0.48.pre lib/cmor/legal/frontend/spec_helpers/feature.rb