diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 946ce5c59..be7a6e463 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest , windows-latest ] + os: [ubuntu-latest] # Removed windows-latest runs-on: ${{ matrix.os }} env: OPENSEARCH_INITIAL_ADMIN_PASSWORD: admin @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout Branch uses: actions/checkout@v3 - + - name: Set up JDK uses: actions/setup-java@v1 with: @@ -47,12 +47,12 @@ jobs: if: ${{ runner.os == 'Linux' }} # Browser-action version does not work on Windows - - name: Set up Firefox browser for Windows - if: ${{ runner.os == 'Windows' }} - uses: RyanL1997/setup-browser@main - with: - browser: firefox - version: latest + # - name: Set up Firefox browser for Windows + # if: ${{ runner.os == 'Windows' }} + # uses: RyanL1997/setup-browser@main + # with: + # browser: firefox + # version: latest - name: Download security plugin and create setup scripts uses: ./.github/actions/download-plugin @@ -65,7 +65,7 @@ jobs: uses: derek-ho/start-opensearch@v2 with: opensearch-version: ${{ env.OPENSEARCH_VERSION }} - plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip" + plugins: 'file:$(pwd)/${{ env.PLUGIN_NAME }}.zip' security-enabled: true admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} @@ -97,10 +97,10 @@ jobs: yarn test:jest_server --coverage working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} - - name: Run integration tests on Windows - if: ${{ runner.os == 'Windows' }} - run: | - echo "check if opensearch is ready" - curl -XGET https://localhost:9200 -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k - node .\test\run_jest_tests.js --runInBand --detectOpenHandles --forceExit --config .\test\jest.config.server.js - working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} + # - name: Run integration tests on Windows + # if: ${{ runner.os == 'Windows' }} + # run: | + # echo "check if opensearch is ready" + # curl -XGET https://localhost:9200 -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k + # node .\test\run_jest_tests.js --runInBand --detectOpenHandles --forceExit --config .\test\jest.config.server.js + # working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index f08f12063..58315d6f2 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -1,6 +1,6 @@ name: Unit Tests -on: [ push, pull_request ] +on: [push, pull_request] jobs: unit-tests: @@ -8,13 +8,13 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest] # Removed windows-latest, macos-latest runs-on: ${{ matrix.os }} steps: - - name: Enable longer filenames - if: ${{ matrix.os == 'windows-latest' }} - run: git config --system core.longpaths true + # - name: Enable longer filenames + # if: ${{ matrix.os == 'windows-latest' }} + # run: git config --system core.longpaths true - name: Checkout Branch uses: actions/checkout@v2 diff --git a/package.json b/package.json index 0c98c7982..781fc922a 100644 --- a/package.json +++ b/package.json @@ -50,4 +50,4 @@ "glob-parent": "^5.1.2", "debug": "^4.3.4" } -} +} \ No newline at end of file diff --git a/test/cypress/e2e/oidc/oidc_auth_test.spec.js b/test/cypress/e2e/oidc/oidc_auth_test.spec.js index 08a7e8ae1..510bfdde6 100644 --- a/test/cypress/e2e/oidc/oidc_auth_test.spec.js +++ b/test/cypress/e2e/oidc/oidc_auth_test.spec.js @@ -105,6 +105,9 @@ describe('Log in via OIDC', () => { }); localStorage.setItem('home:newThemeModal:show', 'false'); + cy.get('#user-icon-btn').should('be.visible'); + cy.get('#user-icon-btn').click(); + cy.get('button[data-test-subj^="switch-tenants"]').click(); cy.get('#private').should('be.enabled'); cy.get('#private').click({ force: true }); diff --git a/test/cypress/e2e/saml/saml_auth_test.spec.js b/test/cypress/e2e/saml/saml_auth_test.spec.js index b8f6a134f..35e38e7b6 100644 --- a/test/cypress/e2e/saml/saml_auth_test.spec.js +++ b/test/cypress/e2e/saml/saml_auth_test.spec.js @@ -100,6 +100,9 @@ describe('Log in via SAML', () => { }); samlLogin(); + cy.get('#user-icon-btn').should('be.visible'); + cy.get('#user-icon-btn').click(); + cy.get('button[data-test-subj^="switch-tenants"]').click(); cy.get('#private').should('be.enabled'); cy.get('#private').click({ force: true });