<script id='alert-message-success' type='text/x-jquery-tmpl'>
<div class="alert-message fade in success" data-alert="alert">
- <a class="close" href="#">×</a>
+ <a class="close" href="#" id='alert-message-success-close-a'>×</a>
<p>${message}</p>
</div>
</script>
<script id='alert-message-error' type='text/x-jquery-tmpl'>
<div class="alert-message fade in error" data-alert="alert">
- <a class="close" href="#">×</a>
+ <a class="close" href="#" id='alert-message-error-close-a'>×</a>
<p>${message}</p>
</div>
</script>
<script id='alert-message-warning' type='text/x-jquery-tmpl'>
<div class="alert-message fade in warning" data-alert="alert">
- <a class="close" href="#">×</a>
+ <a class="close" href="#" id='alert-message-warning-close-a'>×</a>
<p>${message}</p>
</div>
</script>
# Guest Role
GUEST_USERNAME=guest_user
-GUEST_FULLNAME=Guest
+GUEST_FULLNAME=The Test Guest
# Registered User Role
REGISTERED_USERNAME=reg_user
REGISTERED_FULLNAME=Registered User
clickLinkWithLocator( "user-create-form-register-button", true );
- assertTextPresent( "user created:guest_user" );
-
- //assertUserRolesPage();
-
- //clickButtonWithName( "submitRolesButton", true );
+ assertTextPresent( "user created:"+userName );
if ( valid )
{
clickLinkWithLocator( "users-grid-delete-" + userName );
+ clickLinkWithLocator( "dialog-confirm-modal-ok" );
+
assertTextPresent( "user " + userName + " deleted" );
+ clickLinkWithLocator( "alert-message-success-close-a" );
+
assertTextNotPresent( userName );
assertTextNotPresent( fullName );
{
clickLinkWithText( "Logout" );
assertTextNotPresent( "Current User:" );
- assertLinkNotPresent( "Edit Details" );
- assertLinkNotPresent( "Logout" );
- assertLinkPresent( "Login" );
+ assertLinkNotVisible( "Edit Details" );
+ assertLinkNotVisible( "Logout" );
+ assertLinkVisible( "Login" );
}
}
\ No newline at end of file
Assert.assertFalse( isElementPresent( "link=" + text ), "The link('" + text + "' is present." );
}
+ public void assertLinkNotVisible( String text )
+ {
+ Assert.assertFalse( isElementVisible( "link=" + text ), "The link('" + text + "' is visible." );
+ }
+
+ public void assertLinkVisible( String text )
+ {
+ Assert.assertTrue( isElementVisible( "link=" + text ), "The link('" + text + "' is not visible." );
+ }
+
public void assertImgWithAlt( String alt )
{
assertElementPresent( "/¯img[@alt='" + alt + "']" );