diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7ff4bd..d218078 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,22 @@ jobs: ruby-version: ${{ env.RUBY_VERSION }} bundler-cache: true + - uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: 119.0.6045.105 + + - name: List Chrome + shell: "bash" + run: apt list --installed | grep chrome + + - name: Remove Chrome + shell: "bash" + run: sudo apt remove google-chrome-stable + + - uses: browser-actions/setup-chrome@v1 + with: + chrome-version: 119.0.6045.105 + - name: Setup Database run: bundle exec rake test_app diff --git a/app/forms/decidim/odoo/verifications/odoo_member.rb b/app/forms/decidim/odoo/verifications/odoo_member.rb index 7136871..3820ba5 100644 --- a/app/forms/decidim/odoo/verifications/odoo_member.rb +++ b/app/forms/decidim/odoo/verifications/odoo_member.rb @@ -26,7 +26,7 @@ def organization end def uid - odoo_user&.odoo_user_id + odoo_user&.ref end def odoo_user diff --git a/spec/forms/decidim/odoo/verifications/odoo_member_spec.rb b/spec/forms/decidim/odoo/verifications/odoo_member_spec.rb index ce7ccb2..28aa38d 100644 --- a/spec/forms/decidim/odoo/verifications/odoo_member_spec.rb +++ b/spec/forms/decidim/odoo/verifications/odoo_member_spec.rb @@ -21,7 +21,7 @@ module Verifications let(:odoo_user) { create :odoo_user, member: true } let(:metadata) do { - uid: odoo_user.odoo_user_id, + uid: odoo_user.ref, odoo_user_ref: odoo_user.ref } end