diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ae56adacc..4e4249250 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -111,17 +111,13 @@ jobs: working-directory: integration-tests/e2e-tests run: yarn test:sdk - - name: Generate end-to-end report - working-directory: integration-tests/e2e-tests - run: yarn test:sdk:report - - name: Add notes to summary working-directory: integration-tests/e2e-tests run: cat notes >> $GITHUB_STEP_SUMMARY - name: Publish Serenity report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: atala-prism-sdk-ts - path: integration-tests/e2e-tests/target/site/wallet-sdk-ts + name: sdk-ts-e2e-results + path: integration-tests/e2e-tests/target/sdk-ts-e2e-results.html if-no-files-found: error diff --git a/integration-tests/e2e-tests/.eslintrc.yml b/integration-tests/e2e-tests/.eslintrc.yml index 7952d7601..3e16b6154 100644 --- a/integration-tests/e2e-tests/.eslintrc.yml +++ b/integration-tests/e2e-tests/.eslintrc.yml @@ -2,10 +2,11 @@ root: true ignorePatterns: - target env: - es2021: true + esnext: true node: true extends: - eslint:recommended + - plugin:@typescript-eslint/eslint-recommended - plugin:@typescript-eslint/recommended parser: '@typescript-eslint/parser' parserOptions: diff --git a/integration-tests/e2e-tests/config/cucumber.sdk.js b/integration-tests/e2e-tests/config/cucumber.sdk.js deleted file mode 100644 index 85435d253..000000000 --- a/integration-tests/e2e-tests/config/cucumber.sdk.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = { - default: [ - "--format '@serenity-js/cucumber'", - "--require=tests/sdk/steps/**/*.ts", - "--require=config/serenity.config.ts", - "--require-module=ts-node/register", - "--backtrace" - ].join(" "), - glue: [ - "tests/sdk/src/**/*.ts" - ] -} diff --git a/integration-tests/e2e-tests/cucumber.js b/integration-tests/e2e-tests/cucumber.js new file mode 100644 index 000000000..ff38c16b6 --- /dev/null +++ b/integration-tests/e2e-tests/cucumber.js @@ -0,0 +1,18 @@ +module.exports = { + default: { + format: [ + "@serenity-js/cucumber", + ["html", "target/sdk-ts-e2e-results.html"], + ], + formatOptions: { + junit: { + suiteName: "E2E: Prism Wallet SDK - TS" + } + }, + requireModule: ["ts-node/register"], + require: [ + "src/**/*.ts" + ], + retry: 1 + } +} diff --git a/integration-tests/e2e-tests/features/create_connection.feature b/integration-tests/e2e-tests/features/create_connection.feature new file mode 100644 index 000000000..68356e25e --- /dev/null +++ b/integration-tests/e2e-tests/features/create_connection.feature @@ -0,0 +1,17 @@ +@connection +Feature: Create connection + The Edge Agent should be able to create a connection to prism-agent + + Scenario Outline: Create connection + Given Cloud Agent has a connection invitation with '