0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00
Dieser Commit ist enthalten in:
merefield 2023-10-06 16:37:24 +01:00
Ursprung 44f2394e75
Commit 9017871f2e
4 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -3,7 +3,7 @@
{{conditional-loading-spinner size="small" condition=unauthorizing}} {{conditional-loading-spinner size="small" condition=unauthorizing}}
<DButton <DButton
class="deauthorize" class="deauthorize"
@title=admin.wizard.subscription.deauthorize.title @title="admin.wizard.subscription.deauthorize.title"
@disabled={{unauthorizing}} @disabled={{unauthorizing}}
@action={{this.deauthorize}} @action={{this.deauthorize}}
> >
@ -13,8 +13,8 @@
<DButton <DButton
@icon="id-card" @icon="id-card"
class="btn-primary" class="btn-primary"
@label=admin.wizard.subscription.authorize.label @label="admin.wizard.subscription.authorize.label"
@title=admin.wizard.subscription.authorize.title @title="admin.wizard.subscription.authorize.title"
@action={{this.authorize}} @action={{this.authorize}}
/> />
{{/if}} {{/if}}

Datei anzeigen

@ -1,5 +1,6 @@
import { import {
acceptance, acceptance,
exists,
query, query,
visible, visible,
} from "discourse/tests/helpers/qunit-helpers"; } from "discourse/tests/helpers/qunit-helpers";
@ -62,7 +63,7 @@ acceptance("Admin | Custom Wizard Business Subscription", function (needs) {
assert.equal(count, 6, "There should be 6 admin tabs"); assert.equal(count, 6, "There should be 6 admin tabs");
}); });
test("shows authorized and subscribed", async(assert) => { test("shows authorized and subscribed", async (assert) => {
await visit("/admin/wizards"); await visit("/admin/wizards");
assert.notOk( assert.notOk(
exists(".supplier-authorize .btn-primary"), exists(".supplier-authorize .btn-primary"),

Datei anzeigen

@ -1,5 +1,6 @@
import { import {
acceptance, acceptance,
exists,
query, query,
visible, visible,
} from "discourse/tests/helpers/qunit-helpers"; } from "discourse/tests/helpers/qunit-helpers";
@ -62,7 +63,7 @@ acceptance("Admin | Custom Wizard Standard Subscription", function (needs) {
assert.equal(count, 5, "There should be 5 admin tabs"); assert.equal(count, 5, "There should be 5 admin tabs");
}); });
test("shows authorized and subscribed", async(assert) => { test("shows authorized and subscribed", async (assert) => {
await visit("/admin/wizards"); await visit("/admin/wizards");
assert.notOk( assert.notOk(
exists(".supplier-authorize .btn-primary"), exists(".supplier-authorize .btn-primary"),

Datei anzeigen

@ -76,7 +76,7 @@ acceptance("Admin | Custom Wizard Unsubscribed", function (needs) {
assert.equal(count, 5, "There should be 5 admin tabs"); assert.equal(count, 5, "There should be 5 admin tabs");
}); });
test("shows unauthorized and unsubscribed", async(assert) => { test("shows unauthorized and unsubscribed", async (assert) => {
await visit("/admin/wizards"); await visit("/admin/wizards");
assert.ok( assert.ok(
exists(".supplier-authorize .btn-primary"), exists(".supplier-authorize .btn-primary"),