Skip to content

Commit

Permalink
revert filter tests written in geospatial
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Dec 3, 2024
1 parent 89c4ad8 commit a73c2cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions e2e/tests/ui-driven/src/create-flow-with-geospatial.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ test.describe("Flow creation, publish and preview", () => {
await editor.createInternalPortal();
await editor.populateInternalPortal();
await page.getByRole("link", { name: "start" }).click(); // return to main flow
await editor.createFilter();
await editor.createUploadAndLabel();
// TODO: editor.createPropertyInfo()
await editor.createDrawBoundary();
Expand All @@ -61,7 +60,6 @@ test.describe("Flow creation, publish and preview", () => {
await expect(editor.nodeList).toContainText([
"Find property",
"an internal portalEdit Portal",
"Filter - Planning permissionImmuneMissing informationPermission neededPrior approvalNoticePermitted developmentNot developmentNo flag result",
"Upload and label",
"Confirm your location plan",
"Planning constraints",
Expand Down Expand Up @@ -110,7 +108,6 @@ test.describe("Flow creation, publish and preview", () => {
).toBeVisible();
await clickContinue({ page });

// TODO: answer filter?
// TODO: answer uploadAndLabel
// TODO: answerPropertyInfo, answerDrawBoundary, answerPlanningConstraints
});
Expand Down
5 changes: 3 additions & 2 deletions e2e/tests/ui-driven/src/pages/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,15 @@ export class PlaywrightEditor {
async createFilter() {
await createFilter(this.page, this.getNextNode());
// select the branch filter and add some content
const permissionNeededNode = this.page
const filteredBranch = this.page
.locator("li")
.filter({ hasText: /Material change of use$/ })
.getByRole("listitem")
.getByRole("link");

await createContent(
this.page,
permissionNeededNode,
filteredBranch,
`This is the ${selectedFlag} filter`,
);
}
Expand Down

0 comments on commit a73c2cd

Please sign in to comment.