From: | Yosry Muhammad <yosrym93(at)gmail(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Cc: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>, Dave Page <dpage(at)pgadmin(dot)org> |
Subject: | [GSoC] Help with Jasmine Tests |
Date: | 2019-06-29 15:24:00 |
Message-ID: | CAFSMqn8BKZ6ThW1MhdgiR5RYLvngxKZGWWeSzAzbYPCqgMEGTw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi all,
I am writing tests for my initial patch of my Google Summer of Code
project, which allows editing of SQL queries results (if they are
updatable).
I am trying to write a test for the sqleditor that checks that if _render()
function (in sqleditor.js) is called with w query results that include
primary keys, then the grid should be editable (I need to check grid
options, gridView.grid.getOptions() ).
I also want to check that if the user edits a cell in the grid, the Save
Data button (new button) is enabled. Is this feasible ?
Can anyone help me? I am new to front-end tests. In the sqleditor test I
have seen, a spy is created for the SqlEditor to see if specific functions
are called, but I want the actual _render() function to run (to call
render_grid() of the gridView). In other words, I need to test the code
inside_render() function.
Thanks a lot.
--
*Yosry Muhammad Yosry*
Computer Engineering student,
The Faculty of Engineering,
Cairo University (2021).
Class representative of CMP 2021.
https://www.linkedin.com/in/yosrym93/
From | Date | Subject | |
---|---|---|---|
Next Message | Khushboo Vashi | 2019-07-01 04:48:57 | Re: Feature request: Redshift Support |
Previous Message | Dave Page | 2019-06-28 16:45:44 | Re: [pgAdmin][RM4335] Add EXPLAIN option SETTINGS and SUMMARY |