[Map] Create "onDrawChanged" to refactor methods "markersValueChanged… #624
test.yaml
on: push
tests-php-components
2s
JavaScript Coding Style
14s
Check for UnBuilt JS Dist Files
45s
tests-js
1m 5s
Matrix: tests-php
Annotations
2 errors
test/map_controller.test.ts > GoogleMapsController > connect:
src/Map/src/Bridge/Google/assets/test/map_controller.test.ts#L65
Error: expect(element).toHaveClass("pre-connected")
Expected the element to have class:
pre-connected
Received:
<html
lang="en"
>
<head>
<meta
charset="UTF-8"
/>
<link
href="/__vitest__/favicon.svg"
rel="icon"
type="image/svg+xml"
/>
<meta
content="width=device-width, initial-scale=1.0"
name="viewport"
/>
<title>
Vitest Browser Tester
</title>
<style>
html {
padding: 0;
margin: 0;
}
body {
padding: 0;
margin: 0;
min-height: 100vh;
}
</style>
<script
type="module"
>
const moduleCache = new Map();
function wrapModule(module) {
if (typeof module === "function") {
const promise = new Promise((resolve, reject) => {
if (typeof __vitest_mocker__ === "undefined")
return module().then(resolve, reject);
__vitest_mocker__.prepare().finally(() => {
module().then(resolve, reject);
});
});
moduleCache.set(promise, { promise, evaluated: false });
return promise.finally(() => moduleCache.delete(promise));
}
return module;
}
window.__vitest_browser_runner__ = {
wrapModule,
wrapDynamicImport: wrapModule,
moduleCache,
config: {"mode":"test","isolate":true,"defines":{},"setupFiles":["/home/runner/work/symfony-ux/symfony-ux/test/setup.js"],"allowOnly":false,"testTimeout":15000,"hookTimeout":30000,"clearMocks":false,"mockReset":false,"restoreMocks":false,"unstubEnvs":false,"unstubGlobals":false,"maxConcurrency":5,"pool":"forks","expect":{},"snapshotSerializers":[],"disableConsoleIntercept":false,"root":"/home/runner/work/symfony-ux/symfony-ux/src/Map/src/Bridge/Google/assets","globals":true,"coverage":{"reportsDirectory":"./coverage","provider":"v8","enabled":false,"htmlReporter":{}},"fakeTimers":{"loopLimit":10000,"shouldClearNativeTimers":true,"toFake":["setTimeout","clearTimeout","setInterval","clearInterval","setImmediate","clearImmediate","Date"]},"poolOptions":{"forks":{"singleFork":false,"isolate":true},"threads":{"singleThread":false,"isolate":true},"vmThreads":{"singleThread":false},"vmForks":{"singleFork":false}},"deps":{"web":{"transformAssets":true,"transformCss":true,"transformGlobPattern":[]},"optimizer":{"web":{"enabled":true},"ssr":{"enabled":true}},"moduleDirectories":["/node_modules/"]},"snapshotOptions":{"updateSnapshot":"none","snapshotFormat":{},"expand":false},"sequence":{"hooks":"stack"},"inspector":{"enabled":false,"waitForDebugger":false},"watch":false,"env":{"BASE_URL":"/","MODE":"test","DEV":true,"PROD":false,"VITEST_BROWSER_DEBUG":""},"browser":{"name":"chromium","headless":true,"isolate":true,"fileParallelism":true,"ui":false,"viewport":{"width":414,"height":896},"screenshotFailures":true,"locators":{"testIdAttribute":"data-testid"}}},
viteConfig: {"root":"/home/runner/work/symfony-ux/symfony-ux/src/Map/src/Bridge/Google/assets"},
files: ["/home/runner/work/symfony-ux/symfony-ux/src/Map/src/Bridge/Google/assets/test/map_controller.test.ts"],
type: "tester",
contextId: "cac4e9f2-31f2-45b9-a909-1ec298b12cd4",
testerId: "4789d9da-73af-4463-a9fa-d4c73cd7f87a",
provider: "playwright",
providedContext: "[{}]",
};
const config = __vitest_browser_runner__.config;
if (config.testNamePattern)
config.testNamePattern = parseRegexp(config.testNamePattern);
function parseRegexp(input) {
// Parse input
const m = input.match(/(\/?)(.+)\1([a-z]*)/i);
// match nothing
if (!m) return /$^/;
// Invalid flags
if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3]))
return RegExp(input);
// Create the regular expression
return new RegExp(m[2], m[3]);
}
</script>
<script />
<script
src="/@fs/home/runner/work/symfony-ux/symfony-ux/node_modules/@vitest/browser/dist/client/error-catcher.js"
type="module"
/>
<script
src="/@fs/home/runner/work/symfony-ux/symfony-ux/node_modules/@vitest/browser/dist/locators/playwright.js
|
tests-js
Process completed with exit code 1.
|