Skip to content

Commit

Permalink
Fix uid method in OdooMember verification (#19)
Browse files Browse the repository at this point in the history
* Fix uid method in OdooMember verification

* Pinning chrome version to v119
  • Loading branch information
fblupi authored Feb 26, 2024
1 parent 1e05082 commit 13ac4e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/forms/decidim/odoo/verifications/odoo_member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def organization
end

def uid
odoo_user&.odoo_user_id
odoo_user&.ref
end

def odoo_user
Expand Down
2 changes: 1 addition & 1 deletion spec/forms/decidim/odoo/verifications/odoo_member_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13ac4e1

Please sign in to comment.