Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visible elements are "not visible" for Cypress #29093

Open
ktarmyshov opened this issue Mar 8, 2024 · 3 comments
Open

Visible elements are "not visible" for Cypress #29093

ktarmyshov opened this issue Mar 8, 2024 · 3 comments
Labels
pkg/driver This is due to an issue in the packages/driver directory Reproducible Can be reproduced type: bug

Comments

@ktarmyshov
Copy link

ktarmyshov commented Mar 8, 2024

Current behavior

This is the followup for #21288

Current behavior: the visible elements are not visible and not clickable.

Desired behavior

Cypress should find these elements and click

Test code to reproduce

  it('Skeleton Fail', () => {
    cy.viewport('macbook-16');
    cy.visit('https://www.skeleton.dev/docs/get-started');
    cy.get('#sidebar-left >> section').click();
    // cy.get('#sidebar-left >> section >> button').click();
  });

Cypress Version

13.7.6

Node version

v18.19.1

Operating System

Sonoma 14.4

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

Yah, it doesn't seem like it should error in this case to me.
Screenshot 2024-03-11 at 12 45 23 PM

@jennifer-shehane jennifer-shehane added type: bug Reproducible Can be reproduced pkg/driver This is due to an issue in the packages/driver directory good first issue Good for newcomers labels Mar 11, 2024
@ktarmyshov
Copy link
Author

ktarmyshov commented Mar 11, 2024

Hi, Jennifer, thanks for following up. Some updates from my side.
It seems all elements within the skeleton menu are "invisible".

I have some buttons there in the submenu part. Was able to "click" with the following:

cy.visit(APP_PATHS.home).wait(testConfig.waitAfterVisit); // wait time 300ms to 1s - not clear when works out, 1 sec works usually
cy.getByDataTestId('button-create').invoke('show') // hover element, forcing to show
        .click({ force: true }); // force must be - otherwise cy says invisible

@senpl
Copy link
Contributor

senpl commented Mar 25, 2024

In current site version repro selector is
cy.get('#sidebar-left > div > section').click();

senpl added a commit to senpl/cypress that referenced this issue Mar 29, 2024
senpl added a commit to senpl/cypress that referenced this issue Mar 29, 2024
senpl added a commit to senpl/cypress that referenced this issue Mar 29, 2024
senpl added a commit to senpl/cypress that referenced this issue Mar 29, 2024
senpl added a commit to senpl/cypress that referenced this issue Mar 29, 2024
senpl added a commit to senpl/cypress that referenced this issue Apr 2, 2024
senpl added a commit to senpl/cypress that referenced this issue Apr 14, 2024
senpl added a commit to senpl/cypress that referenced this issue Apr 17, 2024
senpl added a commit to senpl/cypress that referenced this issue Apr 19, 2024
not using jquery for this check
senpl added a commit to senpl/cypress that referenced this issue Apr 19, 2024
another potential speed improvement
senpl added a commit to senpl/cypress that referenced this issue Apr 20, 2024
senpl added a commit to senpl/cypress that referenced this issue May 7, 2024
senpl added a commit to senpl/cypress that referenced this issue May 8, 2024
mocha added to launchpad package
senpl added a commit to senpl/cypress that referenced this issue May 9, 2024
senpl added a commit to senpl/cypress that referenced this issue May 9, 2024
senpl added a commit to senpl/cypress that referenced this issue May 13, 2024
senpl added a commit to senpl/cypress that referenced this issue May 13, 2024
senpl added a commit to senpl/cypress that referenced this issue May 13, 2024
senpl added a commit to senpl/cypress that referenced this issue May 13, 2024
senpl added a commit to senpl/cypress that referenced this issue May 22, 2024
senpl added a commit to senpl/cypress that referenced this issue Jun 4, 2024
@jennifer-shehane jennifer-shehane removed the good first issue Good for newcomers label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/driver This is due to an issue in the packages/driver directory Reproducible Can be reproduced type: bug
Projects
None yet
Development

No branches or pull requests

3 participants