public inbox for [email protected]  
help / color / mirror / Atom feed
From: Yosry Muhammad <[email protected]>
To: [email protected]
Cc: Aditya Toshniwal <[email protected]>
Cc: Dave Page <[email protected]>
Subject: [GSoC] Help with Jasmine Tests
Date: Sat, 29 Jun 2019 17:24:00 +0200
Message-ID: <CAFSMqn8BKZ6ThW1MhdgiR5RYLvngxKZGWWeSzAzbYPCqgMEGTw@mail.gmail.com> (raw)

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/


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: [GSoC] Help with Jasmine Tests
  In-Reply-To: <CAFSMqn8BKZ6ThW1MhdgiR5RYLvngxKZGWWeSzAzbYPCqgMEGTw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox