Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/manual-test-matrix-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: "Check docker status"
run: systemctl status docker
- name: "Run npm install"
run: "npm install --ignore-scripts --before=\"$(date -d '7 days ago' --iso-8601=seconds)\""
run: 'npm install --ignore-scripts --before="$(date -d ''7 days ago'' --iso-8601=seconds)"'
- name: "Install Cypress binary"
run: "npx cypress install"
- name: "Run compile"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-pull-request-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
TESTCONTAINERS_RYUK_DISABLED: true
run: |
SPECS="${{ steps.changed-files-specific.outputs.all_changed_files }}"
KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:24.0 npm run test -- --browser=chrome --specs=$SPECS
KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:latest npm run test -- --browser=chrome --specs=$SPECS
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-project-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
firefox-version: "latest-esr"
- name: "Run npm install"
run: "npm install --ignore-scripts --before=\"$(date -d '7 days ago' --iso-8601=seconds)\""
run: 'npm install --ignore-scripts --before="$(date -d ''7 days ago'' --iso-8601=seconds)"'
- name: "Install Cypress binary"
run: "npx cypress install"
- name: "Run compile"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-run-all-tests-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: "Check docker status"
run: "systemctl status docker"
- name: "Run npm install"
run: "npm install --ignore-scripts --before=\"$(date -d '7 days ago' --iso-8601=seconds)\""
run: 'npm install --ignore-scripts --before="$(date -d ''7 days ago'' --iso-8601=seconds)"'
- name: "Install Cypress binary"
run: "npx cypress install"
- name: "Run compile"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ npm install
in the root directory to download all of the NPM dependencies specified in `package.json`

> **Security note:** To protect against npm supply chain attacks, it is recommended to use the following flags:
>
> - `--ignore-scripts` — prevents pre/post install scripts of dependencies from executing (main attack vector)
> - `--before` — limits package resolution to versions published more than 7 days ago, relying on security teams removing compromised packages within that window
>
Expand All @@ -54,6 +55,7 @@ in the root directory to download all of the NPM dependencies specified in `pack
> ```
>
> Note: `--ignore-scripts` also skips the project's own `postinstall` hook and the Cypress binary download. Run the following steps manually afterwards:
>
> ```
> npx cypress install
> npm run compile
Expand Down
4 changes: 3 additions & 1 deletion packages/testsuite/cypress/support/form-editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ Cypress.Commands.add("flip", (formId, attributeName, value) => {
} else {
cy.formInput(formId, attributeName).wait(1000).should("not.be.checked");
}
cy.get('div[data-form-item-group="' + formId + "-" + attributeName + '-editing"] .bootstrap-switch-label:visible')
cy.get('div[data-form-item-group="' + formId + "-" + attributeName + '-editing"]')
.scrollIntoView()
.find(".bootstrap-switch-label")
.click()
.wait(1000);
if (value) {
Expand Down
Loading