Results 1 to 3 of 3

Thread: ST API - Panel is not defined

  1. #1
    Sencha User bressi's Avatar
    Join Date
    Jan 2016
    Posts
    20

    Default Answered: ST API - Panel is not defined

    Hi all,

    I am trying to write some tests using ST, covering for now a login module of my application.

    As the first scenario I am trying to perform a simple validation with no text-field been edited from the user.

    But I am stucked with an issue about the click of a button and I don't know why I get the following

    sencha-test-results.PNG

    Code:
    ST.button('#loginButton').
                click().
                and( function(){
                    ST.element('#username).hasCls('x-form-trigger-wrap-invalid');
                    ST.element('#pwd).hasCls('x-form-trigger-wrap-invalid');
                });

    I don't understand which panel is ST referring to since in the code there is
    no reference to any panel in my application.


    [Please be patient with me cause I am relatively new with ST API.]


    Thanks in advance for any hint.

  2. Hi bressi,
    St can't find variable panel - so be sure that you don't use it in your code.

    I looked on your code and I didn't notice any mistake or something - can you upload whole code?

  3. #2
    Sencha User vojtech.cerveny's Avatar
    Join Date
    Jun 2015
    Location
    Ostrava, Czech republic
    Posts
    52
    Answers
    10

    Default

    Hi bressi,
    St can't find variable panel - so be sure that you don't use it in your code.

    I looked on your code and I didn't notice any mistake or something - can you upload whole code?

  4. #3
    Sencha User bressi's Avatar
    Join Date
    Jan 2016
    Posts
    20

    Default

    Hi vojtech,

    I did checked my code with the inspector/debugger and found
    a 'panel' reference in my application code, which was indeed giving the issue at run-time only

    So .. issue resolved.

    Thanks


Similar Threads

  1. Ext.Tab.Panel and custom defined panel problem
    By simcamil in forum Ext: Discussion
    Replies: 1
    Last Post: 14 Oct 2015, 5:22 AM
  2. Dynamic Data adding to defined panel
    By arleslie in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 17 Jun 2013, 8:53 PM
  3. Ext.form.Panel doesn't allow to defined a api object
    By Dumas in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 4 Mar 2012, 11:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •