Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhFDT-0004TU-Iq for pgadmin-hackers@arkaria.postgresql.org; Sat, 29 Jun 2019 15:24:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hhFDQ-0004Ll-TA for pgadmin-hackers@arkaria.postgresql.org; Sat, 29 Jun 2019 15:24:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhFDP-0004BG-SX for pgadmin-hackers@lists.postgresql.org; Sat, 29 Jun 2019 15:24:36 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhFDL-0006tS-Vc for pgadmin-hackers@postgresql.org; Sat, 29 Jun 2019 15:24:34 +0000 Received: by mail-qt1-x82c.google.com with SMTP id x47so9763362qtk.11 for ; Sat, 29 Jun 2019 08:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=fagzE/nlWAqXn1dVLvREf2XDrHotrCman8D4gBqqhtg=; b=iS/Ezr2ZD3fvlT9bJRIQuhJTnzqbW0mzhXhg2uNMVB7M7LRdtmgPiDEI3YmcwPePFB okjp7UaiXPLGFUX/qySa8Kp99/3idQJT5HIrlu+qzTlBYiBciWL5nvgX+lg3R5c61uk7 kqWtXXTNL+/PSyMBN6ngXrS4pkQEusVeMA++ZphzymR8nJHWLXqgLucS77NenT0JlvoO 2yoDE+UyUindpIGNyAG+8srqlKAwDD5wbV9d6lMP83ISbmSMFYxwUrpG9UUyk49weEgw bjIZMRVhqAZG3Tscm5ttTHRMLr/7Zqq22upYJ5vsIgxTM4l8AsdpJsU6F+2HfcR5Aoa+ 98tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=fagzE/nlWAqXn1dVLvREf2XDrHotrCman8D4gBqqhtg=; b=Vtpsm0LyYHlPJ943TU7eWXSQ8L+PhLR1sPSYastoOSpw2i7m8nzHR6f3AkseqLA+O+ rRi93e1TBTth7UGuw4J7qrOW373h8rOl5Qk0pwE2boMVeUN+44aPss82jwljedf3Ur7U 5STWM2hNgRBfuBDvGuJ7loeEtHIbCsI/UsbQsgdnfeR5dhdRMT+SuoezLl7HDzL9OHOH 92vlkgKa5ut59fF9h6j+3Wm21SsXW3Uz5qjO+3ibHZnMwuatQSlcw5rFefiCt+b6JwPR PjhYl+ap+3/jbxOsHjLKFJnE+doeH6luEIOCjfRC9RHtrg/kls/xZNuA1eBoI9PtKezn wTTQ== X-Gm-Message-State: APjAAAXvikZaw7WPwwbIl2+32nKqW5AoEfbOheJiopahT4oPfn4jHff/ TNtLDoOdGw20JKUO669IvET5kGysQW8fYdzNm06j5w== X-Google-Smtp-Source: APXvYqwDy2k73MNeyCr8u+lnyta/2EA4zB1OklysXe0RtWQuSY2h6d+agPYZnHHeqdbFdW9+dO5uJzu7rNQo0xYmBQQ= X-Received: by 2002:ac8:244f:: with SMTP id d15mr12391797qtd.32.1561821870445; Sat, 29 Jun 2019 08:24:30 -0700 (PDT) MIME-Version: 1.0 From: Yosry Muhammad Date: Sat, 29 Jun 2019 17:24:00 +0200 Message-ID: Subject: [GSoC] Help with Jasmine Tests To: pgadmin-hackers@postgresql.org Cc: Aditya Toshniwal , Dave Page Content-Type: multipart/alternative; boundary="000000000000ca5a22058c77fd3e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000ca5a22058c77fd3e Content-Type: text/plain; charset="UTF-8" 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/ --000000000000ca5a22058c77fd3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I am writing tests f= or my initial patch of my Google Summer of Code project, which allows editi= ng 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 pr= imary keys, then the grid should be editable (I need to check grid options,= gridView.grid.getOptions() ).

I also want to che= ck that if the user edits a cell in the grid, the Save Data button (new but= ton) 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 t= he gridView). In other words, I need to test the code inside_render() funct= ion.

Thanks a lot.

--
Yosry Muhammad Yosry<= /i>

Computer Engineering student,
The Faculty of Engineering,
Cairo University (2021).
Class repres= entative of CMP 2021.
--000000000000ca5a22058c77fd3e--