Skip to content

Commit b357c5c

Browse files
committed
Sample code
1 parent 356db5a commit b357c5c

19 files changed

+707
-280
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,21 @@ jobs:
3636
3737
# Step 4: Run Maven to execute Playwright tests
3838
- name: Run Playwright Tests
39-
run: mvn verify
39+
run: |
40+
mvn verify
41+
mvn allure:report
42+
43+
# Step 5: Upload the Allure results as an artifact for download
44+
- name: Upload Allure Results
45+
uses: actions/upload-artifact@v3
46+
with:
47+
name: allure-results
48+
path: target/allure-results
49+
50+
# Step 7: Publish Allure Report to GitHub Pages
51+
- name: Deploy Allure Report to GitHub Pages
52+
if: ${{ github.event_name == 'push' }}
53+
uses: peaceiris/actions-gh-pages@v3
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./target/site/allure-maven-plugin

pom.xml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<maven.compiler.source>17</maven.compiler.source>
1313
<maven.compiler.target>17</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<aspectj.version>1.9.21</aspectj.version>
1516
</properties>
1617

1718
<dependencies>
@@ -27,6 +28,41 @@
2728
<version>5.11.1</version>
2829
<scope>test</scope>
2930
</dependency>
31+
<dependency>
32+
<groupId>org.assertj</groupId>
33+
<artifactId>assertj-core</artifactId>
34+
<version>3.26.3</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>io.qameta.allure</groupId>
38+
<artifactId>allure-junit5</artifactId>
39+
<version>2.14.0</version>
40+
</dependency>
3041
</dependencies>
31-
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>io.qameta.allure</groupId>
46+
<artifactId>allure-maven</artifactId>
47+
<version>2.14.0</version>
48+
</plugin>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-surefire-plugin</artifactId>
52+
<version>3.2.3</version>
53+
<configuration>
54+
<argLine>
55+
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
56+
</argLine>
57+
</configuration>
58+
<dependencies>
59+
<dependency>
60+
<groupId>org.aspectj</groupId>
61+
<artifactId>aspectjweaver</artifactId>
62+
<version>${aspectj.version}</version>
63+
</dependency>
64+
</dependencies>
65+
</plugin>
66+
</plugins>
67+
</build>
3268
</project>

src/test/java/com/serenitydojo/playwright/ASimplePlaywrightTest.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/test/java/com/serenitydojo/playwright/AnAnnotatedPlaywrightTest.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/test/java/com/serenitydojo/playwright/PlaywrightLocatorsTest.java

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)