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

waitForHavingText() gives a false positive on the text passed when using suite.extjs #152

Open
FloDanny opened this issue Nov 4, 2021 · 2 comments

Comments

@FloDanny
Copy link
Contributor

FloDanny commented Nov 4, 2021

The was open to https://www.google.com/
The method waitForHavingText() at the bottom of the suite gives a false positive from the actual text passed in the method:

import flagpole from "flagpole";

flagpole('waitforHavingText', async (suite) => {

   suite.scenario("false positive", "browser")
      .open("/")
      .next(async (context) => {
         context.assert(context.response.statusCode).equals(200);
      })
      .next('ABOUT window items is present', async (context) => {
         await context.waitForHavingText('.MV3Tnb', 'Abo');
      });
})

The Flagpole output is as follows:
Run Test Suites

============================ waitforHavingText ============================
» Base URL: https://www.google.com/
» Environment: qa
» Took 2116ms
✔ Passed (1 scenario)

false positive

✔ Loaded Browser https://www.google.com/
✔ HTTP Status Code equals 200
ABOUT window items is present
✔ EXISTS .MV3Tnb
» Took 1907ms

FloSports@FloSports-3 FlagpoleIssue %

@johnsickels
Copy link
Collaborator

You'll want to remove any company specific things, like app names and take out any extra setup that isn't relevant to the issue. A good micro repro example is "load google and waitForHavingText(foobar)"

@FloDanny
Copy link
Contributor Author

FloDanny commented Nov 5, 2021

Example updated to google.com This error happens with browser and extjs applications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants