'use strict';

define("bottled-ember-4-0-docs/tests/acceptance/visual-regression-test-test", ["qunit", "@ember/test-helpers", "ember-qunit", "@percy/ember"], function (_qunit, _testHelpers, _emberQunit, _ember) {
  "use strict";

  /* eslint-disable prettier/prettier */

  async function renderFromToc(tableOfContents) {
    let path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
    for (const item of tableOfContents) {
      if (!item.pages || item.pages.length === 0) {
        await (0, _testHelpers.visit)(path + item.title);
        await (0, _ember.default)(path + item.title);
      } else {
        await renderFromToc(item.pages, `${path + item.title}/`);
      }
    }
  }
  (0, _qunit.module)('Acceptance | visual regression test', function (hooks) {
    (0, _emberQunit.setupApplicationTest)(hooks);
    (0, _qunit.test)(`visiting visual regressions with Percy`, async function (assert) {
      assert.expect(0);
      await (0, _testHelpers.visit)('/');
      let tableOfContents = this.owner.lookup('controller:application').model;
      await renderFromToc(tableOfContents);
    });
  });
});
define("bottled-ember-4-0-docs/tests/test-helper", ["bottled-ember-4-0-docs/app", "bottled-ember-4-0-docs/config/environment", "qunit", "@ember/test-helpers", "qunit-dom", "ember-qunit"], function (_app, _environment, QUnit, _testHelpers, _qunitDom, _emberQunit) {
  "use strict";

  (0, _testHelpers.setApplication)(_app.default.create(_environment.default.APP));
  (0, _qunitDom.setup)(QUnit.assert);
  (0, _emberQunit.start)();
});
define('bottled-ember-4-0-docs/config/environment', [], function() {
  if (typeof FastBoot !== 'undefined') {
return FastBoot.config('bottled-ember-4-0-docs');
} else {
var prefix = 'bottled-ember-4-0-docs';try {
  var metaName = prefix + '/config/environment';
  var rawConfig = document.querySelector('meta[name="' + metaName + '"]').getAttribute('content');
  var config = JSON.parse(decodeURIComponent(rawConfig));

  var exports = { 'default': config };

  Object.defineProperty(exports, '__esModule', { value: true });

  return exports;
}
catch(err) {
  throw new Error('Could not read config from meta tag with name "' + metaName + '".');
}

}
});

require('bottled-ember-4-0-docs/tests/test-helper');
EmberENV.TESTS_FILE_LOADED = true;
//# sourceMappingURL=tests.map
