Fix broken test and form wrap

This commit is contained in:
Rimian Perkins 2019-09-12 15:52:30 +10:00
parent 515882d845
commit 1add7e9cdf
3 changed files with 9 additions and 4 deletions

View File

@ -34,7 +34,7 @@
<div class="section-column">
<h3>{{i18n 'discourse_patrons.your_information'}}</h3>
<div class="user-controls">
<div class="user-controls discource-patrons-fields">
<div class="display-row">
<div class="field">
{{i18n 'discourse_patrons.amount'}}
@ -44,7 +44,6 @@
{{combo-box valueAttribute="value" content=amounts value=amount}}
</div>
</div>
<div class="display-row">
<div class="field">
{{i18n 'discourse_patrons.billing.name'}}

View File

@ -43,6 +43,12 @@
background-color: $primary-low;
}
.discource-patrons-fields {
.field {
width: 25%;
}
}
#card-action {
margin: 20px 0;
}

View File

@ -36,11 +36,11 @@ componentTest("donation form has a confirmation", {
async test(assert) {
this.set("confirmation", { card: { last4: "4242" } });
const confirmExists = find(".discourse-donations-confirmation").length;
const confirmExists = find(".discourse-patrons-confirmation").length;
assert.ok(confirmExists, "The confirmation form renders");
const last4 = find(".discourse-donations-last4")
const last4 = find(".discourse-patrons-last4")
.text()
.trim();