[MGNLRES-262] Don't depend upon CSS classes as literals in ResourcesColumnFormatterTest Created: 01/Mar/16  Updated: 29/Mar/22  Resolved: 14/Mar/16

Status: Closed
Project: Magnolia Resources Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4.5

Type: Improvement Priority: Critical
Reporter: Hieu Nguyen Duc Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: resources-app
Remaining Estimate: 0d
Time Spent: 5h
Original Estimate: 3d

Issue Links:
dependency
depends upon MGNLUI-3596 Indicate the activation state using n... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Sprint: Saigon 35
Story Points: 5
Team: Nucleus

 Description   
  • In workbench we updated activation states using new icons. Please update ResourcesStatusColumnFormatterTest to use the new activation state icons. If we don't do it and merge MGNLUI-3596 to UI, the build would fail.
  • We created the CSS constants in StatusColumnFormatter that you can reuse.
    public static final String ACTIVATION_STATUS_MODIFIED_STYLE = "activation-status icon-status-orange color-yellow";
    public static final String ACTIVATION_STATUS_ACTIVATED_STYLE = "activation-status icon-status-green color-green";
    public static final String ACTIVATION_STATUS_NOT_ACTIVATED_STYLE = "activation-status icon-status-red color-red";
    

Generated at Mon Feb 12 06:48:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.