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
Add UI test for JavaScript tracking. #15567
Conversation
|
||
parent::performSetUp($setupEnvironmentOnly); | ||
|
||
$this->testEnvironment->overlayUrl = UiTestFixture::getLocalTestSiteUrl(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixture fails to set up here
PHP Fatal error: Class 'Piwik\Tests\Fixtures\UiTestFixture' not found in /home/travis/build/matomo-org/matomo/tests/PHPUnit/Fixtures/JSTrackingUIFixture.php on line 46
// visit visitor log for correct date | ||
await page.goto(visitorLogUrl); | ||
|
||
expect(await page.screenshot({ fullPage: true })).to.matchImage('visitor_log'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the expected image for that test is missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems something doesn't work here. Last processed screenshot shows en empty visitor log:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it works when it runs by itself, but not w/ other tests. Will be fun to debug.
adc0a6a
to
d37b960
Compare
* Add UI test for JavaScript tracking. * apply some review feedback * try to fix UI test on travis * Add missing screenshot. * Normalize JSTracker UI test result. * update screenshot
* Add UI test for JavaScript tracking. * apply some review feedback * try to fix UI test on travis * Add missing screenshot. * Normalize JSTracker UI test result. * update screenshot
Forgot that #15374 also contained a UI test for JS tracking so re-creating it. Just changes to tests so adding to 3.13.3 (also updated puppeteer in the samesite PR)