
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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 0 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.