-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nahid' of github.com:nahidthenh/embedpress-playwright-a…
…utomation
- Loading branch information
Showing
18 changed files
with
215 additions
and
57 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
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
Empty file.
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,28 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
let slug = 'playwright-gutenberg/elementor-calendly'; | ||
|
||
|
||
test.describe("Gutenberg Calendly", () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(slug); | ||
}); | ||
|
||
test('Default Gutenberg Calendly', async ({ page }) => { | ||
|
||
let defaultLocator = page.locator('iframe[title="Select a Date \\& Time - Calendly"]') | ||
|
||
await expect(page.locator('h2')).toBeVisible(); | ||
|
||
await expect(defaultLocator.contentFrame().getByLabel('Cookie banner')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Md. Nahid Hasan')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByRole('heading', { name: 'Custom Event' })).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Web conferencing details')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Md. Nahid HasanCustom Event1')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByRole('link', { name: 'powered by Calendly' })).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().locator('div').filter({ hasText: /^Cookie settings$/ }).nth(1)).toBeVisible(); | ||
}); | ||
|
||
// More TestCases will added later as found error on this feature card link - https://projects.startise.com/fbs-73072 | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
let slug = 'playwright-elementor/elementor-google-photos'; | ||
|
||
|
||
test.describe("Google Photos", () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(slug); | ||
await page.waitForLoadState('networkidle'); | ||
}); | ||
|
||
test('Google Photos Carousel', async ({ page }) => { | ||
await expect(page.getByRole('heading', { name: 'Google Photos Carousel' })).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-f3716c7 iframe').contentFrame().getByTitle('Open in new window.').getByRole('img')).toBeVisible(); | ||
}); | ||
|
||
test('Pro - Google Photos Gallery Player', async ({ page }) => { | ||
await page.getByRole('heading', { name: 'Pro - Google Photos Gallery Player', exact: true }).click(); | ||
await expect(page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('.jx-imageset').first()).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('div:nth-child(3) > div > div:nth-child(2) > svg')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('div:nth-child(5) > div:nth-child(2) > div > div:nth-child(2) > svg')).toBeVisible(); | ||
await page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('div:nth-child(7) > .jx-svg-image > svg').click(); | ||
await page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('.jx-carousel-arrow > .jx-svg-image > svg').first().click(); | ||
await page.locator('#ep-elements-id-dba371e iframe').contentFrame().locator('div:nth-child(2) > svg').first().click(); | ||
}); | ||
|
||
test('Pro - Google Photos Gallery Player - Auto Play & Repeat On', async ({ page }) => { | ||
await expect(page.getByRole('heading', { name: 'Pro - Google Photos Gallery Player - Auto Play & Repeat On' })).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('.jx-imageset').first()).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('div:nth-child(8) > .jx-svg-image > svg')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('img:nth-child(2)').first()).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('div:nth-child(2) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('div:nth-child(3) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('div:nth-child(4) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-117fe6c iframe').contentFrame().locator('img:nth-child(2)').first()).toBeVisible(); | ||
}); | ||
|
||
test('Single Photo - With Color', async ({ page }) => { | ||
await expect(page.getByRole('heading', { | ||
name: 'Single Photo - With Color' | ||
})).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-f0593d4 iframe').contentFrame().locator('.jx-imageset')).toBeVisible(); | ||
await expect(page.locator('#ep-elements-id-f0593d4 iframe').contentFrame().getByRole('link', { name: 'New item by Md. Nahid Hasan' })).toBeVisible(); | ||
}); | ||
}); |
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
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
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,28 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
let slug = 'playwright-gutenberg/gutenberg-calendly'; | ||
|
||
|
||
test.describe("Gutenberg Calendly", () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(slug); | ||
}); | ||
|
||
test('Default Gutenberg Calendly', async ({ page }) => { | ||
|
||
let defaultLocator = page.locator('iframe[title="Select a Date \\& Time - Calendly"]') | ||
|
||
await expect(page.locator('h2')).toBeVisible(); | ||
|
||
await expect(defaultLocator.contentFrame().getByLabel('Cookie banner')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Md. Nahid Hasan')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByRole('heading', { name: 'Custom Event' })).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Web conferencing details')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByText('Md. Nahid HasanCustom Event1')).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().getByRole('link', { name: 'powered by Calendly' })).toBeVisible(); | ||
await expect(defaultLocator.contentFrame().locator('div').filter({ hasText: /^Cookie settings$/ }).nth(1)).toBeVisible(); | ||
}); | ||
|
||
// More TestCases will added later as found error on this feature card link - https://projects.startise.com/fbs-73072 | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
let slug = 'playwright-elementor/gutenberg-google-photos'; | ||
|
||
|
||
test.describe("Google Photos", () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(slug); | ||
await page.waitForLoadState('networkidle'); | ||
}); | ||
|
||
test('Google Photos Carousel', async ({ page }) => { | ||
await expect(page.getByText('Google Photos Carousel')).toBeVisible(); | ||
await expect(page.locator('iframe').first().contentFrame().locator('.jx-imageset').first()).toBeVisible(); | ||
}); | ||
|
||
test('Pro - Google Photos Gallery Player', async ({ page }) => { | ||
await expect(page.getByRole('heading', { name: 'Pro – Google Photos Gallery Player', exact: true })).toBeVisible(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('.jx-imageset').first()).toBeVisible(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('div:nth-child(8) > .jx-svg-image > svg')).toBeVisible(); | ||
await page.locator('iframe').nth(1).contentFrame().locator('div:nth-child(7) > .jx-svg-image > svg').click(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('div:nth-child(2) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('div:nth-child(7)')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('.jx-carousel-arrow > .jx-svg-image > svg').first()).toBeVisible(); | ||
await page.locator('iframe').nth(1).contentFrame().locator('.jx-carousel-arrow > .jx-svg-image > svg').first().click(); | ||
await expect(page.locator('iframe').nth(1).contentFrame().locator('.jx-imageset').first()).toBeVisible(); | ||
}); | ||
|
||
test('Pro - Google Photos Gallery Player - Auto Play & Repeat On', async ({ page }) => { | ||
await expect(page.getByRole('heading', { name: 'Pro – Google Photos Gallery Player – Auto Play & Repeat On' })).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('div:nth-child(4) > .jx-imageset')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('div:nth-child(2) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('div:nth-child(3) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('div:nth-child(4) > .jx-imageset > div > img:nth-child(2)')).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('img:nth-child(2)').first()).toBeVisible(); | ||
await expect(page.locator('iframe').nth(2).contentFrame().locator('div:nth-child(8) > .jx-svg-image > svg')).toBeVisible(); | ||
}); | ||
|
||
test('Single Photo - With Color', async ({ page }) => { | ||
await expect(page.getByRole('heading', { name: 'Single Photo – With Color' })).toBeVisible(); | ||
await page.locator('iframe').nth(3).contentFrame().getByRole('img').nth(1).click(); | ||
await expect(page.locator('iframe').nth(3).contentFrame().getByRole('link', { name: 'New item by Md. Nahid Hasan' })).toBeVisible(); | ||
await page.locator('iframe').nth(3).contentFrame().locator('div:nth-child(7)').click(); | ||
}); | ||
|
||
|
||
|
||
}); | ||
|
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.