This commit is contained in:
parent
9c43b8afd8
commit
ed7268ceb3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
### IDES ###
|
||||
.idea/
|
||||
*.iml
|
||||
.vscode/
|
||||
|
||||
### PROJECT BUILD ###
|
||||
|
2
pom.xml
2
pom.xml
@ -164,7 +164,7 @@
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.0.0-M7</version>
|
||||
<configuration>
|
||||
<testSourceDirectory>src/test/java/org/example/webtests</testSourceDirectory>
|
||||
<testSourceDirectory>src/test/java/com/gmgauthier/webtests</testSourceDirectory>
|
||||
<includes>
|
||||
<include>**/*DemoRunner.java</include>
|
||||
</includes>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.example;
|
||||
package com.gmgauthier;
|
||||
|
||||
import com.microsoft.playwright.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.example;
|
||||
package com.gmgauthier;
|
||||
|
||||
import com.microsoft.playwright.*;
|
||||
import java.nio.file.Paths;
|
@ -1,4 +1,4 @@
|
||||
package org.example.pages;
|
||||
package com.gmgauthier.pages;
|
||||
|
||||
import com.microsoft.playwright.Page;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.example.pages;
|
||||
package com.gmgauthier.pages;
|
||||
|
||||
import com.microsoft.playwright.Locator;
|
||||
import com.microsoft.playwright.Page;
|
@ -1,4 +1,4 @@
|
||||
package org.example.apitests;
|
||||
package com.gmgauthier.apitests;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonArray;
|
@ -1,4 +1,4 @@
|
||||
package org.example.utils;
|
||||
package com.gmgauthier.utils;
|
||||
|
||||
import com.microsoft.playwright.APIRequest;
|
||||
import com.microsoft.playwright.APIRequestContext;
|
@ -1,4 +1,4 @@
|
||||
package org.example.utils;
|
||||
package com.gmgauthier.utils;
|
||||
|
||||
import com.microsoft.playwright.Browser;
|
||||
import com.microsoft.playwright.BrowserType;
|
@ -1,4 +1,4 @@
|
||||
package org.example.webtests.runner;
|
||||
package com.gmgauthier.webtests.runner;
|
||||
|
||||
import io.cucumber.junit.Cucumber;
|
||||
import io.cucumber.junit.CucumberOptions;
|
||||
@ -6,8 +6,8 @@ import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(Cucumber.class)
|
||||
@CucumberOptions(
|
||||
features = "src/test/java/org/example/webtests/features/",
|
||||
glue = {"org.example.webtests.steps"},
|
||||
features = "src/test/java/com/gmgauthier/webtests/features/",
|
||||
glue = {"com.gmgauthier.webtests.steps"},
|
||||
plugin = {
|
||||
"pretty",
|
||||
"html:target/test-reports/cucumber-report.html",
|
@ -1,14 +1,14 @@
|
||||
package org.example.webtests.steps;
|
||||
package com.gmgauthier.webtests.steps;
|
||||
|
||||
import com.gmgauthier.utils.TestContext;
|
||||
import com.microsoft.playwright.Page;
|
||||
import io.cucumber.java.Before;
|
||||
import io.cucumber.java.After;
|
||||
import io.cucumber.java.en.Given;
|
||||
import io.cucumber.java.en.Then;
|
||||
import io.cucumber.java.en.When;
|
||||
import org.example.pages.Home;
|
||||
import org.example.pages.Login;
|
||||
import org.example.utils.TestContext;
|
||||
import com.gmgauthier.pages.Home;
|
||||
import com.gmgauthier.pages.Login;
|
||||
import org.junit.Assert;
|
||||
|
||||
public class LoginSteps {
|
Loading…
Reference in New Issue
Block a user