The Confluence® Protractor Base is a simple solution to implement und run UI tests for Atlassian® Confluence®. It provides basic functionality like creating pages, spaces, users and groups as well as login, authenticate as admin and open pages.
npm install confluence-protractor-base
npm install
webdriver-update
./node_modules/.bin/webdriver-manager start --seleniumPort 4444
npm run test-e2e
First of all you need a local Confluence instance.
The instance should be locally available under http://confluence:8090\
Note: There may be changes needed in the /etc/hosts
file\
127.0.0.1 confluence
This can be done via the Atlassian SDK or with a Docker container
Start a local Confluence test instance using the Atlassian® SDK
atlas-run-standalone --product confluence --http-port 8090 --server confluence --context-path ROOT --jvmargs "-Xms4g -Xmx4g -server"
Start a local Confluence® docker instance\
We have tested the confluence-protractor-base with
See Issues
Page edit with synchrony enabled may be unstable. All page objects inheriting from ConfluenceBase
have a
disableSynchrony()
method to prevent problems. Example:
const upm = new UniversalPluginManager();
upm.disableSynchrony();
Generated using TypeDoc