Simplify daily review UI and compact header cards
This commit is contained in:
1 parent
6d1a98743f
commit
64f4a0d3de
13 files changed
+185
-133
No files matched your search
@@ -19,8 +19,16 @@ test('zero is a valid explicit price while blank and negative prices remain inva
|
||||
|
||||
test('zero is rendered as a saved value and permits continuation when all items are saved',()=>{
|
||||
const h=harness(()=>{throw new Error('unexpected request');});
|
||||
h.renderDailyPriceReview(fixture(0));
|
||||
const review=fixture(0);
|
||||
review.items[0].candidate_prices=[{effective_rate_amount:888888,real_price:999999}];
|
||||
review.items[0].affected_records=333333;
|
||||
h.renderDailyPriceReview(review);
|
||||
const html=h.element('#daily-price-review-body').innerHTML;
|
||||
assert.equal((html.match(/<td /g)||[]).length,5);
|
||||
assert.match(html,/Fixture Company|FIXTURE/);
|
||||
assert.match(html,/>100<\/td>/);
|
||||
assert.doesNotMatch(html,/888888|999999|333333|daily-price-review-candidates/);
|
||||
assert.match(html,/aria-describedby="daily-price-review-message"/);
|
||||
assert.match(html,/value="0"/);
|
||||
assert.match(html,/daily-price-review-row is-complete/);
|
||||
assert.match(html,/daily_review.saved/);
|
||||
|
||||
Reference in new issue
Block a user