From f7da6b10000b17a83d73042aa1bda87adb3dd3ca Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 25 Nov 2024 14:41:31 +1300 Subject: [PATCH] MNT Remove webauthn module from behat tests --- composer.json | 1 - tests/behat/features/mfa-totp.feature | 12 +----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 9841b63..b3c7fb0 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ "squizlabs/php_codesniffer": "^3", "silverstripe/documentation-lint": "^1", "silverstripe/recipe-testing": "^4", - "silverstripe/webauthn-authenticator": "^6", "silverstripe/frameworktest": "^2", "silverstripe/standards": "^1", "phpstan/extension-installer": "^1.3" diff --git a/tests/behat/features/mfa-totp.feature b/tests/behat/features/mfa-totp.feature index 72c0eb8..24d4812 100644 --- a/tests/behat/features/mfa-totp.feature +++ b/tests/behat/features/mfa-totp.feature @@ -61,12 +61,9 @@ Feature: Use MFA TOTP And I log in with "NO_ACCESS@example.org" and "Secret!123" without skipping MFA Then I should not see "Add extra security to your account" - Scenario: User can select a verification method, handles incorrect TOTP codes + Scenario: Handles incorrect TOTP codes When I log in with "EDITOR@example.org" and "Secret!123" without skipping MFA And I press the "Get started" button - And I should see "Select a verification method" - When I click on the "img[alt='Authenticator app']" element - And I press the "Next" button # QR code screen And I press the "Next" button # Enter invalid code @@ -87,13 +84,6 @@ Feature: Use MFA TOTP Then I should see "Authenticator app: Registered" And I should see "Recovery codes" - # Add another MFA method - When I press the "Add another MFA method" button - And I wait for 3 seconds - Then I should see "Select a verification method" - # close the modal - When I press the "Back" button - # Reset method - will show a QR code - should still manually test When I press the TOTP authenticator app "Reset" button with javascript And I wait for 3 seconds