f2ba927d34
- Added SCIM to the list of available providers - Fixed ForwardProxy so that its mode is set correctly. (This is a special case in the committer; I'm unhappy with that.) - Fixed the commit messages so that: - icons are set correctly (Success, Danger, Working) - icons are colored correctly according to state - commit message includes a `data-commit-state` field so tests can find it! - Merged the application wizard tests into a single test pass - Isolated common parts of the application wizard tests to reduce unnecessary repetition. All application tests are the same until you reach the provider section anyway. - Fixed the unit tests so they're finding the right error messages and are enabled to display them correctly. - Moved the test Form handlers into their own folder so they're not cluttering up the Pages folder.
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
.PHONY: help precommit admin-user test-good-login test-bad-login
|
|
|
|
help: ## Show this help
|
|
@echo "\nSpecify a command. The choices are:\n"
|
|
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
|
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-20s\033[m %s\n", $$1, $$2}'
|
|
@echo ""
|
|
|
|
ROOT := $(shell git rev-parse --show-toplevel 2> /dev/null)
|
|
WDIO = npm run wdio
|
|
SPEC = $(WDIO) -- --logLevel warn --spec ./test/specs
|
|
|
|
LOCAL_BLUEPRINTS=$(ROOT)/blueprints/local
|
|
|
|
node_modules: ## Runs `npm install` to prepare this feature
|
|
npm ci
|
|
|
|
precommit: node_modules ## Run the precommit: spell check all comments, eslint with sonarJS, prettier-write
|
|
npm run precommit
|
|
|
|
# Actual tests are down below:
|
|
|
|
$(ROOT)/blueprints/local/admin-user.yaml:
|
|
mkdir -p $(LOCAL_BLUEPRINTS)
|
|
cp ./blueprints/admin-user.yaml $(LOCAL_BLUEPRINTS)
|
|
cd $(ROOT) && ak apply_blueprint local/admin-user.yaml
|
|
|
|
|
|
admin-user: $(ROOT)/blueprints/local/admin-user.yaml
|
|
|
|
|
|
test-good-login: node_modules admin-user ## Test that we can log into the server. Requires a running instance of the server.
|
|
$(SPEC)/good-login.ts
|
|
|
|
|
|
test-bad-login: node_modules admin-user ## Test that bad usernames and passwords create appropriate error messages
|
|
$(SPEC)/bad-logins.ts
|
|
|
|
|
|
test-application-wizard:
|
|
$(SPEC)/new-application-by-wizard.ts
|