Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h committed Feb 27, 2024
1 parent ed9b197 commit b4562cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playwright/ci-test/tests/02-download-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('download page', async ({ page }) => {
await expect(page.locator('#sidebar').getByRole('link', { name: 'Project Organisation' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Members and Donors' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Members Blogs' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Donate' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Funding' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Download' })).toBeVisible();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Resources', exact: true })).toBeVisible();
await expect(page.locator('#sidebar div').filter({ hasText: 'Resources' }).locator('span')).toBeVisible();
Expand Down
4 changes: 2 additions & 2 deletions playwright/ci-test/tests/04-community-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ test('community page', async ({ page }) => {
await expect(page.getByRole('link', { name: 'Infrastructure' })).toBeVisible();
await page.getByRole('link', { name: 'Infrastructure' }).click();
await expect(page.getByText('Infrastructure ¶ This page')).toBeVisible();
await expect(page.getByRole('link', { name: 'User Groups' })).toBeVisible();
await page.getByRole('link', { name: 'User Groups' }).click();
await expect(page.getByRole('link', { name: 'User groups 🇩🇪 🇫🇷 🇪🇸' })).toBeVisible();
await page.getByRole('link', { name: 'User groups 🇩🇪 🇫🇷 🇪🇸' }).click();
await expect(page.getByText('User Groups ¶ Current list of')).toBeVisible();
await expect(page.getByRole('link', { name: 'Grant Program' })).toBeVisible();
await page.getByRole('link', { name: 'Grant Program' }).click();
Expand Down
6 changes: 3 additions & 3 deletions playwright/ci-test/tests/05-donate-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ let url = '/';
test('donate page', async ({ page }) => {
await page.goto(url);
await page.locator('section').filter({ hasText: 'Free and open source Spatial' }).getByRole('link').click();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Donate' })).toBeVisible();
await page.locator('#sidebar').getByRole('link', { name: 'Donate' }).click();
await expect(page.locator('#sidebar').getByRole('link', { name: 'Funding' })).toBeVisible();
await page.locator('#sidebar').getByRole('link', { name: 'Funding' }).click();
await expect(page.getByText('Support us ¶ QGIS is')).toBeVisible();
await expect(page.getByText('QGIS is developed by a team')).toBeVisible();
await expect(page.getByText('We rely on sponsorships and')).toBeVisible();
Expand All @@ -24,4 +24,4 @@ test('donate page', async ({ page }) => {
await expect(page.getByText('Account name: QGIS.ORG')).toBeVisible();
await expect(page.getByText('Paypal ¶ You can use Paypal')).toBeVisible();
await expect(page.getByRole('button', { name: 'Donate' })).toBeVisible();
});
});

0 comments on commit b4562cb

Please sign in to comment.