-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github actions, playwriht version update * fix on working directory in github actions * fix * video off * Monkey Tests introduces * fix on Allure story
- Loading branch information
1 parent
61c58f2
commit 52dfe30
Showing
9 changed files
with
476 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Test execution | ||
|
||
on: | ||
push: | ||
paths: | ||
- mrchecker-playwright-framework/** | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/playwright/java:v1.44.0-jammy | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK and Maven | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '21' | ||
distribution: 'zulu' | ||
maven-version: '3.8.1' | ||
|
||
- name: Install git | ||
run: apt-get -y update && apt-get install -y git-lfs | ||
|
||
- name: Install tests | ||
run: mvn install -DskipTests --no-transfer-progress | ||
working-directory: ./mrchecker-playwright-framework | ||
|
||
- name: Run tests | ||
run: mvn test -Dheadless=true | ||
working-directory: ./mrchecker-playwright-framework | ||
|
||
- name: Generate Allure report | ||
run: mvn allure:report | ||
working-directory: ./mrchecker-playwright-framework | ||
|
||
- name: Publish test report | ||
uses: peaceiris/actions-gh-pages@v4 | ||
if: always() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: allure-report | ||
publish_dir: ./mrchecker-playwright-framework/target/allure-report |
39 changes: 39 additions & 0 deletions
39
mrchecker-playwright-framework-empty/playwrightRecoding.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
page.navigate("https://demoqa.com/login"); | ||
page.locator("span").filter(new Locator.FilterOptions().setHasText("Forms")).locator("div").first().click(); | ||
page.getByRole(AriaRole.LISTITEM).click(); | ||
page.getByPlaceholder("First Name").click(); | ||
page.getByPlaceholder("First Name").fill("Name"); | ||
page.getByPlaceholder("Last Name").click(); | ||
page.getByPlaceholder("Last Name").fill("LastName"); | ||
page.getByPlaceholder("name@example.com").click(); | ||
page.getByPlaceholder("name@example.com").fill("my@google.pl"); | ||
page.getByText("Male", new Page.GetByTextOptions().setExact(true)).click(); | ||
page.getByText("Female").click(); | ||
page.getByText("Other").click(); | ||
page.getByPlaceholder("Mobile Number").click(); | ||
page.getByPlaceholder("Mobile Number").fill("1234567"); | ||
page.locator("#dateOfBirthInput").click(); | ||
page.getByLabel("Choose Sunday, April 14th,").click(); | ||
page.locator(".subjects-auto-complete__value-container").click(); | ||
page.locator("#subjectsInput").fill("Math"); | ||
page.locator("div").filter(new Locator.FilterOptions().setHasText(Pattern.compile("^Math$"))).nth(1).click(); | ||
page.locator(".subjects-auto-complete__value-container").click(); | ||
page.locator("#subjectsInput").fill("a"); | ||
Page page1 = page.waitForPopup(() -> { | ||
page.frameLocator("iframe[name=\"google_ads_iframe_\\/21849154601\\,22343295815\\/Ad\\.Plus-Anchor_0\"]").locator("html").click(); | ||
}); | ||
page.locator(".subjects-auto-complete__value-container").click(); | ||
page.locator("#subjectsInput").fill("a"); | ||
page.getByText("Maths", new Page.GetByTextOptions().setExact(true)).click(); | ||
page.getByText("Sports").click(); | ||
page.getByText("Reading").click(); | ||
page.getByText("Music").click(); | ||
page.getByPlaceholder("Current Address").click(); | ||
page.getByPlaceholder("Current Address").fill("ala ma kota"); | ||
page.locator("#state svg").click(); | ||
page.getByText("Uttar Pradesh", new Page.GetByTextOptions().setExact(true)).click(); | ||
page.locator("#city svg").click(); | ||
page.getByText("Agra", new Page.GetByTextOptions().setExact(true)).click(); | ||
page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Submit")).click(); | ||
page.getByPlaceholder("Mobile Number").click(); | ||
page.getByPlaceholder("Mobile Number").fill("1234567890"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.