Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wcms_tests
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
wcms_tests
Commits
aab1db68
Commit
aab1db68
authored
3 months ago
by
Lily Yan
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-7189 Add switchToIFrame to make testContentTypeEdits work in ContentType
parent
e35644ce
No related branches found
Branches containing commit
No related tags found
1 merge request
!83
ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_support/Step/Acceptance/ContentType.php
+7
-2
7 additions, 2 deletions
_support/Step/Acceptance/ContentType.php
with
7 additions
and
2 deletions
_support/Step/Acceptance/ContentType.php
+
7
−
2
View file @
aab1db68
...
@@ -252,6 +252,9 @@ class ContentType extends \AcceptanceTester {
...
@@ -252,6 +252,9 @@ class ContentType extends \AcceptanceTester {
$i
->
click
(
'Copy text'
);
$i
->
click
(
'Copy text'
);
$i
->
waitForText
(
'Configure block'
);
$i
->
waitForText
(
'Configure block'
);
// Switch the block form iframe.
$i
->
switchToIFrame
(
'iframe[class="lbim-dialog-iframe"]'
);
// FIll in fields.
// FIll in fields.
$i
->
fillField
(
'input[name="settings[label]"]'
,
$i
->
uwRandomString
());
$i
->
fillField
(
'input[name="settings[label]"]'
,
$i
->
uwRandomString
());
$i
->
fillCkEditor
(
$i
->
uwRandomString
(),
'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]'
);
$i
->
fillCkEditor
(
$i
->
uwRandomString
(),
'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]'
);
...
@@ -259,8 +262,10 @@ class ContentType extends \AcceptanceTester {
...
@@ -259,8 +262,10 @@ class ContentType extends \AcceptanceTester {
// Click add block and ensure it appears on page.
// Click add block and ensure it appears on page.
$i
->
waitForText
(
'Add block'
);
$i
->
waitForText
(
'Add block'
);
$i
->
click
(
'Add block'
);
$i
->
click
(
'Add block'
);
$i
->
waitForElement
(
Locator
::
contains
(
'div[class="uw-admin-label"]'
,
'Copy text'
));
$i
->
click
(
'Add block'
);
$i
->
seeElement
(
Locator
::
contains
(
'div[class="uw-admin-label"]'
,
'Copy text'
));
$i
->
switchToIFrame
();
$i
->
waitForElement
(
'div[class="uw-copy-text"]'
);
$i
->
seeElement
(
'div[class="uw-copy-text"]'
);
// Save the layout and ensure that new block appears
// Save the layout and ensure that new block appears
// on the page with correct section classes.
// on the page with correct section classes.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment