diff --git a/src/spec/Form.spec.ts b/src/spec/Form.spec.ts index 56528cd..b93e71c 100644 --- a/src/spec/Form.spec.ts +++ b/src/spec/Form.spec.ts @@ -5796,4 +5796,39 @@ describe("A Form", () => { expect(alert1.invisible).toBeFalsy(); expect(alert2.invisible).toBeTruthy(); }); + // it("Should not be able to view the Autoconsum tab since it's invisible due to tags and attrs", () => { + // const xml = ` + //
+ // `; + // const form = new Form({ + // autoconsum_id: { + // context: "", + // digits: [16, 2], + // domain: [], + // is_function: true, + // readonly: 1, + // relation: "giscedata.autoconsum", + // string: "Autoconsum", + // type: "many2one", + // views: {}, + // }, + // }); + // form.parse(xml, { + // values: { + // autoconsum_id: [1, "ES0318363477145938GEA000"], + // }, + // }); + // const pageAutoconsum = form.findById("page-autoconsum") as Page; + // expect(pageAutoconsum).toBeDefined(); + // expect(pageAutoconsum.invisible).toBeTruthy(); + // }); });