ייבוא מודל או קומפוננטה מתוך פלאגין לפלאגין מותאם אישית: כישלון בדיקות

שלום @Marine

נראה שהבעיה נעוצה בהגדרות שגויות בבלוק needs.settings בקוד שלנו:

acceptance("Some tests", function (needs) {
  needs.settings({
    // This won't enable the right settings, so the calendar plugin won't be loaded, and the files we need won't be available
    // discourse_post_event_enabled: true,
    //
    // Enabling the calendar will solve the issue:
    calendar_enabled: true

    our_plugin_enabled: true
  });


  test("The test", async function (assert) {
    await visit("/");
    assert.equal(1, 1);
  });
});