Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ModulePage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
toggles: collection({
scope: '[data-test-toggle]'
}),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
}),
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
editLink: {
scope: '[data-test-edit-page-link]',
href: attribute('href', 'a'),
},
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
toggles: collection({
scope: '[data-test-toggle]'
}),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
}),
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
editLink: {
scope: '[data-test-edit-page-link]',
href: attribute('href', 'a'),
},
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
index: {
import BaseAddonPage from '../base';
import { attribute, collection, text } from 'ember-classy-page-object';
const ModulePage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
toggles: collection({
scope: '[data-test-toggle]'
}),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
}),
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
editLink: {
toggles: collection({
scope: '[data-test-toggle]'
}),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
}),
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
editLink: {
scope: '[data-test-edit-page-link]',
href: attribute('href', 'a'),
},
// eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
index: {
scope: '[data-test-page-index]',
import BaseAddonPage from '../base';
import { collection, text } from 'ember-classy-page-object';
const ClassPage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
const ClassPage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
})
});
export default new ClassPage();
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
})
});
export default new ClassPage();
const ClassPage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
})
});
export default new ClassPage();
import BaseAddonPage from '../base';
import { collection, text } from 'ember-classy-page-object';
const ClassPage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})
})
})
});
export default new ClassPage();
import BaseAddonPage from '../base';
import { collection, text } from 'ember-classy-page-object';
const ClassPage = BaseAddonPage.extend({
navItems: collection({ scope: '[data-test-id="nav-item"]' }),
title: text('[data-test-class-name]'),
description: text('[data-test-class-description]'),
sections: collection({
scope: '[data-test-api-section]',
header: text('[data-test-section-header]'),
items: collection({
scope: '[data-test-item]',
header: text('[data-test-item-header]'),
importPath: text('[data-test-import-path]'),
description: text('[data-test-item-description]'),
params: collection({
scope: '[data-test-item-params] [data-test-item-param]'
})