page.assignVarRemotely
command, which polls a given email server REST API until the desired email received (ot timeout). It retrieves the parsed the parsed value (e.g. activation link) and assigns it to a dynamic template variable accessible in all following test steps. The command can be configured to parse the received content.BASE_URL
(http://localhost:4567/ NodeBB default one for development environment), which depends on testing environment and TEST_PASSWORD
(fixture password used for registration) that once defined we can reuse across the project. REG_EMAIL_INPUT
, REG_USERNAME_INPUT
, REG_PASSWORD_INPUT
, REG_CON_PASSWORD_INPUT
, REG_SUBMIT_BTN
. After submitting the form the application brings us to the GDPR form (see screenshot), where we need to tick on consent checkboxes and click on Register button. Those elements we refer as REG_AGREE_EMAIL_CHECKBOX
, REG_AGREE_DATA_CHECKBOX
, REG_REGISTER_BTN
.TEST_EMAIL
that will accept during test run iterating values like [email protected], [email protected] and so on.TEST_EMAIL
.TEST_PASSWORD
template variable, which we defined above. ACTIVATION_LINK
.