This commit is contained in:
Lukáš Kaňka
2023-08-21 21:02:47 +02:00
parent dbd498f34e
commit 02d72d127d
21 changed files with 208 additions and 182 deletions

View File

@ -5,16 +5,11 @@
</component>
<component name="ChangeListManager">
<list default="true" id="e313fd9a-aaf7-4ddf-8596-2ccbfcf66da1" name="Changes" comment="">
<change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/readme.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/main/java/cz/lukan/App.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/test/java/cz/lukan/AppTest.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../Selenium_POM_tutorial/src/main/java/POM/pages/_03/HomePage.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../Selenium_POM_tutorial/src/main/java/POM/pages/_03/LoginPage.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../Selenium_POM_tutorial/src/test/java/tutorial/POM/tests/Test_03_Login_POM.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Selenium_POM_tutorial/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../Selenium_POM_tutorial/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../Selenium_POM_tutorial/readme.md" beforeDir="false" afterPath="$PROJECT_DIR$/../Selenium_POM_tutorial/readme.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../Selenite_Naveen/driver/geckodriver.exe" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../Selenite_Naveen/src/test/java/cz/lukan/LaunchBrowser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/test/java/cz/lukan/AppTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/cz/lukan/AppTest.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -27,9 +22,9 @@
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"associatedIndex": 0
}]]></component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 0
}</component>
<component name="ProjectId" id="2U7PFC389YXq1L1vFeL6SYyRrNb" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
@ -41,6 +36,7 @@
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "main",
"last_opened_file_path": "C:/Users/lukas/Nextcloud/GitHub/Java/Selenium_Selenide_Playwright_JAVA/PlaywrightTestAcademy",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
@ -48,6 +44,26 @@
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="RunManager">
<configuration name="AppTest" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="cz.lukan.AppTest" />
<module name="PlaywrightTestAcademy" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="cz.lukan.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<recent_temporary>
<list>
<item itemvalue="Application.AppTest" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
@ -57,6 +73,7 @@
<option name="presentableId" value="Default" />
<updated>1692287544970</updated>
<workItem from="1692287547085" duration="2032000" />
<workItem from="1692637254673" duration="321000" />
</task>
<servers />
</component>

View File

@ -1,38 +1,15 @@
package cz.lukan;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
import com.microsoft.playwright.*;
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
public class AppTest {
public static void main(String[] args) {
try (Playwright playwright = Playwright.create()) {
Browser browser = playwright.firefox().launch();
Page page = browser.newPage();
page.navigate("http://playwright.dev");
System.out.println(page.title() + " " + "Test is OK!");
}
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
}