-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3231 from ExpressionEngine/7.dev
ExpressionEngine 7.2.14
- Loading branch information
Showing
10 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/** | ||
* This source file is part of the open source project | ||
* ExpressionEngine (https://expressionengine.com) | ||
* | ||
* @link https://expressionengine.com/ | ||
* @copyright Copyright (c) 2003-2023, Packet Tide, LLC (https://www.packettide.com) | ||
* @license https://expressionengine.com/license Licensed under Apache License, Version 2.0 | ||
*/ | ||
|
||
namespace ExpressionEngine\Updater\Version_7_2_14; | ||
|
||
/** | ||
* Update | ||
*/ | ||
class Updater | ||
{ | ||
public $version_suffix = ''; | ||
|
||
/** | ||
* Do Update | ||
* | ||
* @return TRUE | ||
*/ | ||
public function do_update() | ||
{ | ||
return true; | ||
} | ||
} | ||
|
||
// EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/// <reference types="Cypress" /> | ||
const { _, $ } = Cypress | ||
|
||
|
||
context('Member Registration', () => { | ||
|
||
before(function() { | ||
cy.task('db:seed') | ||
|
||
cy.eeConfig({ item: 'save_tmpl_files', value: 'y' }) | ||
cy.eeConfig({ item: 'require_captcha', value: 'n' }) | ||
|
||
//copy templates | ||
cy.task('filesystem:copy', { from: 'support/templates/*', to: '../../system/user/templates/' }).then(() => { | ||
cy.authVisit('admin.php?/cp/design') | ||
}) | ||
}) | ||
|
||
|
||
it('login on front-end', function() { | ||
cy.clearCookies() | ||
cy.visit('index.php/members/login'); | ||
cy.get('.sidebar').should('contain', 'Logged out') | ||
cy.logFrontendPerformance() | ||
cy.intercept("**?ACT=**").as('ajax') | ||
cy.get('input[name=username]').clear().type('admin'); | ||
cy.get('input[name=password]').clear().type('password'); | ||
cy.get('input[name=submit]').click(); | ||
cy.hasNoErrors(); | ||
cy.get('body').should('not.contain', 'errors were encountered') | ||
|
||
cy.get('.sidebar').should('not.contain', 'Logged out') | ||
cy.get('.sidebar a').contains('Logout').click() | ||
cy.get('button').contains('Logout').click() | ||
cy.hasNoErrors(); | ||
cy.get('body').should('not.contain', 'errors were encountered') | ||
cy.get('.sidebar').should('contain', 'Logged out') | ||
}) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
tests/cypress/support/templates/default_site/members.group/_sidebar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{if logged_in} | ||
<p>Logged in as <b>{username}</b></p> | ||
<ul> | ||
<li><a href="/members/logout">Logout ✔</a></li> | ||
<li><a href="/members/delete">Delete</a></li> | ||
<li><a href="/members/profile">View Profile</a></li> | ||
<li><a href="/members/profile-edit">Edit Profile</a></li> | ||
<li><a href="/members/invite">Invite</a></li> | ||
<li><a href="{path=members/logout}">Logout ✔</a></li> | ||
<li><a href="{path=members/delete}">Delete</a></li> | ||
<li><a href="{path=members/profile}">View Profile</a></li> | ||
<li><a href="{path=members/profile-edit}">Edit Profile</a></li> | ||
<li><a href="{path=members/invite}">Invite</a></li> | ||
</ul> | ||
{if:else} | ||
<p>Logged out</p> | ||
<ul> | ||
<li><a href="/members/login">Login ✔</a> | ||
<li><a href="{path=members/login}">Login ✔</a> | ||
<ul> | ||
<li><a href="/members/forgot-password">Forgot Password ✔</a></li> | ||
<li><a href="/members/forgot-username">Forgot Username ✔</a></li> | ||
<li><a href="/members/reset-password">Reset Password ✔</a></li> | ||
<li><a href="{path=members/forgot-password}">Forgot Password ✔</a></li> | ||
<li><a href="{path=members/forgot-username}">Forgot Username ✔</a></li> | ||
<li><a href="{path=members/reset-password}">Reset Password ✔</a></li> | ||
</ul> | ||
</li> | ||
<li><a href="/members/registration">Register ✔</a></li> | ||
<li><a href="/members/registration-custom">Register - Custom ✔</a></li> | ||
<li><a href="{path=members/registration}">Register ✔</a></li> | ||
<li><a href="{path=members/registration-custom}">Register - Custom ✔</a></li> | ||
</ul> | ||
{/if} | ||
|
||
<ul> | ||
<li><a href="/members/members">Members</a></li> | ||
<li><a href="/members/search">Search for Members</a></li> | ||
<li><a href="/members/results">Search Results</a></li> | ||
<li><a href="/members/role-groups">Role Groups</a></li> | ||
<li><a href="/members/roles">Roles</a></li> | ||
<li><a href="{path=members/members}">Members</a></li> | ||
<li><a href="{path=members/search}">Search for Members</a></li> | ||
<li><a href="{path=members/results}">Search Results</a></li> | ||
<li><a href="{path=members/role-groups}">Role Groups</a></li> | ||
<li><a href="{path=members/roles}">Roles</a></li> | ||
</ul> |