PL-5210 UI testing - cuba-id implementation for Table columns - use prefixed cuba-id

This commit is contained in:
Yuriy Artamonov 2017-04-18 23:41:09 +04:00
parent 136385cd18
commit a9158d2de8
2 changed files with 4 additions and 4 deletions

View File

@ -385,7 +385,7 @@ public class CubaScrollTableWidget extends VScrollTable implements TableWidget {
if (headerCell != null) {
String cubaId = headerCell.getElement().getAttribute("cuba-id");
if (cubaId != null) {
return "cuba-id=\"cc-" + cubaId + "\"";
return "cuba-id=\"cc_" + cubaId + "\"";
}
}
@ -853,7 +853,7 @@ public class CubaScrollTableWidget extends VScrollTable implements TableWidget {
HeaderCell headerCell = headerCellMap.get(key);
if (headerCell != null) {
headerCell.getElement().setAttribute("cuba-id", colcubaids[i]);
headerCell.getElement().setAttribute("cuba-id", "column_" + colcubaids[i]);
}
}
} catch (Exception e) {

View File

@ -369,7 +369,7 @@ public class CubaTreeTableWidget extends VTreeTable implements TableWidget {
if (headerCell != null) {
String cubaId = headerCell.getElement().getAttribute("cuba-id");
if (cubaId != null) {
return "cuba-id=\"cc-" + cubaId + "\"";
return "cuba-id=\"cc_" + cubaId + "\"";
}
}
@ -813,7 +813,7 @@ public class CubaTreeTableWidget extends VTreeTable implements TableWidget {
HeaderCell headerCell = headerCellMap.get(key);
if (headerCell != null) {
headerCell.getElement().setAttribute("cuba-id", colcubaids[i]);
headerCell.getElement().setAttribute("cuba-id", "column_" + colcubaids[i]);
}
}
} catch (Exception e) {