Skip to content

Commit

Permalink
El Spotify Issue Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nahidthenh committed Nov 25, 2024
1 parent f151433 commit f5d3926
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
16 changes: 8 additions & 8 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ module.exports = defineConfig({
use: { ...devices['Desktop Chrome'] },
},

{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },

{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },

/* Test against mobile viewports. */
// {
Expand Down
7 changes: 0 additions & 7 deletions tests/elementor/spotify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ test.describe('Elementor Spotify', () => {
await page.goto(slug);
});

test.afterEach(async ({ page }) => {
await page.close();
});

test('Spotify Single', async ({ page }) => {
const heading = page.getByRole('heading', { name: 'Spotify Single' });
await heading.scrollIntoViewIfNeeded();
Expand Down Expand Up @@ -41,7 +37,6 @@ test.describe('Elementor Spotify', () => {
await iframe.getByTestId('play-pause-button').click();
await page.waitForTimeout(3000);
await iframe.getByTestId('play-pause-button').click();
await iframe.getByLabel('Close').click();
});

test('Spotify Album', async ({ page }) => {
Expand All @@ -61,7 +56,6 @@ test.describe('Elementor Spotify', () => {
await iframe.getByTestId('play-pause-button').click();
await page.waitForTimeout(3000);
await iframe.getByTestId('play-pause-button').click();
await iframe.getByLabel('Close').click();
});

test('Spotify Playlist', async ({ page }) => {
Expand All @@ -80,6 +74,5 @@ test.describe('Elementor Spotify', () => {
await iframe.getByTestId('play-pause-button').click();
await page.waitForTimeout(3000);
await iframe.getByTestId('play-pause-button').click();
await iframe.getByLabel('Close').click();
});
});

0 comments on commit f5d3926

Please sign in to comment.