summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Treat2015-01-25 16:33:54 +0000
committerRobert Treat2017-10-30 22:31:50 +0000
commit22f4d12f21727bccc00cabc3008bba44ba5032a7 (patch)
tree53da39ada32cdf797e2f5a4f326c37867e5abbe7
parent7d6cef4eeda0d13eeeb9691555581308ed135855 (diff)
Admin processes test didnt seem to know about 'blocked' column. It does now. How did that ever work?
-rw-r--r--HISTORY1
-rw-r--r--tests/selenium/src/12-admin.php13
2 files changed, 8 insertions, 6 deletions
diff --git a/HISTORY b/HISTORY
index 136f69a0..52c51bef 100644
--- a/HISTORY
+++ b/HISTORY
@@ -12,6 +12,7 @@ Features
Bugs
* Fix bug in Turkish translation which caused failed ajax responses
+* Account for Blocked field in admin processes Selenium test
Incompatabilities
* Dropped testing of 8.4, which is now EOL
diff --git a/tests/selenium/src/12-admin.php b/tests/selenium/src/12-admin.php
index b65974c2..3b109cf0 100644
--- a/tests/selenium/src/12-admin.php
+++ b/tests/selenium/src/12-admin.php
@@ -39,15 +39,16 @@
if ($t->data->major_version > 8.1) {
$t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[1]", $lang['strusername']);
$t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[2]", $lang['strprocess']);
- $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[3]", $lang['strsql']);
- $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[4]", $lang['strstarttime']);
- $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[5]", $lang['stractions']);
+ $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[3]", $lang['strblocked']);
+ $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[4]", $lang['strsql']);
+ $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[5]", $lang['strstarttime']);
+ $t->assertText("//tr/th[text()='{$lang['strusername']}' and @class='data']/../th[6]", $lang['stractions']);
$t->assertText("//tr[contains(@class,'data')]/td[text()='{$admin_user}']/../td[1]", $admin_user);
/* this check is a bit fragile, since it relies on new line wrapping */
- $t->assertText('//tr[contains(@class,\'data\')]/td[3]/pre[@class=\'data\']', 'SELECT datname, usename, *FROM pg_catalog.pg_stat_activity*WHERE datname=\'ppatests_db\'*ORDER BY usename,*pid');
- $t->assertText("//tr[contains(@class,'data')]/td[text()='{$admin_user}']/../td[5]", $lang['strcancel']);
+ $t->assertText('//tr[contains(@class,\'data\')]/td[4]/pre[@class=\'data\']', 'SELECT datname, usename, *FROM pg_catalog.pg_stat_activity*WHERE datname=\'ppatests_db\'*ORDER BY usename,*pid');
+ $t->assertText("//tr[contains(@class,'data')]/td[text()='{$admin_user}']/../td[6]", $lang['strcancel']);
if ($t->data->hasQueryKill())
- $t->assertText("//tr[contains(@class,'data')]/td[text()='{$admin_user}']/../td[6]", $lang['strkill']);
+ $t->assertText("//tr[contains(@class,'data')]/td[text()='{$admin_user}']/../td[7]", $lang['strkill']);
}
/** 3 **/