Commit 46252dba authored by Lily Yan's avatar Lily Yan
Browse files

Merge branch 'feature/ISTWCMS-4082-edit-page-url' into '8.x-3.x'

ISTWCMS-4082: Store edit page URL for use in later testing

See merge request !6
parents 84cf9b3a d23c2023
......@@ -213,7 +213,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
// On node edit, the user is not redirected to the layout edit page.
$this->clickLink('Edit');
// Store edit link for later use.
$url = $this->getSession()->getCurrentUrl();
// Save edit form without making changes.
$this->submitForm([], 'Save');
// Verify that we are not on the layout edit page.
$this->assertSession()->pageTextContains($edit['edit-title-0-value'] . ' has been updated');
$this->assertSession()->pageTextNotContains('Edit layout for');
......@@ -221,7 +225,6 @@ class UwWcmsBasicTest extends BrowserTestBase {
// This is custom WCMS functionality in uw_sites_all.
if ($content_type === 'uw_ct_web_page') {
$title = $edit['edit-title-0-value'];
$url = $this->getSession()->getCurrentUrl() . '/edit';
$this->drupalLogin($this->drupalUsers['administrator']);
// By default, "Place in site hierarchy" is unchecked. There should be
// no menu item.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment