restructure project
Some checks failed
msbuild / build (push) Failing after 1m16s

This commit is contained in:
Greg Gauthier 2024-07-23 13:32:30 +01:00
parent 9c43b8afd8
commit ed7268ceb3
12 changed files with 16 additions and 15 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
### IDES ###
.idea/
*.iml
.vscode/
### PROJECT BUILD ###

View File

@ -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>

View File

@ -1,4 +1,4 @@
package org.example;
package com.gmgauthier;
import com.microsoft.playwright.*;

View File

@ -1,4 +1,4 @@
package org.example;
package com.gmgauthier;
import com.microsoft.playwright.*;
import java.nio.file.Paths;

View File

@ -1,4 +1,4 @@
package org.example.pages;
package com.gmgauthier.pages;
import com.microsoft.playwright.Page;

View File

@ -1,4 +1,4 @@
package org.example.pages;
package com.gmgauthier.pages;
import com.microsoft.playwright.Locator;
import com.microsoft.playwright.Page;

View File

@ -1,4 +1,4 @@
package org.example.apitests;
package com.gmgauthier.apitests;
import com.google.gson.Gson;
import com.google.gson.JsonArray;

View File

@ -1,4 +1,4 @@
package org.example.utils;
package com.gmgauthier.utils;
import com.microsoft.playwright.APIRequest;
import com.microsoft.playwright.APIRequestContext;

View File

@ -1,4 +1,4 @@
package org.example.utils;
package com.gmgauthier.utils;
import com.microsoft.playwright.Browser;
import com.microsoft.playwright.BrowserType;

View File

@ -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",

View File

@ -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 {