Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
erp5
Commits
9c919c4a
Commit
9c919c4a
authored
Jan 23, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment two functions in Selenium user-extensions that require user interaction.
Those functions make automated UI tests unusable.
parent
1ebd038f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
...tem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
+8
-6
bt5/erp5_ui_test_core/bt/revision
bt5/erp5_ui_test_core/bt/revision
+1
-1
No files found.
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.xml
View file @
9c919c4a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts2
0417149.43
</string>
</value>
<value>
<string>
ts2
7332555.94
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -75,7 +75,8 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n
...
@@ -75,7 +75,8 @@ Selenium.prototype.assertPortalStatusMessage = function(text) {\n
Selenium.prototype.doType = function(locator, newText) {\n
Selenium.prototype.doType = function(locator, newText) {\n
if (typeof(netscape) != "undefined") {\n
if (typeof(netscape) != "undefined") {\n
// on firefox, we enable privilege to upload file in javascript.\n
// on firefox, we enable privilege to upload file in javascript.\n
netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n
// XXX-Cedric : this needs user interaction, thus making it unusable.\n
//netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");\n
}\n
}\n
var element = this.page().findElement(locator);\n
var element = this.page().findElement(locator);\n
this.page().replaceText(element, newText);\n
this.page().replaceText(element, newText);\n
...
@@ -91,10 +92,11 @@ Selenium.prototype.getAbsoluteLocation = function() {\n
...
@@ -91,10 +92,11 @@ Selenium.prototype.getAbsoluteLocation = function() {\n
\n
\n
Selenium.prototype.doPhantomRender = function(filename) {\n
Selenium.prototype.doPhantomRender = function(filename) {\n
if (window.page && window.page.render) {\n
if (window.page && window.page.render) {\n
page.render(filename);\n
// XXX-Cedric : this needs user interaction, thus making it unusable.\n
// Solution : create Firefox extension enabling universal* rights\n
//page.render(filename);\n
}\n
}\n
};\n
};
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -104,7 +106,7 @@ Selenium.prototype.doPhantomRender = function(filename) {\n
...
@@ -104,7 +106,7 @@ Selenium.prototype.doPhantomRender = function(filename) {\n
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
2
422
</int>
</value>
<value>
<int>
2
653
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_ui_test_core/bt/revision
View file @
9c919c4a
48
49
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment