Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 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
37 changes: 37 additions & 0 deletions
37
...dingertest/src/test/java/com/evolveum/midpoint/testing/schrodinger/page/HomePageTest.java
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,37 @@ | ||
/* | ||
* Copyright (c) 2010-2020 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.testing.schrodinger.page; | ||
|
||
import com.evolveum.midpoint.schrodinger.component.common.FeedbackBox; | ||
import com.evolveum.midpoint.schrodinger.page.login.FormLoginPage; | ||
import com.evolveum.midpoint.testing.schrodinger.AbstractSchrodingerTest; | ||
|
||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
import static com.codeborne.selenide.Selenide.open; | ||
|
||
/** | ||
* @author skublik | ||
*/ | ||
|
||
public class HomePageTest extends AbstractSchrodingerTest { | ||
|
||
@Test | ||
public void test001OpenPageWithSlashOnEndOfUrl() { | ||
open("/self/dashboard/"); | ||
//when request will be redirect to error page, then couldn't click on home menu button | ||
basicPage.home(); | ||
} | ||
|
||
@Test | ||
public void test002OpenPageWithoutSlashOnEndOfUrl() { | ||
open("/self/dashboard"); | ||
//when request will be redirect to error page, then couldn't click on home menu button | ||
basicPage.home(); | ||
} | ||
} |
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