Skip to content

Commit

Permalink
E2E - Add some tags on CORS tests and flaky OpenLayers
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 31, 2025
1 parent 719d5b5 commit 6087256
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { test, expect } from '@playwright/test';

test.describe('Cors', function () {
test.describe('CORS',
{
tag: ['@localonly'],
}, () => {

test('send authorized request', async function ({ page }, testInfo) {
test.skip(process.env.CI, 'Not working on GH Action');
await page.goto('http://othersite.local:8130');
await page.locator('#launch-request').click();
await expect(page.locator('#status')).toHaveText('200');
Expand All @@ -13,6 +17,7 @@ test.describe('Cors', function () {


test('send unauthorized request', async function ({ page }, testInfo) {
test.skip(process.env.CI, 'Not working on GH Action');
await page.goto(
'http://othersite.local:8130');
await page.locator('#launch-request-bad').click();
Expand Down
4 changes: 3 additions & 1 deletion tests/end2end/playwright/custom-javascript-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ test.describe('Maps management', () => {

test.use({ storageState: 'playwright/.auth/admin.json' });

test('OpenLayers', async ({ page }) => {
test('OpenLayers', {
tag: '@flaky',
}, async ({ page }) => {
// Allow themes/javascript codes for tests repository
await page.goto('admin.php');
await page.getByRole('link', { name: 'Maps management' }).click();
Expand Down

0 comments on commit 6087256

Please sign in to comment.