Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 24 additions & 60 deletions tests/EndToEnd/forms/blocks-shortcodes/PageBlockFormBuilderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,9 @@ public function testFormBuilderBlockWithDefaultConfiguration(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -188,12 +185,9 @@ public function testFormBuilderBlockWithTextCustomization(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -304,12 +298,9 @@ public function testFormBuilderBlockWithFormEnabled(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -412,12 +403,9 @@ public function testFormBuilderBlockWithTaggingEnabled(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -519,12 +507,9 @@ public function testFormBuilderBlockWithSequenceEnabled(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -625,12 +610,9 @@ public function testFormBuilderBlockWithCustomField(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -761,12 +743,9 @@ public function testFormBuilderBlockWithRedirectOption(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page, setting the Form setting to the value specified in the .env file.
Expand Down Expand Up @@ -915,12 +894,9 @@ public function testFormBuilderFieldsCanOnlyBeInsertedToFormBuilderBlock(EndToEn
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Confirm the Form Field blocks cannot be added, as we are not within the Form Builder block.
Expand Down Expand Up @@ -974,12 +950,9 @@ public function testFormBuilderSupportsCoreBlocks(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add the Form Builder block.
Expand Down Expand Up @@ -1031,12 +1004,9 @@ public function testFormBuilderWithRecaptchaEnabled(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -1098,12 +1068,9 @@ public function testFormBuilderWithRecaptchaEnabledAndHighMinimumScore(EndToEndT
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down Expand Up @@ -1154,12 +1121,9 @@ public function testFormBuilderWithStoreEntriesEnabled(EndToEndTester $I)
);

// Configure metabox's Form setting = None, ensuring we only test the block in Gutenberg.
$I->configureMetaboxSettings(
$I->configurePluginSidebarSettings(
$I,
'wp-convertkit-meta-box',
[
'form' => [ 'select2', 'None' ],
]
form: 'None'
);

// Add block to Page.
Expand Down
Loading
Loading