Rename manual test page to plugin id
diff --git a/cordova-plugin-test-framework/www/main.js b/cordova-plugin-test-framework/www/main.js
index d5ecad0..a39a6bc 100644
--- a/cordova-plugin-test-framework/www/main.js
+++ b/cordova-plugin-test-framework/www/main.js
@@ -171,8 +171,9 @@
createActionButton('Back', setMode.bind(null, 'main'));
var contentEl = document.getElementById('content');
- var beforeEach = function() {
+ var beforeEach = function(title) {
clearContent();
+ setTitle(title || 'Manual Tests');
createActionButton('Reset App', location.reload.bind(location));
createActionButton('Back', setMode.bind(null, 'manual'));
}
diff --git a/cordova-plugin-test-framework/www/tests.js b/cordova-plugin-test-framework/www/tests.js
index 87b1069..39e42ec 100644
--- a/cordova-plugin-test-framework/www/tests.js
+++ b/cordova-plugin-test-framework/www/tests.js
@@ -101,7 +101,7 @@
if (!exports.tests[key].hasOwnProperty('defineManualTests'))
return;
createActionButton(key, function() {
- beforeEach();
+ beforeEach(key);
exports.tests[key].defineManualTests(contentEl, createActionButton);
});
});