Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cross-request RW demos Behat testing #2031

Merged
merged 9 commits into from
Apr 29, 2023
Merged

Add cross-request RW demos Behat testing #2031

merged 9 commits into from
Apr 29, 2023

Conversation

mvorisek
Copy link
Member

Currently all changes are tested to be made and returned within the same DB transaction which is great to enforce the atk4/ui to made as less server requests possible and always work with fresh data for each Behat scenario, but this imply we cannot test advanced features - like CardDeck or more than one change per test scenario.

@mvorisek mvorisek changed the title Add cross-request RW demos testing Add cross-request RW demos Behat testing Apr 28, 2023
{
static $rw = null;
if ($rw === null) {
$rw = file_exists(__DIR__ . '/db-behat-rw.txt');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pro tip: to test cross-request RW demos localy, create empty file manually

@mvorisek mvorisek marked this pull request as ready for review April 28, 2023 22:56
@mvorisek mvorisek merged commit f45337e into develop Apr 29, 2023
@mvorisek mvorisek deleted the rw_behat_testing branch April 29, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant