mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
module.exports = {
|
|
beforeEach: (client, done) => {
|
|
const credentials = client.useCss().page.credentials();
|
|
|
|
client.login();
|
|
client.waitForAngular();
|
|
|
|
credentials
|
|
.navigate()
|
|
.waitForElementVisible('div.spinny')
|
|
.waitForElementNotVisible('div.spinny', done);
|
|
},
|
|
'activity link is visible and takes user to activity stream': client => {
|
|
const credentials = client.page.credentials();
|
|
const activityStream = client.page.activityStream();
|
|
|
|
credentials.expect.section('@breadcrumb').visible;
|
|
credentials.section.breadcrumb.expect.element('@activity').visible;
|
|
credentials.section.breadcrumb.click('@activity');
|
|
|
|
activityStream
|
|
.waitForElementVisible('div.spinny')
|
|
.waitForElementNotVisible('div.spinny')
|
|
.waitForElementVisible('@title')
|
|
.waitForElementVisible('@category');
|
|
|
|
activityStream.expect.element('@title').text.contain('CREDENTIALS');
|
|
activityStream.expect.element('@category').value.contain('credential');
|
|
|
|
client.end();
|
|
}
|
|
};
|