-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests - Add move point tests about editing value relation
- Loading branch information
1 parent
18d1fd9
commit 9626b4f
Showing
2 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// @ts-check | ||
import { test, expect } from '@playwright/test'; | ||
import {ProjectPage} from "./pages/project"; | ||
|
||
test.describe('Value relation widget', | ||
{ | ||
tag: ['@readonly'], | ||
},() => { | ||
|
||
test('Move geom and update select with a QGIS expression', async ({ page }) => { | ||
const project = new ProjectPage(page, 'form_edition_value_relation_field'); | ||
await project.open(); | ||
await project.openEditingFormWithLayer('point'); | ||
|
||
const select = await page.locator("#jforms_view_edition_code_with_geom_exp"); | ||
|
||
await project.clickOnMapLegacy(650, 200); | ||
|
||
await select.selectOption({value: ''}); | ||
|
||
await project.mapOl2.dragTo(project.mapOl2, { | ||
sourcePosition: { x: 650, y: 200 }, | ||
targetPosition: { x: 500, y: 200 }, | ||
}); | ||
|
||
await select.selectOption({value: 'A2'}); | ||
|
||
await project.mapOl2.dragTo(project.mapOl2, { | ||
sourcePosition: { x: 500, y: 200 }, | ||
targetPosition: { x: 350, y: 200 }, | ||
}); | ||
|
||
await select.selectOption({value: 'A1'}); | ||
|
||
await project.mapOl2.dragTo(project.mapOl2, { | ||
sourcePosition: { x: 350, y: 200 }, | ||
targetPosition: { x: 350, y: 500 }, | ||
}); | ||
|
||
await select.selectOption({value: 'B1'}); | ||
|
||
await project.mapOl2.dragTo(project.mapOl2, { | ||
sourcePosition: { x: 350, y: 500 }, | ||
targetPosition: { x: 500, y: 500 }, | ||
}); | ||
|
||
await select.selectOption({value: 'B2'}); | ||
|
||
await project.mapOl2.dragTo(project.mapOl2, { | ||
sourcePosition: { x: 500, y: 500 }, | ||
targetPosition: { x: 650, y: 200 }, | ||
}); | ||
|
||
await select.selectOption({value: ''}); | ||
|
||
}) | ||
}) |
30 changes: 0 additions & 30 deletions
30
tests/qgis-projects/tests/form_edition_value_relation_field.md
This file was deleted.
Oops, something went wrong.