Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E - Add some tags on CORS tests and flaky OpenLayers #5306

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading