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
28c654f0
Commit
28c654f0
authored
7 months ago
by
Jovan Fang
Committed by
Lily Yan
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6985: Codeception: Media above test error fix
parent
38bd02f6
No related branches found
No related tags found
1 merge request
!71
ISTWCMS-6985: Hero Banner Deleted Test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
acceptance/WcmsTestsMediaAboveCest.php
+16
-16
16 additions, 16 deletions
acceptance/WcmsTestsMediaAboveCest.php
with
16 additions
and
16 deletions
acceptance/WcmsTestsMediaAboveCest.php
+
16
−
16
View file @
28c654f0
...
@@ -234,26 +234,26 @@ class WcmsTestsMediaAboveCest {
...
@@ -234,26 +234,26 @@ class WcmsTestsMediaAboveCest {
$counter
==
0
$counter
==
0
);
);
// Delete banner image.
// Increment the counter for the test image flag.
$i
->
amOnPage
(
'admin/content/media'
);
$counter
++
;
$i
->
checkOption
(
'input[id="edit-media-bulk-form-0"]'
);
}
$i
->
click
(
'#edit-submit'
);
$i
->
waitForText
(
'Are you sure you want to delete this media item?'
);
$i
->
click
(
'#edit-submit'
);
// Return to content page.
// Delete banner image.
$i
->
amOnPage
(
$path
);
$i
->
amOnPage
(
'admin/content/media'
);
$i
->
checkOption
(
'input[id="edit-media-bulk-form-0"]'
);
$i
->
click
(
'#edit-submit'
);
$i
->
waitForText
(
'Are you sure you want to delete this media item?'
);
$i
->
click
(
'#edit-submit'
);
// Check title still displays.
// Return to content page.
$i
->
waitForText
(
$node_title
);
$i
->
amOnPage
(
$path
);
$i
->
seeElement
(
Locator
::
contains
(
'h1'
,
$node_title
));
// Re-upload image to media.
// Check title still displays.
$this
->
setImageForMedia
(
$i
,
$images
[
0
]);
$i
->
waitForText
(
$node_title
);
$i
->
seeElement
(
Locator
::
contains
(
'h1'
,
$node_title
));
// Increment the counter for the test image flag.
// Re-upload image to media.
$counter
++
;
$this
->
setImageForMedia
(
$i
,
$images
[
array_key_last
(
$images
)]);
}
}
}
}
}
...
...
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