awx/awx/ui/test/e2e/objects/sections/permissions.js
Marliana Lara dce52d0552
Update the Add button content and styles
* Change the text from "Add" to "+"
* Update the e2e test to check for an id #button-add
2018-05-02 09:35:11 -04:00

29 lines
787 B
JavaScript

import actions from './actions';
import createTableSection from './createTableSection';
import pagination from './pagination';
import search from './search';
const permissions = {
selector: 'div[ui-view="related"]',
elements: {
add: '#button-add',
badge: 'div[class="List-titleBadge]',
titleText: 'div[class="List-titleText"]',
noitems: 'div[class="List-noItems"]'
},
sections: {
search,
pagination,
table: createTableSection({
elements: {
username: 'td[class~="username"]',
roles: 'td role-list:nth-of-type(1)',
teamRoles: 'td role-list:nth-of-type(2)'
},
sections: { actions }
})
}
};
module.exports = permissions;