Fix accounts table reference, especially for tests

This commit is contained in:
Benedikt Kulmann
2021-02-17 08:44:47 +01:00
parent 47a2ef8797
commit 84ca589a16
5 changed files with 11 additions and 41 deletions

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,9 @@
<template>
<div>
<oc-table-simple>
<oc-table-simple id="accounts-user-list">
<oc-thead>
<oc-tr class="fix-table-header">
<oc-th shrink type="head" alignH="center">
<oc-th shrink type="head" align-h="center">
<oc-checkbox
class="oc-ml-s"
:value="areAllAccountsSelected"

View File

@@ -1,6 +1,6 @@
<template>
<oc-tr>
<oc-td alignH="center">
<oc-td align-h="center">
<oc-checkbox
class="oc-ml-s"
size="large"
@@ -44,7 +44,7 @@
</ul>
</oc-drop>
</oc-td>
<oc-td alignH="center">
<oc-td align-h="center">
<oc-icon
v-if="account.accountEnabled"
key="account-icon-enabled"

View File

@@ -104,15 +104,14 @@ module.exports = {
selector: '#accounts-app'
},
accountsListTable: {
selector: "//table[@class='uk-table uk-table-middle uk-table-divider']",
locateStrategy: 'xpath'
selector: '#accounts-user-list'
},
userInAccountsList: {
selector: '//table//td[text()="%s"]',
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]',
locateStrategy: 'xpath'
},
rowByUsername: {
selector: '//table//td[text()="%s"]/ancestor::tr',
selector: '//table[@id="accounts-user-list"]//td[text()="%s"]/ancestor::tr',
locateStrategy: 'xpath'
},
currentRole: {

View File

@@ -29,7 +29,7 @@ trap clean_up SIGHUP SIGINT SIGTERM
if [ -z "$TEST_INFRA_DIRECTORY" ]
then
cleanup=true
testFolder=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
testFolder=$(< /dev/urandom LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
printf "creating folder $testFolder for Test infrastructure setup\n\n"
export TEST_INFRA_DIRECTORY=$testFolder
fi