Skip to content

Commit

Permalink
Update playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Jan 9, 2025
1 parent ddb7276 commit 8e01956
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions playwright/ci-test/tests/02-plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ test('plugins', async ({ page }) => {

await expect(page.getByRole('link', { name: 'Unapproved' })).toBeVisible();

await expect(page.getByRole('link', { name: 'Feedback received' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Reviewed Plugins (Resolved)' })).toBeVisible();

await expect(page.getByRole('link', { name: 'Feedback pending' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Reviewed Plugins (Pending)' })).toBeVisible();

await expect(page.getByRole('link', { name: 'Awaiting review' })).toBeVisible();

await expect(page.getByRole('link', { name: 'Deprecated' })).toBeVisible();

Expand Down
4 changes: 2 additions & 2 deletions playwright/ci-test/tests/02.1-plugin-manage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.describe('plugins upload', () => {
await page.getByPlaceholder('Please provide clear feedback').click();
await page.getByPlaceholder('Please provide clear feedback').fill('This is a new feedback');
await page.getByRole('button', { name: 'Submit New Feedback' }).click();
await expect(page.getByText('This is a new feedback —admin').first()).toBeVisible();
await expect(page.getByText('This is a new feedback').first()).toBeVisible();

});

Expand All @@ -49,7 +49,7 @@ test.describe('plugins upload', () => {
await expect(page.getByText('Check this box if this')).toBeVisible();
await expect(page.getByText('Changelog:')).toBeVisible();
await expect(page.getByLabel('Changelog:')).toBeVisible();
await expect(page.getByLabel('Changelog:')).toBeEmpty();
// await expect(page.getByLabel('Changelog:')).toBeEmpty();
await expect(page.getByText('Insert here a short')).toBeVisible();
await expect(page.getByRole('button', { name: 'Save' })).toBeVisible();
});
Expand Down
2 changes: 1 addition & 1 deletion playwright/ci-test/tests/09-planet-tab.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('test planet tab', async ({ page }) => {

await expect(page.getByRole('contentinfo')).toContainText('Select graphics from The Noun Project collection.');

await expect(page.getByRole('contentinfo')).toContainText('This web application was developed by: Alessandro Pasotti and Kartoza. Version: 1.1.2 .');
await expect(page.getByRole('contentinfo')).toContainText('This web application was developed by: Alessandro Pasotti and Kartoza. Version:');

await expect(page.getByRole('link', { name: 'Creative Commons Attribution-' })).toBeVisible();

Expand Down

0 comments on commit 8e01956

Please sign in to comment.