Matt-Yorkley
b9edea7c0e
Rename 'admin/overview#index' route from :admin to :admin_dashboard
...
Fixes issues with route declarations in Rails 4
2020-01-12 13:11:33 +01:00
Maikel Linke
ac79e44d9a
Fix current rubocop violations
2019-06-14 11:40:09 +10:00
luisramos0
d2f62f86a9
Run transpec in a few spec/features/admin specs
2019-05-28 16:59:51 +01:00
luisramos0
86b0d71c7e
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
2019-05-28 12:57:29 +01:00
Maikel Linke
843ec2c08f
Wait for table rows before testing them
...
Unfortunately, the exact table row matcher doesn't wait correctly for
changes on the page. Waiting correctly would mean to assemble a very
complicated xpath similar to this gem:
https://github.com/jnicklas/capybara_table
2019-01-16 16:21:30 +00:00
Rob Harrington
5ae33747ea
Update enterprise_relationships_spec to work with Selenium
2019-01-16 16:21:30 +00:00
Maikel Linke
0b39054954
Speed up relationships spec
...
From 18s to 12s: 33% speed up
2018-08-07 12:33:26 +10:00
Maikel Linke
126f312c6b
Make spec more robust not relying on order
...
Enterprises can be in different order. Using `with_options` doesn't
care about the order.
2018-08-07 12:30:59 +10:00
Kristina Lim
c16f4203f9
Rename enterprise "Relationships" to "Permissions"
...
This only updates en* translations, and does not affect URLs and other
back-end references.
2018-07-17 16:03:48 +10:00
Rob Harrington
3f466e86b6
Renaming 'Override Variant Details' permission to 'Add Products To Inventory'
...
Style changes to make enterprise relationships page more useable
2016-03-02 12:10:49 +11:00
Rohan Mitchell
97e49c2bdb
Replace 'array.sort.should == expected.sort' pattern with match_array
2015-05-28 10:46:08 +10:00
Rohan Mitchell
7ac888ae00
Admin can grant create_variant_overrides permission
2015-01-30 11:56:05 +11:00
Rohan Mitchell
a93a824b83
Admin can grant permission for an enterprise to edit the profile of another
2015-01-15 13:43:38 +11:00
Rob Harrington
9520eeeb15
can specify attributes for create_enterpise_user
2014-09-25 11:56:18 +10:00
Rohan Mitchell
32a2e793ad
When deleting enterprise relationships, delete dependent permissions
2014-09-10 14:49:15 +10:00
Rob H
20bfcd6e48
Switching enterprise relationships form around
2014-09-05 17:11:57 +10:00
Rohan Mitchell
0b61872d96
Revert 5ede8d1, reinstating a4be0ff..7b89e6a
2014-08-29 16:38:10 +10:00
Rob H
ba3f97ca1f
Fixing enterprise relationships spec
2014-08-28 14:45:24 +10:00
Rob H
5ede8d169f
Revert a4be0ff..7b89e6a for deployment
2014-08-28 14:32:57 +10:00
Rohan Mitchell
1871d42e68
Switch to correct grammatical ordering of child/parent enterprise on enterprise relationships page
2014-08-28 10:09:50 +10:00
Rohan Mitchell
5ef13d3c5a
Change 'add products to OC' permission into the more general 'add enterprise to OC'
2014-08-28 10:09:50 +10:00
Rohan Mitchell
1a995aedda
Simplify enterprise_relationship factory - leverage permissions_list= model method
2014-08-25 15:20:46 +10:00
Rohan Mitchell
3932884dba
Admin can create enterprise relationships with permissions
2014-08-25 14:59:10 +10:00
Rohan Mitchell
50c559964c
Display enterprise relationship permissions
2014-08-25 13:28:02 +10:00
Rohan Mitchell
a16f726377
Extract have_relationship test
2014-05-22 11:32:37 +10:00
Rohan Mitchell
c2f762d570
Enterprise user can only see relationships involving their enterprises
2014-05-22 11:27:19 +10:00
Rohan Mitchell
06955a024f
Enterprise user can only create relationships with their own enterprises as parent
2014-05-22 11:02:03 +10:00
Rohan Mitchell
48a7b9c3f8
Fix specs from 'X permits Y' table format change
2014-05-22 08:50:52 +10:00
Rohan Mitchell
5d0680234d
Admin can delete enterprise relationships
2014-05-21 11:29:11 +10:00
Rohan Mitchell
b9a9937541
Attempting to create a relationship with invalid data shows an error message
2014-05-21 11:29:11 +10:00
Rohan Mitchell
9b2a80c6b5
Admin can create enterprise relationships
2014-05-21 11:29:11 +10:00
Rohan Mitchell
5f4e4ebeb0
Admin can list enterprise relationships
2014-05-21 11:29:11 +10:00