Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
zalenskiSofteq committed Oct 29, 2024
1 parent 1a64e14 commit 8760958
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
8 changes: 3 additions & 5 deletions .github/e2e/test.app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ set -e
mkdir -p tests/e2e/remote

# Run RTE (Redis Test Environment)
# docker compose -f tests/e2e/rte.docker-compose.yml build
# docker compose -f tests/e2e/rte.docker-compose.yml up --force-recreate -d -V
# ./tests/e2e/wait-for-redis.sh localhost 12000
docker compose -f tests/e2e/rte.docker-compose.yml build
docker compose -f tests/e2e/rte.docker-compose.yml up --force-recreate -d -V
./tests/e2e/wait-for-redis.sh localhost 12000

# Run tests
# RI_SOCKETS_CORS=true xvfb-run --auto-servernum yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci
RI_SOCKETS_CORS=true \
TEST_FILES=dist/tests/settings/settings.e2e.js \
xvfb-run --auto-servernum \
yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci
15 changes: 2 additions & 13 deletions .github/workflows/tests-e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
fail-fast: false
matrix:
# Number of threads to run tests
# parallel: [0, 1, 2, 3]
parallel: [0]
parallel: [0, 1, 2, 3]
# parallel: [0]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -130,17 +130,6 @@ jobs:
list-suites: 'failed'
fail-on-error: 'false'

- name: Generate mocha test results for ${{ matrix.parallel }}th node
uses: dorny/test-reporter@v1
if: always()
with:
name: 'Test results: E2E (linux) ${{ matrix.parallel }}th node'
path: tests/e2e/mochawesome-report/*.json
reporter: mocha-json
list-tests: 'failed'
list-suites: 'failed'
fail-on-error: 'false'

# merge-artifacts:
# runs-on: ubuntu-latest
# needs: e2e-linux-tests
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/src/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ describe('Agreements Verification', () => {
// Verify that Submit button disabled by default if EULA not accepted
expect(
await eulaView.isElementDisabled(eulaView.submitButton, 'class'),
).eql(false, 'Submut button not disabled by default')
).eql(true, 'Submut button not disabled by default')
})

it('Verify that when user checks "Use recommended settings" option on EULA screen, all options (except Licence Terms) are checked', async () => {
// Verify options unchecked before enabling Use recommended settings
expect(
await CheckboxActions.getCheckboxState(eulaView.analyticsCheckbox),
).eql(true, 'Enable Analytics switcher is checked')
).eql(false, 'Enable Analytics switcher is checked')
expect(
await CheckboxActions.getCheckboxState(eulaView.useRecommendedCheckbox),
).eql(true, 'Use recommended settings switcher is checked')
).eql(false, 'Use recommended settings switcher is checked')
expect(await CheckboxActions.getCheckboxState(eulaView.eulaCheckbox)).eql(
false,
'EULA switcher is checked',
Expand Down

0 comments on commit 8760958

Please sign in to comment.