From 23db74e639b8c4091f777f9dfc3bfefb5cea9dda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 01:09:22 +0000 Subject: [PATCH] Bump eslint-plugin-mocha from 10.2.0 to 10.3.0 in /js Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 10.2.0 to 10.3.0. - [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases) - [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/CHANGELOG.md) - [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/10.2.0...10.3.0) --- updated-dependencies: - dependency-name: eslint-plugin-mocha dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .../admin-ui/cypress/e2e/authentication_policies.spec.ts | 2 ++ .../cypress/e2e/authentication_policies_ciba.spec.ts | 1 + js/apps/admin-ui/cypress/e2e/authentication_test.spec.ts | 2 ++ js/apps/admin-ui/cypress/e2e/clients_test.spec.ts | 2 ++ js/apps/admin-ui/cypress/e2e/events_test.spec.ts | 1 + js/apps/admin-ui/cypress/e2e/group_test.spec.ts | 1 + js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts | 1 + js/apps/admin-ui/cypress/e2e/realm_roles_test.spec.ts | 1 + .../admin-ui/cypress/e2e/realm_settings_tabs_test.spec.ts | 2 ++ js/package.json | 2 +- js/pnpm-lock.yaml | 8 ++++---- 11 files changed, 18 insertions(+), 5 deletions(-) diff --git a/js/apps/admin-ui/cypress/e2e/authentication_policies.spec.ts b/js/apps/admin-ui/cypress/e2e/authentication_policies.spec.ts index 66559fdf1e..aa9bf73159 100644 --- a/js/apps/admin-ui/cypress/e2e/authentication_policies.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/authentication_policies.spec.ts @@ -12,6 +12,7 @@ describe("Policies", () => { describe("OTP policies tab", () => { const otpPoliciesPage = new OTPPolicies(); + beforeEach(() => { loginPage.logIn(); keycloakBefore(); @@ -33,6 +34,7 @@ describe("Policies", () => { describe("Webauthn policies tabs", () => { const webauthnPage = new WebAuthnPolicies(); + beforeEach(() => { loginPage.logIn(); keycloakBefore(); diff --git a/js/apps/admin-ui/cypress/e2e/authentication_policies_ciba.spec.ts b/js/apps/admin-ui/cypress/e2e/authentication_policies_ciba.spec.ts index e32afe92e5..4151208772 100644 --- a/js/apps/admin-ui/cypress/e2e/authentication_policies_ciba.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/authentication_policies_ciba.spec.ts @@ -15,6 +15,7 @@ describe("Authentication - Policies - CIBA", () => { const realmName = uuid(); before(() => adminClient.createRealm(realmName)); + after(() => adminClient.deleteRealm(realmName)); beforeEach(() => { diff --git a/js/apps/admin-ui/cypress/e2e/authentication_test.spec.ts b/js/apps/admin-ui/cypress/e2e/authentication_test.spec.ts index 522fa577dc..5268b6f7b5 100644 --- a/js/apps/admin-ui/cypress/e2e/authentication_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/authentication_test.spec.ts @@ -168,6 +168,7 @@ describe("Authentication test", () => { }); const flowName = "Empty Flow"; + it("should create flow from scratch", () => { listingPage.goToCreateItem(); detailPage.fillCreateForm( @@ -288,6 +289,7 @@ describe("Accessibility tests for authentication", () => { const detailPage = new FlowDetails(); before(() => adminClient.createRealm(realmName)); + after(() => adminClient.deleteRealm(realmName)); beforeEach(() => { diff --git a/js/apps/admin-ui/cypress/e2e/clients_test.spec.ts b/js/apps/admin-ui/cypress/e2e/clients_test.spec.ts index 33ab018041..a245740e43 100644 --- a/js/apps/admin-ui/cypress/e2e/clients_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/clients_test.spec.ts @@ -517,6 +517,7 @@ describe("Clients test", () => { }); const identicalClientId = "identical"; + it("Should fail to create client with same ID", () => { commonPage.sidebar().goToClients(); commonPage.tableToolbarUtils().createClient(); @@ -1000,6 +1001,7 @@ describe("Clients test", () => { describe("Mapping tab", () => { const mappingClient = "mapping-client"; + beforeEach(() => { loginPage.logIn(); keycloakBefore(); diff --git a/js/apps/admin-ui/cypress/e2e/events_test.spec.ts b/js/apps/admin-ui/cypress/e2e/events_test.spec.ts index d08377735f..d4dab2eaf8 100644 --- a/js/apps/admin-ui/cypress/e2e/events_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/events_test.spec.ts @@ -272,6 +272,7 @@ describe.skip("Events tests", () => { const realmName = uuid(); before(() => adminClient.createRealm(realmName)); + after(() => adminClient.deleteRealm(realmName)); beforeEach(() => { diff --git a/js/apps/admin-ui/cypress/e2e/group_test.spec.ts b/js/apps/admin-ui/cypress/e2e/group_test.spec.ts index df1d29c988..245c0a5988 100644 --- a/js/apps/admin-ui/cypress/e2e/group_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/group_test.spec.ts @@ -454,6 +454,7 @@ describe("Group test", () => { describe("Role mappings", () => { const roleMappingTab = new RoleMappingTab("group"); + beforeEach(() => { groupPage.goToGroupChildGroupsTab(predefinedGroups[0]); groupDetailPage.goToRoleMappingTab(); diff --git a/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts b/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts index 92ff4856a5..cd1311963d 100644 --- a/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts @@ -9,6 +9,7 @@ describe("Partial realm export", () => { const REALM_NAME = "Partial-export-test-realm"; before(() => adminClient.createRealm(REALM_NAME)); + after(() => adminClient.deleteRealm(REALM_NAME)); const loginPage = new LoginPage(); diff --git a/js/apps/admin-ui/cypress/e2e/realm_roles_test.spec.ts b/js/apps/admin-ui/cypress/e2e/realm_roles_test.spec.ts index 93994f140a..a354aa8a1d 100644 --- a/js/apps/admin-ui/cypress/e2e/realm_roles_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/realm_roles_test.spec.ts @@ -262,6 +262,7 @@ describe("Realm roles test", () => { }); const keyValue = new KeyValueInput("attributes"); + it("should add attribute", () => { listingPage.itemExist(editRoleName).goToItemDetails(editRoleName); diff --git a/js/apps/admin-ui/cypress/e2e/realm_settings_tabs_test.spec.ts b/js/apps/admin-ui/cypress/e2e/realm_settings_tabs_test.spec.ts index aa4db5e6c7..3e0d8617a5 100644 --- a/js/apps/admin-ui/cypress/e2e/realm_settings_tabs_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/realm_settings_tabs_test.spec.ts @@ -138,6 +138,7 @@ describe("Realm settings tabs tests", () => { realmSettingsPage.saveSecurityDefensesHeaders(); masthead.checkNotificationMessage("Realm successfully updated"); }); + it("Realm header settings- update all inputs", () => { sidebarPage.goToRealmSettings(); realmSettingsPage.goToSecurityDefensesTab(); @@ -152,6 +153,7 @@ describe("Realm settings tabs tests", () => { realmSettingsPage.saveSecurityDefensesHeaders(); masthead.checkNotificationMessage("Realm successfully updated"); }); + it("Brute force detection- update values", () => { sidebarPage.goToRealmSettings(); realmSettingsPage.goToSecurityDefensesTab(); diff --git a/js/package.json b/js/package.json index 2cc1d3dfa7..38237b0a65 100644 --- a/js/package.json +++ b/js/package.json @@ -14,7 +14,7 @@ "eslint-plugin-cypress": "^2.15.1", "eslint-plugin-import": "^2.29.1", "eslint-plugin-lodash": "^7.4.0", - "eslint-plugin-mocha": "^10.2.0", + "eslint-plugin-mocha": "^10.3.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index 056f29fbdf..5492ad1a4c 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -36,8 +36,8 @@ importers: specifier: ^7.4.0 version: 7.4.0(eslint@8.56.0) eslint-plugin-mocha: - specifier: ^10.2.0 - version: 10.2.0(eslint@8.56.0) + specifier: ^10.3.0 + version: 10.3.0(eslint@8.56.0) eslint-plugin-prettier: specifier: ^5.1.3 version: 5.1.3(eslint-config-prettier@9.1.0)(eslint@8.56.0)(prettier@3.2.5) @@ -3876,8 +3876,8 @@ packages: lodash: 4.17.21 dev: true - /eslint-plugin-mocha@10.2.0(eslint@8.56.0): - resolution: {integrity: sha512-ZhdxzSZnd1P9LqDPF0DBcFLpRIGdh1zkF2JHnQklKQOvrQtT73kdP5K9V2mzvbLR+cCAO9OI48NXK/Ax9/ciCQ==} + /eslint-plugin-mocha@10.3.0(eslint@8.56.0): + resolution: {integrity: sha512-IWzbg2K6B1Q7h37Ih4zMyW+nhmw1JvUlHlbCUUUu6PfOOAUGCB0gxmvv7/U+TQQ6e8yHUv+q7KMdIIum4bx+PA==} engines: {node: '>=14.0.0'} peerDependencies: eslint: '>=7.0.0'