Skip to content

Commit 1f11262

Browse files
committed
added practice software testing docker compose in github actions
1 parent eac6b43 commit 1f11262

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

.github/workflows/maven.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ jobs:
4646
distribution: 'adopt'
4747
cache: maven
4848

49+
- name: Checkout Practice Software Testing repo
50+
uses: actions/checkout@v4
51+
with:
52+
repository: testsmith-io/practice-software-testing/
53+
path: practice-repo
54+
55+
- name: Start Practice Software Testing with Docker Compose
56+
working-directory: practice-repo
57+
run: docker compose up -d
58+
4959
- name: Install Chrome
5060
uses: browser-actions/setup-chrome@latest
5161

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
target/
22
.idea/
3+
/screenshots/
34

45
### VS Code ###
56
.vscode/

UI/package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/test/java/io/github/mfaisalkhatri/test/BaseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public WebDriver getDriver () {
2121
@BeforeClass
2222
public void setup () {
2323
ChromeOptions chromeOptions = new ChromeOptions ();
24-
chromeOptions.addArguments ("--headless=new", "--no-sandbox", "--window-size=1920,1080");
24+
chromeOptions.addArguments ("--headless=new","--no-sandbox", "--window-size=1920,1080");
2525

2626
this.driver = new ChromeDriver (chromeOptions);
2727
this.driver.manage ()

src/test/java/io/github/mfaisalkhatri/test/JsonDataProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Iterator<RegistrationData> getValidRegistrationData () {
2323

2424
@Test (dataProvider = "getValidRegistrationData")
2525
public void testRegistrationPasswordAlert (final RegistrationData registrationData) {
26-
this.driver.get ("https://practicesoftwaretesting.com");
26+
this.driver.get ("https://practicesoftwaretesting.com/");
2727

2828
HomePage homePage = new HomePage (driver);
2929
LoginPage loginPage = homePage.navigateToLoginPage ();

0 commit comments

Comments
 (0)