diff --git a/e2e/base/pomFixture.ts b/e2e/base/pomFixture.ts deleted file mode 100644 index e0658f8a0b..0000000000 --- a/e2e/base/pomFixture.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { test as baseTest } from "@playwright/test" - -type pages = { - registerPage: RegisterPage , - -} -baseTest.extend() \ No newline at end of file diff --git a/e2e/draganddrop.test.ts b/e2e/draganddrop.test.ts deleted file mode 100644 index 695008d062..0000000000 --- a/e2e/draganddrop.test.ts +++ /dev/null @@ -1,30 +0,0 @@ -import{ expect, test }from '@playwright/test' - -test.describe('Drag and Drop', () => { - test('[3003]Verify the darg and drop', async ({page}) => { - - await page.goto('https://commitquality.com/practice') - const sd = page.locator("[data-testid='practice-drag-drop']") - await sd.scrollIntoViewIfNeeded() - await sd.click() - await page.locator("#small-box").dragTo(page.locator(".large-box ")) - await expect(page.locator("//div[text()='Success!']")).toBeVisible() - - let r = (Math.random() + 1).toString(36).substring(7) - console.log("random", r); - let randomString = "e2e/0" + r + ".png" - await page.screenshot({path: randomString}) - }); - test('[2210] Verify the drage and drop by using mouse hour', async ({page}) => { - await page.goto('https://commitquality.com/practice') - const sd = page.locator("[data-testid='practice-drag-drop']") - await sd.scrollIntoViewIfNeeded() - await sd.click() - await page.locator("#small-box").hover() - await page.mouse.down() - await page.locator(".large-box ").hover() - await page.mouse.up() - await expect(page.locator("//div[text()='Success!']")).toBeVisible() - // await page.waitForTimeout(5000); - }); -}) \ No newline at end of file diff --git a/e2e/example-.png b/e2e/example-.png deleted file mode 100644 index 8efc42428d..0000000000 Binary files a/e2e/example-.png and /dev/null differ diff --git a/e2e/example.spec.ts b/e2e/example.spec.ts deleted file mode 100644 index 54a906a4e8..0000000000 --- a/e2e/example.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { test, expect } from '@playwright/test'; - -test('has title', async ({ page }) => { - await page.goto('https://playwright.dev/'); - - // Expect a title "to contain" a substring. - await expect(page).toHaveTitle(/Playwright/); -}); - -test('get started link', async ({ page }) => { - await page.goto('https://playwright.dev/'); - - // Click the get started link. - await page.getByRole('link', { name: 'Get started' }).click(); - - // Expects page to have a heading with the name of Installation. - await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); -}); diff --git a/e2e/fixture/fixture.test.ts b/e2e/fixture/fixture.test.ts deleted file mode 100644 index 6a8d2d2af2..0000000000 --- a/e2e/fixture/fixture.test.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { test } from "./myFixture" - -test("Fixture demo", async ({ age, page, email }) => { - console.log(age, email) - -}) \ No newline at end of file diff --git a/e2e/fixture/myFixture.ts b/e2e/fixture/myFixture.ts deleted file mode 100644 index cfad648f83..0000000000 --- a/e2e/fixture/myFixture.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { test as myTest } from '@playwright/test' - -type sagar = { - age: number, - email: string -} -const myFixtureTest = myTest.extend({ - age: 27, - email: 'sagardurgade@gmail.com' -}) - -export const test = myFixtureTest; \ No newline at end of file diff --git a/e2e/launchChrome.test.ts b/e2e/launchChrome.test.ts deleted file mode 100644 index 7cabdf0257..0000000000 --- a/e2e/launchChrome.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Browser, chromium, test } from '@playwright/test' -test('Launch chrome', async() => { - const browser = await chromium.launch({ headless: false }) - const context = await browser.newContext() - const page = await context.newPage() - await page.goto('https://www.google.com/') - await page.screenshot({ path: './e2e/example-.png' }) -}) - - - -test('titel', async () => { - const browser = await chromium.launch({}) - const page = await browser.newPage() - await page.goto('https://www.google.com/') - -}) \ No newline at end of file diff --git a/e2e/playwrightAction.test.ts b/e2e/playwrightAction.test.ts deleted file mode 100644 index 8bdea96e44..0000000000 --- a/e2e/playwrightAction.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { test, } from '@playwright/test' -test.describe('Playwright action ', () => { - test('Right click Test Case', async ({page}) => { - await page.goto('https://www.tutorialspoint.com/') - - // await page.locator("//a[text()='Login']").click( { button: "right" }) - // await page.getByRole('button', { name: 'Login' }).click( { button: "right" }) - // await page.locator().click( option: 'right') - await page.waitForTimeout(5000) - }) -}) \ No newline at end of file