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 1hhxQU-0000BM-9O for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Jul 2019 14:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hhxQS-0007qA-AK for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Jul 2019 14:37:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhxQS-0007q3-0A for pgadmin-hackers@lists.postgresql.org; Mon, 01 Jul 2019 14:37:00 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hhxQP-0007Py-9L for pgadmin-hackers@postgresql.org; Mon, 01 Jul 2019 14:36:59 +0000 Received: by mail-qt1-x833.google.com with SMTP id p15so14884794qtl.3 for ; Mon, 01 Jul 2019 07:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RIGEDv2Txenm2GRAFwA1MxSN88fzdVzGx9sCIbnv1m0=; b=O+5EJ5fLLItaBnWSRVD1dgD6c3IPRzS4XaJ0MlgEDHvgBZYvaRGKM9/IrKsRm4Bi6X x2pRUrNcsKyBqjP6wn8rfRW2axfaWisKdIKdGVOT55LZ0fit/IMx9VOJCpQn35CqisFk C36ZhMoMpIdh8XiNYi+KZvsa+2BJ1M/L1ypKs35F5UamvVyTHVPPmY4TcBFN2Xwo5uCZ pfy5mZM7vjJZttsfERJOUSTFD8ERPG6Pl/GZhWzn6aWAysEr9Iox/n9tESbpcqKTArHo jXft+3UPCb18UJAINkxSLMM0kd5U2H+TlmFYbBO3XQmW5qOvvdH9tfPlUZVBdIgCxAFH 9fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RIGEDv2Txenm2GRAFwA1MxSN88fzdVzGx9sCIbnv1m0=; b=AvvVMrPnHaHD/SrcSrLPKXjIzTX1DSJm2bBobl9PAeEUdU1lhXL6JJE857XULPTOF/ 8qqleSgoIgnA3p+emLG95Fo2ib0Vus/ZWXs+i40D7/vsCJotK5IaKEEENOnhH9kFM/EO BGBVxwfeZVTrT4Dw6Vv+lqweuB5oi7hD0L5kMtRFGGnJ57IUJ8/lZpqylJkWpdz01Nsq FLGm4TopHy62Sk3oV43v3Y8hvyB5zZfeCr1OlHvrz8CpWsrnuKNdokp9bp30KFcvbhmP +5J27NWpK4lznUhpe3WNmYCMGmFp+xASpwxDuu6ulPy1wgiVgBv5dLDSdjtisQHF9XFP 4Pow== X-Gm-Message-State: APjAAAUFO9+rivuubG5jJfExlWul+TsnzPZjfpifV6OXE+fDDUX9Km2i n001W6babpVqk4i6J+Vd90UfIAHcGJfFlfFlE5A= X-Google-Smtp-Source: APXvYqxL+1cTGjzRY/zUmowgt29pwi5PhhVknOB9uWUWXKI8wCjO1RTrObDa70xafhv938Xwhod74xV4AC7AkixbBpA= X-Received: by 2002:a0c:baa8:: with SMTP id x40mr22258233qvf.168.1561991815049; Mon, 01 Jul 2019 07:36:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yosry Muhammad Date: Mon, 1 Jul 2019 16:36:43 +0200 Message-ID: Subject: Re: [GSoC] Help with Jasmine Tests To: Aditya Toshniwal , pgadmin-hackers@postgresql.org, Dave Page Content-Type: multipart/alternative; boundary="000000000000473431058c9f8fdb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000473431058c9f8fdb Content-Type: text/plain; charset="UTF-8" On Mon, Jul 1, 2019 at 8:57 AM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > > 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 ? >> > This is similar to what is done in - > web/regression/javascript/sqleditor/execute_query_spec.js for btn-flash. > The problem is not with checking the button. How do I mimic the user editing the grid? I cannot create a grid with all its options in the test. -- *Yosry Muhammad Yosry* Computer Engineering student, The Faculty of Engineering, Cairo University (2021). Class representative of CMP 2021. https://www.linkedin.com/in/yosrym93/ --000000000000473431058c9f8fdb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Jul 1, 2019 at 8:57 AM Aditya= Toshniwal <aditya.= toshniwal@enterprisedb.com> wrote:

<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
I am= trying to write a test for the sqleditor that checks that if _render() fun= ction (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, grid= View.grid.getOptions() ).

I also want to check th= at if the user edits a cell in the grid, the Save Data button (new button) = is enabled. Is this feasible ?
This is similar to what is done in - web/regress= ion/javascript/sqleditor/execute_query_spec.js =C2=A0for btn-flash.<= /div>

The problem is not with c= hecking the button. How do I mimic the user editing the grid? I cannot crea= te a grid with all its options in the test.

--
Yosry Muhammad Yosry

Computer Engi= neering student,
The Faculty of Engine= ering,
Cairo University (2021).
Class representative of CMP 2021.
https://www.linkedin.com/in/yosrym93/
--000000000000473431058c9f8fdb--