From 9daa9ad3fef1c411e752a2c24e8071d73207d5e4 Mon Sep 17 00:00:00 2001 From: vi Date: Tue, 1 Sep 2015 10:05:03 +1000 Subject: [PATCH] Added test file --- .../acceptance/discourse-adplugin-test.js.es6 | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/javascripts/acceptance/discourse-adplugin-test.js.es6 diff --git a/test/javascripts/acceptance/discourse-adplugin-test.js.es6 b/test/javascripts/acceptance/discourse-adplugin-test.js.es6 new file mode 100644 index 0000000..d55ccb4 --- /dev/null +++ b/test/javascripts/acceptance/discourse-adplugin-test.js.es6 @@ -0,0 +1,22 @@ +import { acceptance } from "helpers/qunit-helpers"; +acceptance("Discourse Ad Plugin", { loggedIn: true }); + +test("DFP and Adsense Button Appears on Site Settings", () => { + visit("/admin/site_settings/category/adsense_plugin"); + + andThen(() => { + fillIn('#login-account-name', 'eviltrout'); + // ok(!exists('.tentacle'), "the tentacle is not shown yet"); + // }); + + // click('#show-tentacle'); + + // andThen(() => { + // ok(exists('.tentacle'), "the tentacle wants to rule the world!"); + // }); +}); + + +// Test if dfp and adsense button appear on site settings +// Test if AAdsense ad loads +// Test if DFP ad loads \ No newline at end of file