Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function githubAppsRepositoryCollection(scope) {
return collection(`${scope} li.profile-repolist-item`, {
name: text('a.profile-repo'),
isPublic: isPresent('.icon.public'),
isPrivate: isPresent('.icon.private'),
settings: {
scope: '.profile-settings',
isDisabled: hasClass('disabled')
}
});
}
thanks: {
scope: PLANS_THANKS_PAGE_CONTAINER,
isPresent: isPresent(),
title: {
scope: PLANS_THANKS_PAGE_TITLE,
isPresent: isPresent(),
text: text(),
},
image: {
scope: PLANS_THANKS_PAGE_IMAGE,
isPresent: isPresent(),
},
body: {
scope: PLANS_THANKS_PAGE_BODY,
isPresent: isPresent(),
text: text(),
},
button: {
scope: PLANS_THANKS_PAGE_BUTTON,
isPresent: isPresent(),
text: text(),
},
},
});
canExpand: hasClass('link', '[data-test-expand-collapse-control] svg'),
expandTitle: text('[data-test-expand-collapse-control] title'),
title: text('span', { at: 1 }),
visit: clickable('span:nth-of-type(2) a'),
type: text('span', { at: 2 }),
groupCount: text('span', { at: 3 }),
objectiveCount: text('span', { at: 4 }),
termCount: text('span', { at: 5 }),
firstOffering: text('span', { at: 6 }),
offeringCount: text('span', { at: 7 }),
status: text('span', { at: 8 }),
offerings,
noOfferings: text('[data-test-no-offerings]'),
trash: clickable('[data-test-actions] .remove'),
confirm: clickable('[data-test-confirm-removal] [data-test-yes]'),
hasInstructionalNotes: isPresent('[data-test-status] .instructional-notes'),
}),
expandedSessions: collection('[data-test-expanded-session]'),
};