find projects by name - e2e
parent
c608d80874
commit
f8d0f859b8
|
@ -13,7 +13,7 @@ describe('User story detail', function(){
|
||||||
before(async function(){
|
before(async function(){
|
||||||
await utils.nav
|
await utils.nav
|
||||||
.init()
|
.init()
|
||||||
.project(2)
|
.project('Project Example 0')
|
||||||
.backlog()
|
.backlog()
|
||||||
.us(0)
|
.us(0)
|
||||||
.go();
|
.go();
|
||||||
|
|
|
@ -6,7 +6,13 @@ var actions = {
|
||||||
project: function(index) {
|
project: function(index) {
|
||||||
browser.actions().mouseMove($('div[tg-dropdown-project-list]')).perform();
|
browser.actions().mouseMove($('div[tg-dropdown-project-list]')).perform();
|
||||||
|
|
||||||
let project = $$('div[tg-dropdown-project-list] li a').get(index);
|
let project = null;
|
||||||
|
|
||||||
|
if (typeof index === 'string' || index instanceof String) {
|
||||||
|
project = $('div[tg-dropdown-project-list]').element(by.cssContainingText('li a', index));
|
||||||
|
} else {
|
||||||
|
project = $$('div[tg-dropdown-project-list] li a').get(index);
|
||||||
|
}
|
||||||
|
|
||||||
common.link(project);
|
common.link(project);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue