Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
nemo-objects
Advanced tools
Easily implement and use the Page Object pattern in your nemo based tests, by using a simple api, mostly inspired by the ember-cli-page-object ember addon, widely used in the ember ecosystem for functional and integration testing.
npm install --save nemo-objects
In your nemo configuration, with an absolute path specify where your page objects are.
{
"plugins": {
"nemo-objects": {
"module": "nemo-objects",
"arguments": [
{
"pagesLocation": "/path/to/page-objects"
}
]
}
}
}
At the specified location, for any given file found a page object will be created at the nemo.objects
namespace. For example, if a file named countryCenter.js
is found, then a page object is created as nemo.object.countryCenter
.
At the countryCenter.js
file, a page-object can be declared as follows:
'use strict';
module.exports = function countryCenterPage(pageObject, nemo) {
const { visitable, collection, text } = pageObject;
return {
visit: visitable(`${nemo.data.url}/country-center`),
countries: collection({
scope: '.country-list',
itemScope: 'ul li',
item: {
countryName: text('span')
}
})
};
};
Which later can be used at your functional tests as:
// all the setup code for your nemo environment
// The `nemo` variable is made available here
describe('At the country center page', () => {
it('All user countries are shown', async () => {
const { countryCenter } = nemo.objects;
await countryCenter.visit();
const countries = await countryCenter.countries();
expect(countries.length).to.be.equal(4, 'the number of countries matches the user settings');
});
});
options
pagesLocation
- An absolute path indicating where you page objects areEach module located at the specified location should export a function, which receives the following arguments:
pageObject
- Holds the pageObject helper functions to be used along with your page objectsnemo
- The nemo instanceEach module is expected to return an object describing the page object.
FAQs
Easily implement and use the Page Object pattern in your nemo based tests
The npm package nemo-objects receives a total of 2 weekly downloads. As such, nemo-objects popularity was classified as not popular.
We found that nemo-objects demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.