Skip to content

Commit

Permalink
Merge pull request #501 from Xpirix/fix_gh_actions
Browse files Browse the repository at this point in the history
Fix failing gh actions workflow
  • Loading branch information
Xpirix authored Jan 9, 2025
2 parents bd47195 + 8e01956 commit fd393de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
'
- name: Start Django server
run: |
docker-compose exec -T devweb bash -c "python manage.py loaddata fixtures/*.json"
docker-compose exec -T devweb bash -c "nohup python manage.py runserver 0.0.0.0:8080 &"
docker compose exec -T devweb bash -c "python manage.py loaddata fixtures/*.json"
docker compose exec -T devweb bash -c "nohup python manage.py runserver 0.0.0.0:8081 &"
# Wait for the server to start
until curl -s http://localhost:62202; do
echo "Waiting for Django server to be up..."
Expand Down
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 fd393de

Please sign in to comment.