Index: tests/functional/spec/media_manager.js
===================================================================
--- tests/functional/spec/media_manager.js	(revision 1724)
+++ tests/functional/spec/media_manager.js	(revision 2010)
@@ -3,5 +3,5 @@
 		it("Enhanced uploader can be temporarily enabled", function() {
 			loadFixtures('form_media_disabled.html');
-			loadStyleFixtures('jsUpload/style.css');
+			loadStyleFixtures('default.css');
 			
 			$('#fileupload').enhancedUploader();
@@ -18,5 +18,5 @@
 		it("Enhanced uploader can be temporarily disabled", function() {
 			loadFixtures('form_media_enabled.html');
-			loadStyleFixtures('jsUpload/style.css');
+			loadStyleFixtures('default.css');
 
 			$('#fileupload').enhancedUploader();
Index: tests/functional/spec/page_tabs.js
===================================================================
--- tests/functional/spec/page_tabs.js	(revision 1737)
+++ tests/functional/spec/page_tabs.js	(revision 2010)
@@ -1,92 +1,60 @@
 describe("tabs method (admin/js/pageTabs.js)", function() {
-	
-	it("Construct tabs using div content", function() {
+	it("Must construct tabs using div content", function() {
+		loadFixtures('tabs.html');
+		loadStyleFixtures('default.css');
+
+		expect($('#user-options')).toBeVisible();
+		expect($('#user-profile')).toBeVisible();
+		expect($('#user-favorites')).toBeVisible();
+		expect($('.part-tabs')).not.toExist();
+ 
+		$.pageTabs('user-options');
+		expect($('#part-user-options')).toBeVisible();
+		expect($('#part-user-profile')).not.toBeVisible();
+		expect($('#part-user-favorites')).not.toBeVisible();
+ 
+		expect($('.part-tabs')).toExist();
+		expect($('.part-tabs ul li#part-tabs-user-options')).toExist();
+		expect($('.part-tabs ul li#part-tabs-user-profile')).toExist();
+		expect($('.part-tabs ul li#part-tabs-user-favorites')).toExist();
+		expect($('#part-tabs-user-options')).toHaveClass('part-tabs-active');
+	});
+
+	it("Must open first part if pageTabs called without argument", function() {
+		loadFixtures('tabs.html');
+		loadStyleFixtures('default.css');
+
+		$.pageTabs();
+		expect($('#part-user-options')).toBeVisible();
+		expect($('#part-user-profile')).not.toBeVisible();
+		expect($('#part-user-favorites')).not.toBeVisible();		
+		expect($('#part-tabs-user-options')).toHaveClass('part-tabs-active');
+	});
+ 
+	it("Must change visible part when clicking another tab", function() {
+		loadFixtures('tabs.html');
+		loadStyleFixtures('default.css');
 		
+		$.pageTabs('user-options');
+		expect($('#part-user-options')).toBeVisible();
+		expect($('#part-user-profile')).not.toBeVisible();
+		expect($('#part-user-favorites')).not.toBeVisible();
+
+		$('.part-tabs ul li a[href="#user-profile"]').click();
+		expect($('#part-tabs-user-profile')).toHaveClass('part-tabs-active');		
+		expect($('#part-user-options')).not.toBeVisible();
+		expect($('#part-user-profile')).toBeVisible();
+	});
+
+	it("Must change opened part if corresponding anchor is in url", function() {
 		loadFixtures('tabs.html');
-		
-		expect($('#tab-1')).toBeVisible();
-		expect($('#tab-2')).toBeVisible();
-		expect($('#tab-3')).toBeVisible();
-		
-		expect($('.part-tabs')).not.toExist();
-		
-		$.pageTabs('tab-1');
-		
-		expect($('#tab-1')).toBeVisible();
-		expect($('#tab-2')).not.toBeVisible();
-		expect($('#tab-3')).not.toBeVisible();
-		
-		expect($('.part-tabs ul li#part-tabs-tab-1 a[href=#tab-1]')).toExist();
-		expect($('.part-tabs ul li#part-tabs-tab-2 a[href=#tab-2]')).toExist();
-		expect($('.part-tabs ul li#part-tabs-tab-3 a[href=#tab-3]')).toExist();
-	
-		expect($('.part-tabs ul li#part-tabs-tab-1')).toHaveClass('part-tabs-active');
-		
-	});
-	
-	it("Change tabs when changing the hash", function() {
-		
-		runs(function() {        
-            loadFixtures('tabs-iframe.html');
-        });
-		
-		waitsFor(function() {
-            return $("#testtab").contents().find('#tab-3').get(0);
-        }, 10000);
-		
-		runs(function() {
-			f$ = $("#testtab").get(0).contentWindow.$;
-			f$.pageTabs('tab-1');
+		loadStyleFixtures('default.css');
 
-			expect(f$('#tab-1').get(0)).toBeVisible();
-			expect(f$('#tab-2').get(0)).not.toBeVisible();
-			
-			expect(f$('.part-tabs ul li#part-tabs-tab-1').get(0)).toHaveClass('part-tabs-active');
-			expect(f$('.part-tabs ul li#part-tabs-tab-2').get(0)).not.toHaveClass('part-tabs-active');
-
-            $("#testtab").attr('src', $("#testtab").attr('src')+'#tab-2');
-        });
-		
-		waitsFor(function() {
-			f$ = $("#testtab").get(0).contentWindow.$;
-            return f$('#tab-1').is(':not(:visible)');
-        }, 10000);
-		
-		runs(function() {
-			f$ = $("#testtab").get(0).contentWindow.$;
-			
-    		expect(f$('#tab-2').get(0)).toBeVisible();
-
-			expect(f$('.part-tabs ul li#part-tabs-tab-1').get(0)).not.toHaveClass('part-tabs-active');
-			expect(f$('.part-tabs ul li#part-tabs-tab-2').get(0)).toHaveClass('part-tabs-active');
-			
-        });
-		
-	});
-	
-	it("Load the correct tab with the correct hash", function() {
-		
-		runs(function() {        
-            loadFixtures('tabs-iframe.html');
-            $("#testtab").attr('src', $("#testtab").attr('src')+'#tab-3');
-        });
-		
-		waitsFor(function() {
-			cond1 = $("#testtab").attr('src').split('#')[1] != '';
-			cond2 = $("#testtab").contents().find('#tab-3').get(0);
-            return cond1 && cond2;
-        }, 10000);
-		
-		runs(function() {
-			f$ = $("#testtab").get(0).contentWindow.$;
-			f$.pageTabs('tab-1');
-			
-			expect(f$('#tab-1').get(0)).not.toBeVisible();
-			expect(f$('#tab-3').get(0)).toBeVisible();
-			
-			expect(f$('.part-tabs ul li#part-tabs-tab-1').get(0)).not.toHaveClass('part-tabs-active');
-			expect(f$('.part-tabs ul li#part-tabs-tab-3').get(0)).toHaveClass('part-tabs-active');
-        });
-		
+		spyOn(jQuery, 'pageTabsGetHash').andReturn('user-favorites');
+		$.pageTabs();
+		expect($('#part-user-options')).not.toBeVisible();
+		expect($('#part-user-profile')).not.toBeVisible();
+		expect($('#part-user-favorites')).toBeVisible();		
 	});
 });
+
Index: tests/functional/spec/users_actions.js
===================================================================
--- tests/functional/spec/users_actions.js	(revision 1724)
+++ tests/functional/spec/users_actions.js	(revision 2010)
@@ -1,5 +1,5 @@
 describe("updatePermissionsForm method (admin/js/_users_actions.js)", function() {
 	it("Click admin persmission must checked all associated permissions", function() {
-		loadFixtures('normal.html');
+		loadFixtures('form_permissions.html');
 		$('#permissions-form').updatePermissionsForm();
 		var permissions = ['usage','publish','delete','contentadmin','categories'];
@@ -13,5 +13,5 @@
 
 	it("Click contentadmin persmission must checked all associated permissions", function() {
-		loadFixtures('normal.html');
+		loadFixtures('form_persmissions.html');
 		$('#permissions-form').updatePermissionsForm();
 		var permissions = ['usage','publish','delete'];
