E2E tests for connection settings #44
Merged
+82
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the goal?
Add E2E tests for Configuration > Connection settings
References
How is it being implemented?
This pull request includes several changes aimed at enhancing the configuration and testing capabilities of the project. The most important changes include modifications to the configuration settings, updates to the Playwright test configuration, and the addition of new test cases for connection settings.
Configuration updates:
.env.sample
: Updated SeQura configuration values to usedummy_automated_tests
and added new service credentials.Enhancements to Playwright tests:
playwright.config.js
: Added a new test suite forconfiguration-connection
to the Playwright configuration.tests-e2e/fixtures/test.js
: ImportedConnectionSettingsPage
andOnboardingSettingsPage
and extended the test fixture with these new page objects. [1] [2]New test cases:
tests-e2e/specs/007-configuration-connection.spec.js
: Added new test cases for connection settings, including tests for disconnecting, changing credentials, and handling incorrect credentials.Database handling improvement:
.docker/magento/HelperModule/Sequra/Helper/Model/Task/ConfigureDummyTask.php
: Improved the dummy configuration setup by fetching the maximum ID from the database table.How is it tested?
Automatic tests
How is it going to be deployed?
Standard deployment