mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-27 02:05:17 +00:00
some updates for NDR_PP1 cypress tests w/ burnettk
This commit is contained in:
parent
661fe7fef4
commit
b1d27cec75
2
spiffworkflow-frontend/.gitignore
vendored
2
spiffworkflow-frontend/.gitignore
vendored
@ -33,3 +33,5 @@ cypress/screenshots
|
||||
|
||||
# Editors
|
||||
.idea
|
||||
|
||||
/cypress.env
|
||||
|
@ -30,6 +30,14 @@ if [[ -z "${CYPRESS_SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK:-}" ]]; then
|
||||
export CYPRESS_SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK=true
|
||||
fi
|
||||
|
||||
if [[ -f cypress.env ]]; then
|
||||
# shellcheck disable=1091
|
||||
source cypress.env
|
||||
else
|
||||
>&2 echo "ERROR: This requires a cypress.env file to run. You may be able to use generate_pp1_cypress_env_configs."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cypress_run_file="/var/tmp/cypress_run"
|
||||
echo "Recording stats to ${cypress_run_file}"
|
||||
|
||||
@ -44,7 +52,6 @@ for attempt in $(seq 1 "$ATTEMPTS" ); do
|
||||
|
||||
start_time=$(date +%s)
|
||||
success="false"
|
||||
# spec_pattern="cypress/pilot/**/*.cy.{js,jsx,ts,tsx}"
|
||||
spec_pattern="cypress/pilot/**/*.cy.{js,jsx,ts,tsx}"
|
||||
if ./node_modules/.bin/cypress "$command" -c specPattern="${spec_pattern}" --e2e --browser chrome "$@"; then
|
||||
success="true"
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -63,6 +63,7 @@ Cypress.Commands.add('login', (username, password) => {
|
||||
|
||||
Cypress.Commands.add('logout', (_selector, ..._args) => {
|
||||
cy.get('#user-profile-toggletip').click();
|
||||
cy.wait(2000);
|
||||
cy.getBySel('logout-button').click();
|
||||
if (Cypress.env('SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK') === true) {
|
||||
// otherwise we can click logout, quickly load the next page, and the javascript
|
||||
|
Loading…
x
Reference in New Issue
Block a user