test-suite/tests/000_comt-unlogged-prelude.js
author Simon Descarpentries <sid@sopinspace.com>
Fri, 04 Apr 2014 18:23:30 +0200
changeset 624 3dd70d01cec2
permissions -rw-r--r--
Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
624
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     1
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     2
// " Vim settings
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     3
// set tabstop=4		  " number of spaces in a tab
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     4
// set softtabstop=4	  " as above
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     5
// set shiftwidth=4		  " as above
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     6
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     7
var k = __karma__.config,
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     8
	test_ = JSON.parse (k.t, new Function (['k','v'], k.r)); // revive helper functions sent from Karma
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
     9
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    10
suite ('comt unlogged prelude', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    11
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    12
	this.timeout(20000);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    13
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    14
	suite ('contact page conformity', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    15
		test_.page_loading ('/contact/', 'Contact');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    16
		test_unlogged_header ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    17
		test_.exist	('form#profile[action="."]'); // the form exists
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    18
		test_.count	('form#profile :input', 7); // it has no more than 5 labels (may be no more fields)
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    19
		test_.field ('profile', 'id_name', 'text', 0, 'Your name', true); // the field id_name is…
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    20
		test_.field ('profile', 'id_email', 'text', 1, 'Your email address', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    21
		test_.field ('profile', 'id_title', 'text', 2, 'Subject of the message', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    22
		test_.field ('profile', 'id_body', 'textarea', 3, 'Body of the message', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    23
		test_.field ('profile', 'id_copy', 'checkbox', 4, 'Send me a copy of the email', false);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    24
		test_.val	('#profile input[type=submit]','Send'); // test that a the .val() of the element is
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    25
		test_.val	('input#cancel_button[type=button]', 'Cancel');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    26
		test_unlogged_footer ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    27
		test		('to check that toBeDefined test still works', dsl(function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    28
			expect (test_.elt ('#header_controls a[href="/xxx/"]').val ()).not ().toBeDefined ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    29
		}));
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    30
		test ('get back to / to avoid bugging next page load', dsl(function () { browser.navigateTo ('/'); }));
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    31
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    32
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    33
	suite ('help page conformity', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    34
		test_.page_loading ('/help/', 'Help');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    35
		test_unlogged_header ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    36
		test_unlogged_footer ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    37
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    38
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    39
	suite ('can change lang', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    40
		test ('get back to / to avoid bugging next page load', dsl(function () { browser.navigateTo ('/'); }));
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    41
		test_.i18n ('fr', 'Aide');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    42
		test_.i18n ('en', 'Help');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    43
		test_.i18n ('es', 'Ayuda');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    44
		test_.i18n ('it', 'Aiuto');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    45
		test_.i18n ('de', 'Hilfe');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    46
		test_.i18n ('pt_BR', 'Ajuda');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    47
		test_.i18n ('nb', 'Hjelp');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    48
		test_.i18n ('bg', 'Помощ');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    49
		test_.i18n ('en', 'Help');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    50
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    51
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    52
	suite ('contact page mandatory field test', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    53
		test_.page_loading ('/contact/', 'Contact');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    54
		test_.submit('#profile input[type="submit"]');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    55
		test_.count ('div.help_text span.error-text', 4);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    56
		test_.field ('profile div.error', 'id_name', 'text', 0, 'Your name', true); // the field id_name is…
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    57
		test_.field ('profile div.error', 'id_email', 'text', 1, 'Your email address', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    58
		test_.field ('profile div.error', 'id_title', 'text', 2, 'Subject of the message', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    59
		test_.field ('profile div.error', 'id_body', 'textarea', 3, 'Body of the message', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    60
		test_.field ('profile', 'id_copy', 'checkbox', 4, 'Send me a copy of the email', false);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    61
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    62
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    63
	suite ('reset password page conformity', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    64
		test_.page_loading ('/password_reset/', 'Reset my password');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    65
		test_unlogged_header ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    66
		test_.count	('form#profile :input', 3);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    67
		test_.field ('profile', 'id_email', 'text', 1, 'E-mail', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    68
		test_.val	('#profile input[type=submit]', 'Reset my password');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    69
		test_unlogged_footer ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    70
		test_.submit('#profile input[type="submit"]');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    71
		test_.count ('div.help_text span.error-text', 1);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    72
		test_.field ('profile div.error', 'id_email', 'text', 0, 'E-mail', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    73
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    74
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    75
	suite ('login page conformity', function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    76
		test_.page_loading ('/', 'Home');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    77
		test_unlogged_header ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    78
		test_.count	('form#login[action="/login/"] :input', 3);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    79
		test_.field ('login', 'id_username', 'text', 0, 'Username', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    80
		test_.field ('login', 'id_password', 'password', 1, 'Password', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    81
		test_.val	('form#login input[type=submit]', 'Login');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    82
		test_.text	('form#login a[href="/password_reset/"]', 'Forgot password?');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    83
		test_unlogged_footer ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    84
		// test_.i18n ();
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    85
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    86
		test ('get back to / to avoid bugging next page load', dsl(function () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    87
			browser.navigateTo ('/');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    88
		}));
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    89
		test_.page_loading ('/login/', 'Login');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    90
		test_.submit('#login input[type="submit"]');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    91
		test_.field ('login div.error', 'id_username', 'text', 0, 'Username', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    92
		test_.field ('login div.error', 'id_password', 'password', 1, 'Password', true);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    93
	});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    94
});
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    95
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    96
function test_unlogged_header () {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    97
	test_.count	('#header_controls a', 2);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    98
	test_.text	('#header_controls a[href="/"]',		'Home');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
    99
	test_.text	('#header_controls a[href="/login/"]',	'Login');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   100
}
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   101
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   102
function test_unlogged_footer (url) {
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   103
	test_.count	('#footer a', 10);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   104
	test_.text	('#footer a:nth-of-type(1)[href="/contact/"]',				'Contact');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   105
	test_.match	('#footer #comentlink[href="http://www.co-ment.com"]',		/Powered by/m);
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   106
	test_.text	('#footer a:nth-of-type(3)[href="/help/"]',					'Help');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   107
	test_.text	('#footer a:nth-of-type(4)[href="/i18n/setlang/fr/"]',		'Français');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   108
	test_.text	('#footer a:nth-of-type(5)[href="/i18n/setlang/es/"]',		'Español');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   109
	test_.text	('#footer a:nth-of-type(6)[href="/i18n/setlang/it/"]',		'Italiano');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   110
	test_.text	('#footer a:nth-of-type(7)[href="/i18n/setlang/de/"]',		'Deutsch');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   111
	test_.text	('#footer a:nth-of-type(8)[href="/i18n/setlang/pt_BR/"]',	'Português Brasileiro');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   112
	test_.text	('#footer a:nth-of-type(9)[href="/i18n/setlang/nb/"]',		'Norsk');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   113
	test_.text	('#footer a:nth-of-type(10)[href="/i18n/setlang/bg/"]',		'Български');
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   114
}
3dd70d01cec2 Divide tests.js in two distinct files, factorize helper functions in lib/test_hlp.js
Simon Descarpentries <sid@sopinspace.com>
parents:
diff changeset
   115