Skip to content

Commit

Permalink
DEV: activate some viewtests (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Feb 4, 2018
1 parent fb7e97b commit 0c2c0d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Expand Up @@ -4,8 +4,6 @@
* Plugin options panel
*/

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('surveyPlugins');

App()->getClientScript()->registerScript("plugin-panel-variables", "
var jsonUrl = '';
Expand Down
Expand Up @@ -2,7 +2,12 @@
/**
* Optionnal plugins options panels
*/

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('surveyPlugins');

?>

<?php App()->getClientScript()->registerScript("plugins-panel-variables", "
var jsonUrl = '';
Expand Down
3 changes: 1 addition & 2 deletions application/views/admin/themeoptions/update.php
@@ -1,14 +1,13 @@
<?php
/* @var $this AdminController */
/* @var $model TemplateOptions */
/* @var $model TemplateConfiguration */

// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('surveyTemplateOptionsUpdate');

$gsid = Yii::app()->request->getQuery('gsid', null);
$sid = Yii::app()->request->getQuery('surveyid', null);
?>

<?php if (empty($model->sid)): ?>
<!-- This is only visible when we're not in survey view. -->
<div class='container-fluid'>
Expand Down
6 changes: 3 additions & 3 deletions tests/data/views/adminSurveyViews.php
Expand Up @@ -16,22 +16,22 @@
// Survey main menu
['surveyGeneralSettings', ['route'=>'survey/sa/rendersidemenulink/subaction/generalsettings/surveyid/{SID}']],
['surveyTexts', ['route'=>'survey/sa/rendersidemenulink/subaction/surveytexts/surveyid/{SID}']],
//['surveyThemeOptionsUpdate', ['route'=>'themeoptions/sa/updatesurvey/surveyid/{SID}/gsid/1']], // TODO
['surveyTemplateOptionsUpdate', ['route'=>'themeoptions/sa/updatesurvey/surveyid/{SID}/gsid/1']],
['surveyPresentationOptions', ['route'=>'survey/sa/rendersidemenulink/subaction/presentation/surveyid/{SID}']],

// FIXME these FAIL !!
//['surveyParticipantsIndex', ['route'=>'tokens/sa/index/surveyid/{SID}']],
//['surveyPublicationOptions', ['route'=>'rendersidemenulink/subaction/publication/surveyid/{SID}']],

['surveyResources', ['route'=>'survey/sa/rendersidemenulink/subaction/resources/surveyid/{SID}']],
['surveyPermissions', ['route'=>'surveypermission/sa/view/surveyid/{SID}']],
['surveyParticipantTokenOptions', ['route'=>'survey/sa/rendersidemenulink/subaction/tokens/surveyid/{SID}']],
['surveyQuotas', ['route'=>'quotas/sa/index/surveyid/{SID}']],
['surveyAssessments', ['route'=>'assessments/sa/index/surveyid/{SID}']],
['surveyNotificationOptions', ['route'=>'survey/sa/rendersidemenulink/subaction/notification/surveyid/{SID}']],
['surveyPublicationOptions', ['route'=>'survey/sa/rendersidemenulink/subaction/publication/surveyid/{SID}']],
['surveyEmailTemplates', ['route'=>'emailtemplates/sa/index/surveyid/{SID}']],
['surveyPanelIntegration', ['route'=>'survey/sa/rendersidemenulink/subaction/panelintegration/surveyid/{SID}']],
//['surveyPlugins', ['route'=>'survey/sa/rendersidemenulink/subaction/plugins/surveyid/{SID}']], // TODO
['surveyPlugins', ['route'=>'survey/sa/rendersidemenulink/subaction/plugins/surveyid/{SID}']],



Expand Down

0 comments on commit 0c2c0d4

Please sign in to comment.