Skip to content

Commit 2e9c437

Browse files
Replace plugin tests
1 parent bc3475f commit 2e9c437

File tree

2 files changed

+13
-41
lines changed

2 files changed

+13
-41
lines changed

test/integration/PluginIntegrationTest.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

test/integration/plugin.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { expect, test } from '@playwright/test';
2+
3+
test.describe('plugin', () => {
4+
test('should have title', async ({ page }) => {
5+
await page.goto('/wp-admin/plugins.php');
6+
await expect(page.locator('tr[data-slug=tiny-compress-images] td.plugin-title strong')).toHaveText('TinyPNG - JPEG, PNG & WebP image compression');
7+
});
8+
9+
test('includes settings link', async ({ page }) => {
10+
await page.goto('/wp-admin/plugins.php');
11+
await expect(page.locator('tr[data-slug=tiny-compress-images] span.settings a')).toHaveAttribute('href', 'options-general.php?page=tinify');
12+
});
13+
});

0 commit comments

Comments
 (0)