diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 27d591e8934a..e5060b90e186 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -150,8 +150,9 @@ /packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/** @DevExpress/devextreme-scheduler /packages/devextreme/testing/tests/*/scheduler.* @DevExpress/devextreme-scheduler /packages/testcafe-models/scheduler/** @DevExpress/devextreme-scheduler -/e2e/testcafe-devextreme/tests/scheduler/** @DevExpress/devextreme-scheduler /e2e/testcafe-devextreme/tests/accessibility/scheduler/** @DevExpress/devextreme-scheduler +/e2e/playwright/models/scheduler/** @DevExpress/devextreme-scheduler +/e2e/playwright/tests/scheduler/** @DevExpress/devextreme-scheduler /packages/devextreme-scss/scss/widgets/*/scheduler/** @DevExpress/devextreme-scheduler /packages/devextreme-scss/scss/widgets/*/recurrenceEditor/** @DevExpress/devextreme-scheduler diff --git a/.github/workflows/playwright_tests.yml b/.github/workflows/playwright_tests.yml index 60759fffacf2..2c8909dacc63 100644 --- a/.github/workflows/playwright_tests.yml +++ b/.github/workflows/playwright_tests.yml @@ -201,7 +201,7 @@ jobs: fail-fast: false matrix: ${{ fromJson(needs.determine-playwright-matrix.outputs.matrix) }} runs-on: devextreme-shr2 - timeout-minutes: 10 + timeout-minutes: 15 steps: - name: Get sources @@ -278,13 +278,39 @@ jobs: if-no-files-found: ignore - name: Upload test traces and screenshot diffs - if: ${{ failure() }} + if: ${{ always() }} uses: actions/upload-artifact@v7 with: name: playwright-traces-${{ env.JOB_NAME }} path: ${{ github.workspace }}/e2e/playwright/artifacts/test-results if-no-files-found: ignore + - name: Collect new etalons + if: ${{ always() }} + run: | + mkdir -p "$RUNNER_TEMP/new-etalons" + git ls-files --others --exclude-standard -z -- 'e2e/playwright/tests/**/etalons/*.png' \ + | xargs -0 -r cp --parents -t "$RUNNER_TEMP/new-etalons" + + - name: Upload new etalons + if: ${{ always() }} + uses: actions/upload-artifact@v7 + with: + name: playwright-etalons-${{ env.JOB_NAME }} + path: ${{ runner.temp }}/new-etalons + if-no-files-found: ignore + + # A retry passes against the etalon its first attempt wrote, so new etalons fail the job here. + - name: Fail on new etalons + if: ${{ always() }} + run: | + new_etalons=$(git ls-files --others --exclude-standard -- 'e2e/playwright/tests/**/etalons/*.png') + if [ -n "$new_etalons" ]; then + echo "::error::The tests wrote etalons that are not in the repository. They are in the playwright-etalons artifact:" + echo "$new_etalons" + exit 1 + fi + merge-artifacts: runs-on: ubuntu-latest timeout-minutes: 6 @@ -307,6 +333,7 @@ jobs: const artifactGroups = { blobs: /^playwright-blob-/, traces: /^playwright-traces-/, + etalons: /^playwright-etalons-/, }; for (const [outputName, pattern] of Object.entries(artifactGroups)) { @@ -369,3 +396,12 @@ jobs: pattern: playwright-traces-* separate-directories: true delete-merged: true + + - name: Merge new etalons + if: steps.mergeable-artifacts.outputs.etalons == 'true' + uses: actions/upload-artifact/merge@v7 + continue-on-error: true + with: + name: playwright-etalons + pattern: playwright-etalons-* + delete-merged: true diff --git a/.github/workflows/testcafe_tests.yml b/.github/workflows/testcafe_tests.yml index 947857964e00..bd9a2b1fdf0c 100644 --- a/.github/workflows/testcafe_tests.yml +++ b/.github/workflows/testcafe_tests.yml @@ -25,12 +25,29 @@ jobs: outputs: should-run: ${{ steps.check.outputs.should-run }} styles-changed: ${{ steps.changes.outputs.styles }} + has-quarantined-tests: ${{ steps.quarantined-tests.outputs.has-tests }} steps: - uses: actions/checkout@v6 - name: Check RUN_TESTS flag id: check run: echo "should-run=${{ env.RUN_TESTS }}" >> $GITHUB_OUTPUT + - name: Check quarantined tests + id: quarantined-tests + working-directory: ./e2e/testcafe-devextreme + run: | + listed=0 + [ -f quarantine.json ] && listed=$(jq '.tests | length' quarantine.json) + # Matches the meta key: test.meta({ unstable: true }) or test.meta('unstable', true). + marked=$(grep -rlE --include='*.ts' --include='*.js' "unstable['\"]?[[:space:]]*[:,]" tests helpers || true) + echo "Tests in quarantine.json: $listed" + echo "Files with unstable tests: ${marked:-(none)}" + if [ "$listed" -gt 0 ] || [ -n "$marked" ]; then + echo "has-tests=true" >> $GITHUB_OUTPUT + else + echo "has-tests=false" >> $GITHUB_OUTPUT + fi + - uses: dorny/paths-filter@v4 id: changes with: @@ -245,15 +262,7 @@ jobs: { "componentFolder": "dataGrid", "name": "dataGrid (4/4)", "indices": "4/4", "cache": true, "concurrency": 5 }, { "componentFolder": "editors", "name": "editors" }, - { "componentFolder": "navigation", "name": "navigation", "concurrency": 6 }, - - { "componentFolder": "scheduler/common", "name": "scheduler / common (1/3)", "indices": "1/3", "concurrency": 6 }, - { "componentFolder": "scheduler/common", "name": "scheduler / common (2/3)", "indices": "2/3", "concurrency": 6 }, - { "componentFolder": "scheduler/common", "name": "scheduler / common (3/3)", "indices": "3/3", "concurrency": 6 }, - { "componentFolder": "scheduler/viewOffset", "name": "scheduler / viewOffset (1/2)", "indices": "1/2", "concurrency": 4 }, - { "componentFolder": "scheduler/viewOffset", "name": "scheduler / viewOffset (2/2)", "indices": "2/2", "concurrency": 4 }, - { "componentFolder": "scheduler/timezones", "name": "scheduler / timezones (Europe/Berlin)", "timezone": "Europe/Berlin" }, - { "componentFolder": "scheduler/timezones", "name": "scheduler / timezones (America/Los_Angeles)", "timezone": "America/Los_Angeles" } + { "componentFolder": "navigation", "name": "navigation", "concurrency": 6 } ] JSON ) @@ -409,13 +418,51 @@ jobs: path: ${{ github.workspace }}/e2e/testcafe-devextreme/artifacts/failedtests/**/* if-no-files-found: ignore - testcafe-quarantine: - name: quarantine + check-quarantine: + name: Check if quarantine should run needs: [check-should-run, build, testcafe] if: | !cancelled() && needs.check-should-run.outputs.should-run == 'true' && needs.build.result == 'success' + runs-on: ubuntu-latest + timeout-minutes: 3 + outputs: + should-run: ${{ steps.check.outputs.should-run }} + + steps: + - name: Check flaky test reports and quarantined tests + id: check + uses: actions/github-script@v9 + env: + HAS_QUARANTINED_TESTS: ${{ needs.check-should-run.outputs.has-quarantined-tests }} + with: + script: | + const artifacts = await github.paginate(github.rest.actions.listWorkflowRunArtifacts, { + owner: context.repo.owner, + repo: context.repo.repo, + run_id: context.runId, + per_page: 100, + }); + + // Same pattern as the "Download flaky test reports" step of the quarantine job. + const flakyReports = artifacts + .map((artifact) => artifact.name) + .filter((name) => name.startsWith('flaky-report')); + const hasQuarantinedTests = process.env.HAS_QUARANTINED_TESTS !== 'false'; + + core.info(`Flaky test reports: ${flakyReports.length ? flakyReports.join(', ') : '(none)'}`); + core.info(`Quarantined tests: ${hasQuarantinedTests ? 'yes' : 'none'}`); + core.setOutput('should-run', flakyReports.length > 0 || hasQuarantinedTests ? 'true' : 'false'); + + testcafe-quarantine: + name: quarantine + needs: [check-should-run, build, testcafe, check-quarantine] + if: | + !cancelled() && + needs.check-should-run.outputs.should-run == 'true' && + needs.build.result == 'success' && + needs.check-quarantine.outputs.should-run != 'false' runs-on: devextreme-shr2 timeout-minutes: 10 @@ -564,9 +611,15 @@ jobs: echo "============================================================" echo " [QUARANTINED] Run of all quarantined tests (quarantine.json)" echo "============================================================" - run_tests --onlyQuarantined true - quarantined_failed=$last_failed - meta_failed_names=$(jq -r '.tests[]' "$result") + if [ "${{ needs.check-should-run.outputs.has-quarantined-tests }}" = "false" ]; then + echo "No quarantined tests." + quarantined_failed=0 + meta_failed_names="" + else + run_tests --onlyQuarantined true + quarantined_failed=$last_failed + meta_failed_names=$(jq -r '.tests[]' "$result") + fi echo "" echo "============================================================" diff --git a/e2e/playwright/README.md b/e2e/playwright/README.md index 7ad7a8c7ec73..5bfe069ca961 100644 --- a/e2e/playwright/README.md +++ b/e2e/playwright/README.md @@ -57,6 +57,21 @@ test together with its etalon. The two sets must never cover the same case at on left behind gets updated by whoever touches the component next and starts asserting a render nobody checks. +### Etalons from CI + +Without a container, CI records the etalons. A test whose etalon does not exist fails, and +Playwright writes what it rendered in the etalon's place; the workflow collects those files at +their repository paths into the `playwright-etalons` artifact: + +```bash +gh run download -n playwright-etalons -D ci-etalons +cp -R ci-etalons/. ../.. # from e2e/playwright: the paths start at the repository root +``` + +Look through them before committing — a new etalon is only as right as the render it captured. On +the host, run such tests with `--ignore-snapshots`: a host run writes missing etalons too, and a +macOS or Windows render must not end up among them. + ## Themes A test runs in the default theme unless it says otherwise. The jobs that run the whole suite in @@ -116,6 +131,11 @@ The trace holds every action with the DOM before and after it, the network and t failed screenshot comparison uploads its `-expected`, `-actual` and `-diff` images alongside, so a failure that only happens on CI can be diagnosed without reproducing it. +On CI a failed test runs once more, in a new browser. A test that passes then does not fail the +job: the log lists it under "flaky", and the traces artifact keeps its failed run. A test that +wrote a missing etalon is the exception: its retry passes against that file, so the job fails on +the new etalon instead. + ## Writing a test ```ts diff --git a/e2e/playwright/fixtures.ts b/e2e/playwright/fixtures.ts index 715d8fab0e83..afe21772ff6c 100644 --- a/e2e/playwright/fixtures.ts +++ b/e2e/playwright/fixtures.ts @@ -1,7 +1,9 @@ -import { test as base } from '@playwright/test'; +import { expect, test as base } from '@playwright/test'; import { DEFAULT_BROWSER_SIZE, DEFAULT_THEME } from './helpers/const'; import { changeTheme, openTestPage, resetPageState } from './helpers/testPageUtils'; +const GOOGLE_FONTS = /^https:\/\/fonts\.googleapis\.com\//; + export interface TestOptions { theme: string; browserSize: [number, number]; @@ -16,6 +18,13 @@ export const test = base.extend({ page: async ({ page, theme, browserSize }, use) => { const [width, height] = browserSize; + // TestCafe failed a test on an uncaught error in the page; some tests assert nothing else. + const pageErrors: string[] = []; + + page.on('pageerror', (error) => pageErrors.push(error.stack ?? error.message)); + + // Material themes fall back to their bundled Roboto instead of whatever Google Fonts serves. + await page.context().route(GOOGLE_FONTS, (route) => route.fulfill({ contentType: 'text/css' })); await page.setViewportSize({ width, height }); await openTestPage(page); @@ -23,6 +32,8 @@ export const test = base.extend({ await resetPageState(page); await use(page); + + expect(pageErrors, 'uncaught errors in the page').toEqual([]); }, }); diff --git a/e2e/playwright/helpers/callbackTestHelper.ts b/e2e/playwright/helpers/callbackTestHelper.ts new file mode 100644 index 000000000000..400216586135 --- /dev/null +++ b/e2e/playwright/helpers/callbackTestHelper.ts @@ -0,0 +1,37 @@ +import type { Page } from '@playwright/test'; + +type WindowCallbackExtended = Window + & typeof globalThis + & { + clientTesting?: { + data: Record; + addCallbackResult: (key: string, result: T) => void; + }; + }; + +const initClientTesting = async (page: Page, keyArray: string[]): Promise => page.evaluate( + (keys) => { + const extendedWindow = window as WindowCallbackExtended; + + extendedWindow.clientTesting = { + data: Object.fromEntries(keys.map((key) => [key, []])), + addCallbackResult: (key: string, result: any) => { + extendedWindow.clientTesting!.data[key].push(result); + }, + }; + }, + keyArray, +); + +const getClientResults = async (page: Page, key: string): Promise => page.evaluate( + (name) => (window as WindowCallbackExtended).clientTesting!.data[name], + key, +); + +const CallbackTestHelper = { + initClientTesting, + getClientResults, +}; + +export type { WindowCallbackExtended }; +export { CallbackTestHelper }; diff --git a/e2e/playwright/helpers/createWidget.ts b/e2e/playwright/helpers/createWidget.ts index a9000c8e04d1..c9a7204d6481 100644 --- a/e2e/playwright/helpers/createWidget.ts +++ b/e2e/playwright/helpers/createWidget.ts @@ -2,28 +2,27 @@ import type { Page } from '@playwright/test'; import type { WidgetName, WidgetOptions } from '../models/types'; import { DEFAULT_SELECTOR } from './const'; -export interface CreateWidgetOptions { - disableFxAnimation: boolean; +export interface CreateWidgetOptions { + disableFxAnimation?: boolean; + arg?: TArg; } -const DEFAULT_OPTIONS: CreateWidgetOptions = { - disableFxAnimation: true, -}; +type WidgetConfig = TWidgetName extends keyof WidgetOptions + ? WidgetOptions[TWidgetName] + : object; -export const createWidget = async ( +export const createWidget = async ( page: Page, widgetName: TWidgetName, - widgetOptions: TWidgetName extends keyof WidgetOptions - ? WidgetOptions[TWidgetName] - | (() => WidgetOptions[TWidgetName] | Promise) - : unknown, + widgetOptions: WidgetConfig + | ((arg: TArg) => WidgetConfig | Promise>), selector: string = DEFAULT_SELECTOR, - { disableFxAnimation } = DEFAULT_OPTIONS, + { disableFxAnimation = true, arg }: CreateWidgetOptions = {}, ): Promise => { // Handlers cannot pass through the "page.evaluate" arguments, so a configuration with them // arrives as a factory that Playwright runs in the page. const options = typeof widgetOptions === 'function' - ? await page.evaluateHandle(widgetOptions as () => unknown) + ? await page.evaluateHandle(widgetOptions as (value: any) => unknown, arg) : widgetOptions; await page.evaluate(({ diff --git a/e2e/playwright/helpers/domUtils.ts b/e2e/playwright/helpers/domUtils.ts index a238bfe2c42c..84ad1b5512c0 100644 --- a/e2e/playwright/helpers/domUtils.ts +++ b/e2e/playwright/helpers/domUtils.ts @@ -1,4 +1,4 @@ -import type { Page } from '@playwright/test'; +import type { Locator, Page } from '@playwright/test'; const STYLESHEET_RULES_ID = 'stylesheetRules'; @@ -121,3 +121,15 @@ export const removeStylesheetRulesFromPage = async (page: Page): Promise = (stylesheetId) => { document.getElementById(stylesheetId)?.remove(); }, STYLESHEET_RULES_ID, ); + +export const getStyleAttribute = async ( + locator: Locator, +): Promise => locator.getAttribute('style'); + +export const hasHorizontalScroll = async ( + locator: Locator, +): Promise => locator.evaluate((element) => element.scrollWidth > element.clientWidth); + +export const getDocumentScrollTop = async ( + page: Page, +): Promise => page.evaluate(() => document.documentElement.scrollTop); diff --git a/e2e/playwright/helpers/dragUtils.ts b/e2e/playwright/helpers/dragUtils.ts new file mode 100644 index 000000000000..0eb6afb31e25 --- /dev/null +++ b/e2e/playwright/helpers/dragUtils.ts @@ -0,0 +1,230 @@ +import type { Locator, Page } from '@playwright/test'; + +export interface DragOptions { + offsetX?: number; + offsetY?: number; + steps?: number; +} + +interface Point { x: number; y: number } + +interface ScrollRequest { + maxMargin: number; + offsetX?: number; + offsetY?: number; +} + +const DEFAULT_STEPS = 10; +const MAX_SCROLL_MARGIN = 50; + +const offsetWithin = (size: number, offset: number | undefined): number => { + if (offset === undefined) { + return size / 2; + } + + return offset < 0 ? size + offset : offset; +}; + +// Mirrors TestCafe's ScrollAutomation, which leaves up to 50px between the element and the edge. +const scrollIntoView = ( + element: Locator, + offsetX?: number, + offsetY?: number, +): Promise => element.evaluate((node, { maxMargin, ...offsets }: ScrollRequest) => { + interface Axis { + scroll: number; + parentSize: number; + relativeStart: number; + relativeEnd: number; + childSize: number; + point: number; + } + + const SCROLLABLE_OVERFLOW = /auto|scroll|hidden/; + const root = document.documentElement; + + const hasScroll = (el: Element): boolean => { + const { overflowX, overflowY } = getComputedStyle(el); + + if (el === root) { + return !(overflowX === 'hidden' && overflowY === 'hidden') + && (el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight); + } + + return (SCROLLABLE_OVERFLOW.test(overflowX) && el.scrollWidth > el.clientWidth) + || (SCROLLABLE_OVERFLOW.test(overflowY) && el.scrollHeight > el.clientHeight); + }; + + const resolveOffset = (size: number, offset: number | undefined): number => { + if (offset === undefined) { + return Math.floor(size / 2); + } + + return offset < 0 ? size + offset : offset; + }; + + const getScroll = (axis: Axis, margin: number): number => { + const { + scroll, parentSize, relativeStart, relativeEnd, childSize, point, + } = axis; + + if (parentSize >= childSize) { + const fullViewMargin = Math.min(margin, parentSize - childSize); + + if (relativeStart < fullViewMargin) { + return Math.max(scroll + relativeStart - fullViewMargin, 0); + } + + if (relativeEnd < fullViewMargin) { + return Math.max(scroll + Math.min(relativeStart, -relativeEnd) + fullViewMargin, 0); + } + } + + const pointMargin = Math.min(margin, Math.floor(parentSize / 2)); + + if (point >= parentSize - pointMargin) { + return Math.max(scroll + point - parentSize + pointMargin, 0); + } + + if (point <= pointMargin) { + return Math.max(scroll + point - pointMargin, 0); + } + + return scroll; + }; + + const getAxes = (parent: Element, child: Element): [Axis, Axis] => { + const isRoot = parent === root; + const parentRect = parent.getBoundingClientRect(); + const childRect = child.getBoundingClientRect(); + const targetRect = node.getBoundingClientRect(); + const style = getComputedStyle(parent); + const border = { + left: isRoot ? 0 : parseFloat(style.borderLeftWidth), + right: isRoot ? 0 : parseFloat(style.borderRightWidth), + top: isRoot ? 0 : parseFloat(style.borderTopWidth), + bottom: isRoot ? 0 : parseFloat(style.borderBottomWidth), + }; + const left = isRoot ? 0 : parentRect.left; + const top = isRoot ? 0 : parentRect.top; + const width = isRoot ? parent.clientWidth : parentRect.width; + const height = isRoot ? parent.clientHeight : parentRect.height; + const scrollbarRight = isRoot ? 0 : width - border.left - border.right - parent.clientWidth; + const scrollbarBottom = isRoot ? 0 : height - border.top - border.bottom - parent.clientHeight; + + return [{ + scroll: parent.scrollLeft, + parentSize: width, + relativeStart: Math.ceil(childRect.left - left - border.left), + relativeEnd: Math.floor(left + width - childRect.right - border.right - scrollbarRight), + childSize: childRect.width, + point: targetRect.left - left + resolveOffset(targetRect.width, offsets.offsetX), + }, { + scroll: parent.scrollTop, + parentSize: height, + relativeStart: Math.ceil(childRect.top - top - border.top), + relativeEnd: Math.floor(top + height - childRect.bottom - border.bottom - scrollbarBottom), + childSize: childRect.height, + point: targetRect.top - top + resolveOffset(targetRect.height, offsets.offsetY), + }]; + }; + + let child: Element = node; + + for (let parent = node.parentElement; parent; parent = parent.parentElement) { + if (hasScroll(parent)) { + const [x, y] = getAxes(parent, child); + const isFullyVisible = getScroll(x, 0) === x.scroll && getScroll(y, 0) === y.scroll; + + if (!isFullyVisible) { + parent.scrollLeft = getScroll(x, maxMargin); + parent.scrollTop = getScroll(y, maxMargin); + } + + child = parent; + } + } +}, { maxMargin: MAX_SCROLL_MARGIN, offsetX, offsetY }); + +const pointWithin = async ( + element: Locator, + offsetX?: number, + offsetY?: number, +): Promise => { + await scrollIntoView(element, offsetX, offsetY); + + const box = await element.boundingBox(); + + if (!box) { + throw new Error(`${element.toString()} has no box to point at`); + } + + return { + x: Math.round(box.x + offsetWithin(box.width, offsetX)), + y: Math.round(box.y + offsetWithin(box.height, offsetY)), + }; +}; + +const press = async ( + page: Page, + source: Locator, + offsetX?: number, + offsetY?: number, +): Promise => { + const start = await pointWithin(source, offsetX, offsetY); + + await page.mouse.move(start.x, start.y); + await page.mouse.down(); + + return start; +}; + +export const startDragToOffset = async ( + page: Page, + source: Locator, + deltaX: number, + deltaY: number, + { offsetX, offsetY, steps = DEFAULT_STEPS }: DragOptions = {}, +): Promise => { + const start = await press(page, source, offsetX, offsetY); + + await page.mouse.move(start.x + deltaX, start.y + deltaY, { steps }); +}; + +export const startDragToElement = async ( + page: Page, + source: Locator, + target: Locator, + { offsetX, offsetY, steps = DEFAULT_STEPS }: DragOptions = {}, +): Promise => { + await press(page, source, offsetX, offsetY); + + const end = await pointWithin(target); + + await page.mouse.move(end.x, end.y, { steps }); +}; + +export const finishDrag = async (page: Page): Promise => { + await page.mouse.up(); +}; + +export const dragToOffset = async ( + page: Page, + source: Locator, + deltaX: number, + deltaY: number, + options?: DragOptions, +): Promise => { + await startDragToOffset(page, source, deltaX, deltaY, options); + await finishDrag(page); +}; + +export const dragToElement = async ( + page: Page, + source: Locator, + target: Locator, + options?: DragOptions, +): Promise => { + await startDragToElement(page, source, target, options); + await finishDrag(page); +}; diff --git a/e2e/playwright/helpers/generateOptionMatrix.ts b/e2e/playwright/helpers/generateOptionMatrix.ts new file mode 100644 index 000000000000..18b94a9b110f --- /dev/null +++ b/e2e/playwright/helpers/generateOptionMatrix.ts @@ -0,0 +1,70 @@ +export type Options = { + [TProperty in keyof TComponentOptions]: TComponentOptions[TProperty][] +}; + +const generateOptionMatrixImpl = ( + options: Options, + keys: (keyof T)[], + index: number, + current: T[], +): T[] => { + if (index >= keys.length) { + return current; + } + + const key = keys[index]; + const values = options[key]; + const currentLength = current.length; + + for (let i = 1; i < values.length; i += 1) { + const nextCombinations = current + .slice(0, currentLength) + .map((item) => ({ + ...item, + [key]: values[i], + })); + + current.push(...nextCombinations); + } + + return generateOptionMatrixImpl(options, keys, index + 1, current); +}; + +export const generateOptionMatrix = = Partial>( + options: Options, + exclude: U[] = [], +): T[] => { + const keys = Object.keys(options) as (keyof T)[]; + + if (keys.length === 0) { + return []; + } + + const initialObject = {} as T; + + const baseObject = keys.reduce((acc, key) => { + const [firstValue] = options[key]; + acc[key] = firstValue; + return acc; + }, initialObject); + + const current = options[keys[0]].map((value) => ({ + ...baseObject, + [keys[0]]: value, + })); + + const result = generateOptionMatrixImpl(options, keys, 1, current); + + if (exclude.length === 0) { + return result; + } + + return result.filter((item) => { + const areItemsEqual = exclude.some((itemToExclude) => { + const excludeKeys = Object.keys(itemToExclude); + return excludeKeys.every((key) => item[key] === itemToExclude[key]); + }); + + return !areItemsEqual; + }); +}; diff --git a/e2e/playwright/helpers/timezones.ts b/e2e/playwright/helpers/timezones.ts new file mode 100644 index 000000000000..f6d9fecba2d3 --- /dev/null +++ b/e2e/playwright/helpers/timezones.ts @@ -0,0 +1,24 @@ +import type { Page } from '@playwright/test'; +import type { TestOptions } from '../fixtures'; +import { test } from '../fixtures'; +import { readEnv } from './const'; + +export const MACHINE_TIMEZONES = { + EuropeBerlin: 'Europe/Berlin', + AmericaLosAngeles: 'America/Los_Angeles', +} as const; + +export type MachineTimezone = typeof MACHINE_TIMEZONES[keyof typeof MACHINE_TIMEZONES]; + +export const getTimezone = (): string => readEnv(process.env.TIMEZONE, 'GMT'); + +type TestDeclaration = ( + title: string, + body: (args: TestOptions & { page: Page }) => Promise, +) => void; + +export const getTimezoneTest = (timezone: MachineTimezone): TestDeclaration => ( + getTimezone() === timezone ? test : test.skip +); + +export const normalizeTimezoneName = (timezone: MachineTimezone): string => timezone.replace(/\//g, '-'); diff --git a/e2e/playwright/models/internal/textMatcher.ts b/e2e/playwright/models/internal/textMatcher.ts new file mode 100644 index 000000000000..362ad7d7a0d1 --- /dev/null +++ b/e2e/playwright/models/internal/textMatcher.ts @@ -0,0 +1,3 @@ +const escapeRegExp = (value: string): string => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + +export const textMatcher = (text: string): RegExp => new RegExp(escapeRegExp(text)); diff --git a/e2e/playwright/models/scheduler/appointment/dialog.ts b/e2e/playwright/models/scheduler/appointment/dialog.ts new file mode 100644 index 000000000000..a292b7238065 --- /dev/null +++ b/e2e/playwright/models/scheduler/appointment/dialog.ts @@ -0,0 +1,20 @@ +import type { Locator, Page } from '@playwright/test'; + +const CLASS = { + dialog: 'dx-dialog.dx-popup', + dialogButton: 'dx-dialog-button', +}; + +export default class AppointmentDialog { + public readonly element: Locator; + + public readonly series: Locator; + + public readonly appointment: Locator; + + constructor(page: Page) { + this.element = page.locator(`.${CLASS.dialog}`); + this.series = this.element.locator(`.${CLASS.dialogButton}`).nth(0); + this.appointment = this.element.locator(`.${CLASS.dialogButton}`).nth(1); + } +} diff --git a/e2e/playwright/models/scheduler/appointment/index.ts b/e2e/playwright/models/scheduler/appointment/index.ts new file mode 100644 index 000000000000..94765d76b05a --- /dev/null +++ b/e2e/playwright/models/scheduler/appointment/index.ts @@ -0,0 +1,100 @@ +import type { Locator } from '@playwright/test'; +import { expect } from '@playwright/test'; +import { classMatcher } from '../../internal/classMatcher'; +import { textMatcher } from '../../internal/textMatcher'; + +const CLASS = { + appointment: 'dx-scheduler-appointment', + contentDate: 'dx-scheduler-appointment-content-date', + recurrenceIcon: 'dx-scheduler-appointment-recurrence-icon', + resizableHandleBottom: 'dx-resizable-handle-bottom', + resizableHandleLeft: 'dx-resizable-handle-left', + resizableHandleRight: 'dx-resizable-handle-right', + resizableHandleTop: 'dx-resizable-handle-top', + title: 'dx-scheduler-appointment-title', + resourceItem: 'dx-scheduler-appointment-resource-item', + resourceValue: 'dx-scheduler-appointment-resource-item-value', + reducedIcon: 'dx-scheduler-appointment-reduced-icon', +}; + +const STATE_CLASS = { + focused: 'dx-state-focused', + allDay: 'dx-scheduler-all-day-appointment', + reduced: 'dx-scheduler-appointment-reduced', + reducedHead: 'dx-scheduler-appointment-head', + reducedBody: 'dx-scheduler-appointment-body', + reducedTail: 'dx-scheduler-appointment-tail', + draggableSource: 'dx-draggable-source', +}; + +export type AppointmentState = keyof typeof STATE_CLASS; + +export default class Appointment { + public readonly element: Locator; + + public readonly date: Locator; + + public readonly title: Locator; + + public readonly resourcesItems: Locator; + + public readonly reducedIcon: Locator; + + public readonly resizableHandle: { + left: Locator; + right: Locator; + top: Locator; + bottom: Locator; + }; + + constructor(scheduler: Locator, index = 0, title?: string) { + const appointments = scheduler.locator(`.${CLASS.appointment}`); + + // Hidden text does not count, as with TestCafe's "withText": every appointment also holds a + // hidden aria description ("Press Delete to…") that would match short titles. + const visibleText = (text: string): Locator => scheduler.page() + .getByText(textMatcher(text)) + .and(scheduler.page().locator(':not([hidden])')); + + this.element = (title ? appointments.filter({ has: visibleText(title) }) : appointments) + .nth(index); + + this.date = this.element.locator(`.${CLASS.contentDate}`).first(); + this.title = this.element.locator(`.${CLASS.title}`); + this.resourcesItems = this.element.locator(`.${CLASS.resourceItem}`); + this.reducedIcon = this.element.locator(`.${CLASS.reducedIcon}`); + + this.resizableHandle = { + left: this.element.locator(`.${CLASS.resizableHandleLeft}`), + right: this.element.locator(`.${CLASS.resizableHandleRight}`), + top: this.element.locator(`.${CLASS.resizableHandleTop}`), + bottom: this.element.locator(`.${CLASS.resizableHandleBottom}`), + }; + } + + public async expectState(state: AppointmentState, present = true): Promise { + const assertion = expect(this.element); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(STATE_CLASS[state])); + } + + public getColor(): Promise { + return this.element.evaluate((node) => getComputedStyle(node).backgroundColor); + } + + public getResource(label: string): Locator { + return this.resourcesItems + .filter({ has: this.element.page().locator('div', { hasText: textMatcher(label) }) }) + .locator(`.${CLASS.resourceValue}`); + } + + public getRecurrenceElement(): Locator { + return this.element.locator(`.${CLASS.recurrenceIcon}`); + } + + public async getAriaDescription(): Promise { + const id = await this.element.getAttribute('aria-describedby'); + + return this.element.locator(`[id="${id}"]`).innerText(); + } +} diff --git a/e2e/playwright/models/scheduler/appointment/popup.ts b/e2e/playwright/models/scheduler/appointment/popup.ts new file mode 100644 index 000000000000..4fd23979a569 --- /dev/null +++ b/e2e/playwright/models/scheduler/appointment/popup.ts @@ -0,0 +1,150 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect } from '@playwright/test'; +import Button from '../../button'; +import Popup from '../../popup'; +import { textMatcher } from '../../internal/textMatcher'; + +const SELECTORS = { + appointmentPopup: '.dx-scheduler-appointment-popup.dx-popup.dx-widget', + content: '.dx-scheduler-appointment-popup .dx-overlay-content', + toolbar: '.dx-scheduler-appointment-popup .dx-popup-title', + form: '.dx-scheduler-form', + doneButton: '.dx-popup-done.dx-button.dx-widget', + cancelButton: '.dx-popup-cancel.dx-button.dx-widget', + editorInput: '.dx-texteditor-input', + textEditor: '.dx-textbox.dx-widget', + allDaySwitch: '.dx-scheduler-form-all-day-switch .dx-switch.dx-widget', + startDateEditor: '.dx-scheduler-form-start-date-editor .dx-datebox.dx-datebox-date.dx-widget', + startTimeEditor: '.dx-scheduler-form-start-time-editor .dx-datebox.dx-datebox-time.dx-widget', + startTimeZoneEditor: '.dx-scheduler-form-start-date-timezone-editor .dx-selectbox.dx-widget', + endDateEditor: '.dx-scheduler-form-end-date-editor .dx-datebox.dx-datebox-date.dx-widget', + endTimeEditor: '.dx-scheduler-form-end-time-editor .dx-datebox.dx-datebox-time.dx-widget', + endTimeZoneEditor: '.dx-scheduler-form-end-date-timezone-editor .dx-selectbox.dx-widget', + repeatEditor: '.dx-scheduler-form-repeat-editor .dx-selectbox.dx-widget', + descriptionEditor: '.dx-scheduler-form-description-editor .dx-textarea.dx-widget', + recurrenceGroup: '.dx-scheduler-form-recurrence-group', + backButton: '.dx-button.dx-widget[aria-label="Back"]', + recurrenceStartDateInput: '.dx-scheduler-form-recurrence-start-date-editor input[type="text"]', + recurrenceFrequencyEditor: '.dx-scheduler-form-recurrence-frequency-editor .dx-selectbox.dx-widget', + recurrenceSettingsButton: '.dx-scheduler-form-recurrence-settings-button', + weekDayButtons: '.dx-scheduler-days-of-week-buttons .dx-button', + monthDayInput: '.dx-scheduler-form-day-of-month-group [type="text"]', + yearlyMonthInput: '.dx-scheduler-form-recurrence-by-month-editor .dx-selectbox.dx-widget', + recurrenceEndRadioGroup: '.dx-scheduler-form-recurrence-end-editors', + recurrenceEndInputGroup: '.dx-scheduler-form-recurrence-end-group', + listItem: '.dx-list-item', +}; + +export interface PopupEditor { + element: Locator; + input: Locator; +} + +export default class AppointmentPopup { + public readonly popup: Popup; + + public readonly contentElement: Locator; + + public readonly toolbarElement: Locator; + + public readonly saveButton: Button; + + public readonly cancelButton: Button; + + public readonly form: Locator; + + public readonly textEditor: PopupEditor; + + public readonly allDaySwitch: Locator; + + public readonly startDateEditor: PopupEditor; + + public readonly startTimeEditor: PopupEditor; + + public readonly startTimeZoneEditor: PopupEditor; + + public readonly endDateEditor: PopupEditor; + + public readonly endTimeEditor: PopupEditor; + + public readonly endTimeZoneEditor: PopupEditor; + + public readonly repeatEditor: PopupEditor; + + public readonly descriptionEditor: PopupEditor; + + public readonly recurrenceSettingsButton: Button; + + public readonly recurrence: { + backButton: Locator; + group: Locator; + startDateInput: Locator; + frequencyEditor: Locator; + weekDayButtons: Locator; + monthDayInput: Locator; + yearlyMonthInput: Locator; + endRadioGroup: Locator; + endInputGroup: Locator; + }; + + private readonly page: Page; + + constructor(page: Page) { + this.page = page; + this.popup = new Popup(page, SELECTORS.appointmentPopup); + this.contentElement = page.locator(SELECTORS.content).first(); + this.toolbarElement = page.locator(SELECTORS.toolbar); + this.saveButton = new Button(page, this.toolbarElement.locator(SELECTORS.doneButton)); + this.cancelButton = new Button(page, this.toolbarElement.locator(SELECTORS.cancelButton)); + this.form = this.contentElement.locator(SELECTORS.form); + + const editor = (selector: string): PopupEditor => { + const element = this.contentElement.locator(selector).first(); + + return { element, input: element.locator(SELECTORS.editorInput) }; + }; + + this.textEditor = editor(SELECTORS.textEditor); + this.allDaySwitch = this.contentElement.locator(SELECTORS.allDaySwitch); + this.startDateEditor = editor(SELECTORS.startDateEditor); + this.startTimeEditor = editor(SELECTORS.startTimeEditor); + this.startTimeZoneEditor = editor(SELECTORS.startTimeZoneEditor); + this.endDateEditor = editor(SELECTORS.endDateEditor); + this.endTimeEditor = editor(SELECTORS.endTimeEditor); + this.endTimeZoneEditor = editor(SELECTORS.endTimeZoneEditor); + this.repeatEditor = editor(SELECTORS.repeatEditor); + this.descriptionEditor = editor(SELECTORS.descriptionEditor); + this.recurrenceSettingsButton = new Button( + page, + this.repeatEditor.element.locator(SELECTORS.recurrenceSettingsButton), + ); + + this.recurrence = { + backButton: page.locator(SELECTORS.backButton), + group: page.locator(SELECTORS.recurrenceGroup), + startDateInput: page.locator(SELECTORS.recurrenceStartDateInput), + frequencyEditor: page.locator(SELECTORS.recurrenceFrequencyEditor), + weekDayButtons: page.locator(SELECTORS.weekDayButtons), + monthDayInput: page.locator(SELECTORS.monthDayInput), + yearlyMonthInput: page.locator(SELECTORS.yearlyMonthInput), + endRadioGroup: page.locator(SELECTORS.recurrenceEndRadioGroup), + endInputGroup: page.locator(SELECTORS.recurrenceEndInputGroup), + }; + } + + public async selectRepeatValue(frequency = 'Daily'): Promise { + await this.repeatEditor.element.click(); + + const item = this.page.locator(`${SELECTORS.listItem}:visible`) + .filter({ hasText: textMatcher(frequency) }) + .first(); + + await item.click(); + await expect(item).toBeHidden(); + } + + public async clickRecurrenceSettingsButton(): Promise { + await this.recurrenceSettingsButton.element.click(); + await expect(this.recurrence.group).toBeVisible(); + } +} diff --git a/e2e/playwright/models/scheduler/appointment/tooltip/index.ts b/e2e/playwright/models/scheduler/appointment/tooltip/index.ts new file mode 100644 index 000000000000..7dbe59b2594e --- /dev/null +++ b/e2e/playwright/models/scheduler/appointment/tooltip/index.ts @@ -0,0 +1,51 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect } from '@playwright/test'; +import ListItem from './listItem'; + +const CLASS = { + tooltip: 'dx-tooltip', + appointmentTooltipWrapper: 'dx-scheduler-appointment-tooltip-wrapper', + tooltipWrapper: 'dx-tooltip-wrapper', + stateInvisible: 'dx-state-invisible', + deleteButton: 'dx-tooltip-appointment-item-delete-button', + mobileTooltip: '.dx-scheduler-overlay-panel > .dx-overlay-content', +}; + +export default class AppointmentTooltip { + public readonly element: Locator; + + public readonly anyElement: Locator; + + public readonly wrapper: Locator; + + public readonly mobileElement: Locator; + + public readonly deleteButton: Locator; + + constructor(page: Page, scheduler: Locator) { + this.element = scheduler.locator(`.${CLASS.tooltip}.${CLASS.appointmentTooltipWrapper}`); + this.anyElement = page.locator(`.${CLASS.appointmentTooltipWrapper}`); + this.wrapper = page.locator(`.${CLASS.tooltipWrapper}.${CLASS.appointmentTooltipWrapper}`); + this.mobileElement = page.locator(CLASS.mobileTooltip); + this.deleteButton = page.locator(`.${CLASS.deleteButton}`).first(); + } + + public getListItem(title?: string, index = 0): ListItem { + return new ListItem(this.wrapper, title, index); + } + + public async isVisible(): Promise { + if (await this.element.count() === 0) { + return false; + } + + return this.element.first().evaluate( + (node, invisible) => !node.classList.contains(invisible), + CLASS.stateInvisible, + ); + } + + public async expectVisible(visible = true): Promise { + await expect.poll(() => this.isVisible()).toBe(visible); + } +} diff --git a/e2e/playwright/models/scheduler/appointment/tooltip/listItem.ts b/e2e/playwright/models/scheduler/appointment/tooltip/listItem.ts new file mode 100644 index 000000000000..84e96f6d7e13 --- /dev/null +++ b/e2e/playwright/models/scheduler/appointment/tooltip/listItem.ts @@ -0,0 +1,33 @@ +import type { Locator } from '@playwright/test'; +import { expect } from '@playwright/test'; +import { classMatcher } from '../../../internal/classMatcher'; +import { textMatcher } from '../../../internal/textMatcher'; + +const CLASS = { + listItem: 'dx-list-item', + stateFocused: 'dx-state-focused', + contentDate: 'dx-tooltip-appointment-item-content-date', + contentSubject: 'dx-tooltip-appointment-item-content-subject', +}; + +export default class ListItem { + public readonly element: Locator; + + public readonly date: Locator; + + public readonly subject: Locator; + + constructor(wrapper: Locator, title?: string, index = 0) { + const items = wrapper.locator(`.${CLASS.listItem}`); + + this.element = (title ? items.filter({ hasText: textMatcher(title) }) : items).nth(index); + this.date = this.element.locator(`.${CLASS.contentDate}`); + this.subject = this.element.locator(`.${CLASS.contentSubject}`); + } + + public async expectFocused(present = true): Promise { + const assertion = expect(this.element); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.stateFocused)); + } +} diff --git a/e2e/playwright/models/scheduler/collectors/collector.ts b/e2e/playwright/models/scheduler/collectors/collector.ts new file mode 100644 index 000000000000..0e13e4e2d324 --- /dev/null +++ b/e2e/playwright/models/scheduler/collectors/collector.ts @@ -0,0 +1,62 @@ +import type { Locator } from '@playwright/test'; +import { expect } from '@playwright/test'; +import { classMatcher } from '../../internal/classMatcher'; +import { textMatcher } from '../../internal/textMatcher'; + +export const CLASS = { + appointmentCollector: 'dx-scheduler-appointment-collector', + stateFocused: 'dx-state-focused', + compact: 'dx-scheduler-appointment-collector-compact', +}; + +export default class AppointmentCollector { + public readonly element: Locator; + + constructor(scheduler: Locator, index = 0, title?: string) { + const collectors = scheduler.locator(`.${CLASS.appointmentCollector}`); + + this.element = (title ? collectors.filter({ hasText: textMatcher(title) }) : collectors) + .nth(index); + } + + public async expectFocused(present = true): Promise { + const assertion = expect(this.element); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.stateFocused)); + } + + public async expectCompact(present = true): Promise { + const assertion = expect(this.element); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.compact)); + } + + // The pointer events go out synchronously: a mouseup more than 750ms after the mousedown starts + // the hold gesture of the appointment collection, which cancels the click of the collector. + public async click(): Promise { + await this.element.evaluate((element: HTMLElement) => { + element.scrollIntoView({ block: 'nearest', inline: 'nearest' }); + + const { + left, top, width, height, + } = element.getBoundingClientRect(); + const options = { + bubbles: true, + cancelable: true, + clientX: left + width / 2, + clientY: top + height / 2, + button: 0, + pointerId: 1, + pointerType: 'mouse', + isPrimary: true, + }; + + element.dispatchEvent(new PointerEvent('pointerdown', { ...options, buttons: 1 })); + element.dispatchEvent(new MouseEvent('mousedown', { ...options, buttons: 1 })); + element.focus(); + element.dispatchEvent(new PointerEvent('pointerup', options)); + element.dispatchEvent(new MouseEvent('mouseup', options)); + element.dispatchEvent(new MouseEvent('click', options)); + }); + } +} diff --git a/e2e/playwright/models/scheduler/collectors/index.ts b/e2e/playwright/models/scheduler/collectors/index.ts new file mode 100644 index 000000000000..facfb5d9fc63 --- /dev/null +++ b/e2e/playwright/models/scheduler/collectors/index.ts @@ -0,0 +1,21 @@ +import type { Locator } from '@playwright/test'; +import AppointmentCollector, { CLASS } from './collector'; + +export default class Collectors { + public readonly all: Locator; + + private readonly scheduler: Locator; + + constructor(scheduler: Locator) { + this.scheduler = scheduler; + this.all = scheduler.locator(`.${CLASS.appointmentCollector}`); + } + + public get(index: number): AppointmentCollector { + return new AppointmentCollector(this.scheduler, index); + } + + public find(title: string, index = 0): AppointmentCollector { + return new AppointmentCollector(this.scheduler, index, title); + } +} diff --git a/e2e/playwright/models/scheduler/groupRow.ts b/e2e/playwright/models/scheduler/groupRow.ts new file mode 100644 index 000000000000..c2883aee8d7f --- /dev/null +++ b/e2e/playwright/models/scheduler/groupRow.ts @@ -0,0 +1,17 @@ +import type { Locator } from '@playwright/test'; + +const CLASS = { + groupRow: 'dx-scheduler-group-row', + groupCell: 'dx-scheduler-group-header-content', +}; + +export class GroupRow { + public readonly element: Locator; + + public readonly groupCells: Locator; + + constructor(scheduler: Locator) { + this.element = scheduler.locator(`.${CLASS.groupRow}`); + this.groupCells = this.element.locator(`.${CLASS.groupCell}`); + } +} diff --git a/e2e/playwright/models/scheduler/headerPanel.ts b/e2e/playwright/models/scheduler/headerPanel.ts new file mode 100644 index 000000000000..feadc2614991 --- /dev/null +++ b/e2e/playwright/models/scheduler/headerPanel.ts @@ -0,0 +1,21 @@ +import type { Locator } from '@playwright/test'; + +const CLASS = { + headerPanel: 'dx-scheduler-header-panel', + headerPanelCell: 'dx-scheduler-header-panel-cell', + groupCell: 'dx-scheduler-group-header-content', +}; + +export class HeaderPanel { + public readonly element: Locator; + + public readonly headerCells: Locator; + + public readonly groupCells: Locator; + + constructor(scheduler: Locator) { + this.element = scheduler.locator(`.${CLASS.headerPanel}`); + this.headerCells = this.element.locator(`.${CLASS.headerPanelCell}`); + this.groupCells = this.element.locator(`.${CLASS.groupCell}`); + } +} diff --git a/e2e/playwright/models/scheduler/index.ts b/e2e/playwright/models/scheduler/index.ts new file mode 100644 index 000000000000..9ebcc7f5c74a --- /dev/null +++ b/e2e/playwright/models/scheduler/index.ts @@ -0,0 +1,209 @@ +import type { Locator, Page } from '@playwright/test'; +import type { WidgetName } from '../types'; +import Widget from '../internal/widget'; +import Appointment from './appointment'; +import AppointmentDialog from './appointment/dialog'; +import AppointmentPopup from './appointment/popup'; +import AppointmentTooltip from './appointment/tooltip'; +import Collectors from './collectors'; +import { GroupRow } from './groupRow'; +import { HeaderPanel } from './headerPanel'; +import Toolbar from './toolbar'; + +export const CLASS = { + appointment: 'dx-scheduler-appointment', + dateTable: 'dx-scheduler-date-table', + dateTableCell: 'dx-scheduler-date-table-cell', + dateTableRow: 'dx-scheduler-date-table-row', + allDayTableCell: 'dx-scheduler-all-day-table-cell', + allDayTitle: 'dx-scheduler-all-day-title', + allDayRow: 'dx-scheduler-all-day-table-row', + allDayCollapsed: 'dx-scheduler-work-space-all-day-collapsed', + focusedCell: 'dx-scheduler-focused-cell', + selectedCell: 'dx-state-focused', + droppableCell: 'dx-scheduler-date-table-droppable-cell', + dateTableScrollable: 'dx-scheduler-date-table-scrollable', + headerScrollable: 'dx-scheduler-header-scrollable', + scrollableContainer: 'dx-scrollable-container', + workspaceBothScrollbar: 'dx-scheduler-work-space-both-scrollbar', + workSpace: 'dx-scheduler-work-space', + statusContainer: 'dx-screen-reader-only', +}; + +export const VIEW_TYPE_CLASS = { + day: 'dx-scheduler-work-space-day', + week: 'dx-scheduler-work-space-week', + workWeek: 'dx-scheduler-work-space-work-week', + month: 'dx-scheduler-work-space-month', + timelineDay: 'dx-scheduler-timeline-day', + timelineWeek: 'dx-scheduler-timeline-week', + timelineWorkWeek: 'dx-scheduler-timeline-work-week', + timelineMonth: 'dx-scheduler-timeline-month', +}; + +export interface ScrollPosition { + left: number; + top: number; +} + +export default class Scheduler extends Widget { + public readonly workSpace: Locator; + + public readonly appointments: Locator; + + public readonly dateTable: Locator; + + public readonly dateTableCells: Locator; + + public readonly dateTableRows: Locator; + + public readonly allDayTableCells: Locator; + + public readonly allDayRow: Locator; + + public readonly allDayTitle: Locator; + + public readonly dateTableScrollable: Locator; + + public readonly workspaceScrollable: Locator; + + public readonly headerScrollable: Locator; + + public readonly headerPanel: HeaderPanel; + + public readonly groupRow: GroupRow; + + public readonly toolbar: Toolbar; + + public readonly collectors: Collectors; + + public readonly appointmentPopup: AppointmentPopup; + + public readonly appointmentTooltip: AppointmentTooltip; + + constructor(page: Page, selector: Locator | string) { + super(page, selector); + + this.workSpace = this.element.locator(`.${CLASS.workSpace}`); + this.appointments = this.element.locator(`.${CLASS.appointment}`); + this.dateTable = this.element.locator(`.${CLASS.dateTable}`); + this.dateTableCells = this.element.locator(`.${CLASS.dateTableCell}`); + this.dateTableRows = this.element.locator(`.${CLASS.dateTableRow}`); + this.allDayTableCells = this.element.locator(`.${CLASS.allDayTableCell}`); + this.allDayRow = this.element.locator(`.${CLASS.allDayRow}`); + this.allDayTitle = this.element.locator(`.${CLASS.allDayTitle}`); + this.dateTableScrollable = this.element.locator(`.${CLASS.dateTableScrollable}`); + this.workspaceScrollable = this.dateTableScrollable.locator(`.${CLASS.scrollableContainer}`); + this.headerScrollable = this.element + .locator(`.${CLASS.headerScrollable} .${CLASS.scrollableContainer}`); + this.headerPanel = new HeaderPanel(this.element); + this.groupRow = new GroupRow(this.element); + this.toolbar = new Toolbar(page, this.element); + this.collectors = new Collectors(this.element); + this.appointmentPopup = new AppointmentPopup(page); + this.appointmentTooltip = new AppointmentTooltip(page, this.element); + } + + // eslint-disable-next-line class-methods-use-this + public getName(): WidgetName { return 'dxScheduler'; } + + public getDateTableCell(rowIndex = 0, cellIndex = 0): Locator { + return this.dateTableRows.nth(rowIndex).locator(`.${CLASS.dateTableCell}`).nth(cellIndex); + } + + public getAllDayTableCell(cellIndex = 0): Locator { + return this.allDayTableCells.nth(cellIndex); + } + + public getGroupCell(cellIndex = 0): Locator { + return this.groupRow.groupCells.nth(cellIndex); + } + + public getFocusedCell(isAllDay = false): Locator { + return this.getCellsWithClass(CLASS.focusedCell, isAllDay); + } + + public getSelectedCells(isAllDay = false): Locator { + return this.getCellsWithClass(CLASS.selectedCell, isAllDay); + } + + public getDroppableCell(isAllDay = false): Locator { + return this.getCellsWithClass(CLASS.droppableCell, isAllDay); + } + + public getAppointment(title: string, index = 0): Appointment { + return new Appointment(this.element, index, title); + } + + public getAppointmentByIndex(index = 0): Appointment { + return new Appointment(this.element, index); + } + + public getGeneralStatusContainer(): Locator { + return this.element.locator(`.${CLASS.statusContainer}`); + } + + public getEditRecurrenceDialog(): AppointmentDialog { + return new AppointmentDialog(this.page); + } + + public getDeleteRecurrenceDialog(): AppointmentDialog { + return new AppointmentDialog(this.page); + } + + public getWorkSpaceScroll(): Promise { + return this.workspaceScrollable.evaluate( + (node) => ({ left: node.scrollLeft, top: node.scrollTop }), + ); + } + + public getHeaderScroll(): Promise { + return this.headerScrollable.evaluate( + (node) => ({ left: node.scrollLeft, top: node.scrollTop }), + ); + } + + public async scrollTo( + date: Date, + group?: Record, + allDay?: boolean, + ): Promise { + await this.invoke('scrollTo', date, group, allDay); + } + + public async hideAppointmentTooltip(): Promise { + await this.invoke('hideAppointmentTooltip'); + } + + public async openAppointmentPopup( + appointment?: Record, + isRecurringAppointment = false, + ): Promise { + await this.invoke('showAppointmentPopup', appointment); + + if (isRecurringAppointment) { + await this.getEditRecurrenceDialog().series.click(); + } + + return this.appointmentPopup; + } + + public getCellDataAtViewportCenter(): Promise> { + return this.element.evaluate((element) => { + const instance = ($(element) as any).dxScheduler('instance'); + const workSpace = instance.getWorkSpace(); + const scrollable = workSpace.getScrollable(); + const centerX = scrollable.scrollLeft() + scrollable.$element().width() / 2; + const centerY = scrollable.scrollTop() + scrollable.$element().height() / 2; + const cell = workSpace.getCellByCoordinates({ top: centerY, left: centerX }, false); + + return workSpace.getCellData(cell); + }); + } + + private getCellsWithClass(className: string, isAllDay: boolean): Locator { + const cellClass = isAllDay ? CLASS.allDayTableCell : CLASS.dateTableCell; + + return this.element.locator(`.${cellClass}.${className}`); + } +} diff --git a/e2e/playwright/models/scheduler/navigator.ts b/e2e/playwright/models/scheduler/navigator.ts new file mode 100644 index 000000000000..171ed1f2f58b --- /dev/null +++ b/e2e/playwright/models/scheduler/navigator.ts @@ -0,0 +1,50 @@ +import type { Locator, Page } from '@playwright/test'; + +const CLASS = { + navigator: 'dx-scheduler-navigator', + nextButton: 'dx-scheduler-navigator-next', + prevButton: 'dx-scheduler-navigator-previous', + caption: 'dx-scheduler-navigator-caption', + calendar: 'dx-scheduler-navigator-calendar', + calendarViewsWrapper: 'dx-calendar-views-wrapper', + calendarCell: 'dx-calendar-cell', + calendarNextView: 'dx-calendar-navigator-next-view', + calendarPrevView: 'dx-calendar-navigator-previous-view', + widget: 'dx-widget', +}; + +export interface NavigatorCalendar { + element: Locator; + nextButton: Locator; + prevButton: Locator; + getCell: (index: number) => Locator; +} + +export default class Navigator { + public readonly element: Locator; + + public readonly nextButton: Locator; + + public readonly prevButton: Locator; + + public readonly caption: Locator; + + public readonly calendar: NavigatorCalendar; + + constructor(page: Page, toolbar: Locator) { + this.element = toolbar.locator(`.${CLASS.navigator}`); + this.nextButton = toolbar.locator(`.${CLASS.nextButton}`); + this.prevButton = toolbar.locator(`.${CLASS.prevButton}`); + this.caption = toolbar.locator(`.${CLASS.caption}`); + + const calendar = page.locator(`.${CLASS.calendar}`); + const view = calendar.locator(`.${CLASS.calendarViewsWrapper} .${CLASS.widget}`).first(); + + this.calendar = { + element: calendar, + nextButton: calendar.locator(`.${CLASS.calendarNextView}`), + prevButton: calendar.locator(`.${CLASS.calendarPrevView}`), + getCell: (index: number): Locator => view.locator(`.${CLASS.calendarCell}`).nth(index), + }; + } +} diff --git a/e2e/playwright/models/scheduler/toolbar.ts b/e2e/playwright/models/scheduler/toolbar.ts new file mode 100644 index 000000000000..0bc18c3656be --- /dev/null +++ b/e2e/playwright/models/scheduler/toolbar.ts @@ -0,0 +1,38 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect } from '@playwright/test'; +import { classMatcher } from '../internal/classMatcher'; +import Navigator from './navigator'; +import ViewSwitcher from './viewSwitcher'; + +const CLASS = { + toolbar: 'dx-scheduler-header', + todayButton: 'dx-scheduler-today', + menuButton: 'dx-toolbar-menu-container', + invisible: 'dx-state-invisible', +}; + +export default class Toolbar { + public readonly element: Locator; + + public readonly todayButton: Locator; + + public readonly menuButton: Locator; + + public readonly navigator: Navigator; + + public readonly viewSwitcher: ViewSwitcher; + + constructor(page: Page, scheduler: Locator) { + this.element = scheduler.locator(`.${CLASS.toolbar}`); + this.todayButton = this.element.locator(`.${CLASS.todayButton}`); + this.menuButton = this.element.locator(`.${CLASS.menuButton}`); + this.navigator = new Navigator(page, this.element); + this.viewSwitcher = new ViewSwitcher(page, this.element); + } + + public async expectInvisible(present = true): Promise { + const assertion = expect(this.element); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.invisible)); + } +} diff --git a/e2e/playwright/models/scheduler/viewSwitcher.ts b/e2e/playwright/models/scheduler/viewSwitcher.ts new file mode 100644 index 000000000000..34a873891ae4 --- /dev/null +++ b/e2e/playwright/models/scheduler/viewSwitcher.ts @@ -0,0 +1,30 @@ +import type { Locator, Page } from '@playwright/test'; +import Button from '../button'; +import { textMatcher } from '../internal/textMatcher'; + +const CLASS = { + viewSwitcher: 'dx-scheduler-view-switcher', + button: 'dx-button', +}; + +export default class ViewSwitcher { + public readonly element: Locator; + + private readonly page: Page; + + constructor(page: Page, toolbar: Locator) { + this.page = page; + this.element = toolbar.locator(`.${CLASS.viewSwitcher}`); + } + + public getButton(text: string): Button { + return new Button( + this.page, + this.element.locator(`.${CLASS.button}`).filter({ hasText: textMatcher(text) }), + ); + } + + public getDropDownButton(): Button { + return new Button(this.page, this.element.locator(`.${CLASS.button}`)); + } +} diff --git a/e2e/playwright/playwright.config.ts b/e2e/playwright/playwright.config.ts index 3380f840755b..1d789fd7d555 100644 --- a/e2e/playwright/playwright.config.ts +++ b/e2e/playwright/playwright.config.ts @@ -7,6 +7,10 @@ import { const baseURL = `http://localhost:${SERVER_PORT}`; const [width, height] = DEFAULT_BROWSER_SIZE; +const timezone = readEnv(process.env.TIMEZONE, 'GMT'); + +process.env.TZ = timezone; + // The budget follows the renderer, not the job: the agent and the local container draw the same // pixels, so both are judged strictly — including the UI mode, where an etalon gets rewritten by // hand and a lenient budget would let CI-breaking drift through. A host run stays lenient because @@ -23,6 +27,7 @@ export default defineConfig({ outputDir: './artifacts/test-results', fullyParallel: true, forbidOnly: !!process.env.CI, + retries: process.env.CI ? 1 : 0, workers: process.env.CI ? 8 : 4, reporter: process.env.CI ? [['list'], ['blob', { outputDir: './artifacts/blob-report' }]] @@ -36,7 +41,7 @@ export default defineConfig({ theme: readEnv(process.env.THEME, DEFAULT_THEME), // The TestCafe run changes the machine timezone on the CI agent; the browser context // takes it per run instead, so the same agent can serve any timezone job. - timezoneId: readEnv(process.env.TIMEZONE, 'GMT'), + timezoneId: timezone, baseURL, channel: 'chrome', headless: true, diff --git a/e2e/playwright/tests/common/pivotGrid/etalons/rows_do_not_overlap_data_fields_if_virtual_scrolling_enabled_T1210807 (material.blue.light).png b/e2e/playwright/tests/common/pivotGrid/etalons/rows_do_not_overlap_data_fields_if_virtual_scrolling_enabled_T1210807 (material.blue.light).png index 8dbedec2521d..75b144725de1 100644 Binary files a/e2e/playwright/tests/common/pivotGrid/etalons/rows_do_not_overlap_data_fields_if_virtual_scrolling_enabled_T1210807 (material.blue.light).png and b/e2e/playwright/tests/common/pivotGrid/etalons/rows_do_not_overlap_data_fields_if_virtual_scrolling_enabled_T1210807 (material.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/apiMocks/resourceApiMock.ts b/e2e/playwright/tests/scheduler/apiMocks/resourceApiMock.ts new file mode 100644 index 000000000000..c7166d049b87 --- /dev/null +++ b/e2e/playwright/tests/scheduler/apiMocks/resourceApiMock.ts @@ -0,0 +1,19 @@ +import type { MockedRequest } from '../../../helpers/apiMock'; + +export const resourceApiMock: MockedRequest[] = [{ + url: /\/api\/data/, + body: { + data: [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, + { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, + ], + }, +}]; diff --git a/e2e/playwright/tests/scheduler/common/a11y/contrast.spec.ts b/e2e/playwright/tests/scheduler/common/a11y/contrast.spec.ts new file mode 100644 index 000000000000..ed53195d9d9c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/a11y/contrast.spec.ts @@ -0,0 +1,24 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('a11y - contrast', () => { + // visual: generic.light + // visual: generic.dark + // visual: fluent.light + // visual: fluent.dark + test('Scheduler a11y: Insufficient contrast of day numbers in the MonthView', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: 'month', + currentDate: new Date(2020, 10, 25), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'month_day_number_contrast.png', { element: scheduler.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png new file mode 100644 index 000000000000..7ccaae785c1b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/adaptive.weekView.spec.ts b/e2e/playwright/tests/scheduler/common/adaptive.weekView.spec.ts new file mode 100644 index 000000000000..249622293789 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/adaptive.weekView.spec.ts @@ -0,0 +1,153 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const createScheduler = async (page: Page, data, width = '100%'): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: data, + views: ['week'], + currentView: 'week', + adaptivityEnabled: true, + currentDate: new Date(2017, 4, 25), + startDayHour: 9, + height: 600, + width, + }); +}; + +const sampleData = [ + { + text: 'Website Re-Design Plan', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'Website Re-Design Plan', + startDate: new Date(2017, 4, 22, 9, 40), + endDate: new Date(2017, 4, 22, 11, 40), + }, { + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date(2017, 4, 22, 12, 0), + endDate: new Date(2017, 4, 22, 13, 0), + allDay: true, + }, +]; + +const sampleDataNotRoundedMinutes = [ + { + text: 'Website Re-Design Plan', + startDate: new Date(2017, 4, 22, 9, 10), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'Website Re-Design Plan', + startDate: new Date(2017, 4, 23, 9, 5), + endDate: new Date(2017, 4, 23, 11, 40), + }, { + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date(2017, 4, 24, 12, 12), + endDate: new Date(2017, 4, 24, 13, 30), + }, +]; + +const EPSILON = 1.5; + +type RectProperty = 'left' | 'top' | 'bottom' | 'width'; + +const expectRoughEqual = async ( + locator: Locator, + property: RectProperty, + expected: number, +): Promise => { + await expect.poll( + async () => Math.abs( + await locator.evaluate((element, name) => element.getBoundingClientRect()[name], property) + - expected, + ), + { message: `${property} should be about ${expected}` }, + ).toBeLessThanOrEqual(EPSILON); +}; + +test.describe('Week view in adaptive mode', () => { + [{ + top: 623, + bottom: 700, + left: 0, + width: 350, + windowWidth: 350, + name: 'snap to bottom in phone', + }, { + top: 312, + bottom: 389, + left: 80, + width: 640, + windowWidth: 800, + name: 'align by center in tablet', + }].forEach(({ + windowWidth, name, left, bottom, top, width, + }) => { + test.describe(`${windowWidth}x700`, () => { + test.use({ theme: 'generic.light', browserSize: [windowWidth, 700] }); + + test(`Mobile tooltip should be ${name} screen`, async ({ page }) => { + await createScheduler(page, sampleData, '80%'); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.collectors.get(0).click(); + + const { mobileElement } = scheduler.appointmentTooltip; + + await expectRoughEqual(mobileElement, 'left', left); + await expectRoughEqual(mobileElement, 'bottom', bottom); + await expectRoughEqual(mobileElement, 'top', top); + await expectRoughEqual(mobileElement, 'width', width); + }); + }); + }); + + test.describe('350x600', () => { + test.use({ theme: 'generic.light', browserSize: [350, 600] }); + + test('Compact appointment should be center by vertical alignment', async ({ page }) => { + await createScheduler(page, sampleDataNotRoundedMinutes); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.appointments).toHaveCount(0); + await expect(scheduler.collectors.all).toHaveCount(3); + + await expectRoughEqual(scheduler.collectors.get(0).element, 'top', 150); + await expectRoughEqual(scheduler.collectors.get(0).element, 'left', 101); + await expectRoughEqual(scheduler.collectors.get(1).element, 'top', 150); + await expectRoughEqual(scheduler.collectors.get(1).element, 'left', 139); + await expectRoughEqual(scheduler.collectors.get(2).element, 'top', 450); + await expectRoughEqual(scheduler.collectors.get(2).element, 'left', 177); + }); + + test('With a large browser width, should be visible common appointment instead of a compact', async ({ page }) => { + await createScheduler(page, sampleData); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.appointments).toHaveCount(0); + await expect(scheduler.collectors.all).toHaveCount(2); + + await expectRoughEqual(scheduler.collectors.find('1').element, 'top', 138); + await expectRoughEqual(scheduler.collectors.find('1').element, 'left', 101); + await expectRoughEqual(scheduler.collectors.find('2').element, 'top', 250); + await expectRoughEqual(scheduler.collectors.find('2').element, 'left', 101); + + await page.setViewportSize({ width: 700, height: 600 }); + + await expect(scheduler.appointments).toHaveCount(1); + await expect(scheduler.collectors.all).toHaveCount(2); + + await expectRoughEqual(scheduler.collectors.get(0).element, 'top', 137.5); + await expectRoughEqual(scheduler.collectors.get(0).element, 'left', 215); + await expectRoughEqual(scheduler.collectors.get(1).element, 'top', 240); + await expectRoughEqual(scheduler.collectors.get(1).element, 'left', 239.5); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/API.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/API.spec.ts new file mode 100644 index 000000000000..ffe6fbbe0945 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/API.spec.ts @@ -0,0 +1,93 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Agenda:API', () => { + test('Html elements should be absent in Agenda view', async ({ page }) => { + const data = [{ + text: 'Website Re-Design Plan', + ownerId: [4, 1, 2], + roomId: [1, 2, 3], + priorityId: 2, + startDate: new Date('2021-05-24T16:30:00.000Z'), + endDate: new Date('2021-05-24T18:30:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY', + allDay: true, + }, { + text: 'Book Flights to San Fran for Sales Trip', + ownerId: 2, + roomId: 2, + priorityId: 1, + startDate: new Date('2021-05-24T19:00:00.000Z'), + endDate: new Date('2021-05-24T20:00:00.000Z'), + allDay: true, + }, { + text: 'Final Budget Review', + ownerId: 1, + roomId: 1, + priorityId: 1, + startDate: new Date('2021-05-25T19:00:00.000Z'), + endDate: new Date('2021-05-25T20:35:00.000Z'), + }, { + text: 'New Brochures', + ownerId: 4, + roomId: 3, + priorityId: 2, + startDate: new Date('2021-05-25T21:30:00.000Z'), + endDate: new Date('2021-05-25T22:45:00.000Z'), + }, { + text: 'Install New Database', + ownerId: 2, + roomId: 3, + priorityId: 1, + startDate: new Date('2021-05-26T16:45:00.000Z'), + endDate: new Date('2021-05-26T18:15:00.000Z'), + }, { + text: 'Approve New Online Marketing Strategy', + ownerId: 4, + roomId: 2, + priorityId: 1, + startDate: new Date('2021-05-26T19:00:00.000Z'), + endDate: new Date('2021-05-26T21:00:00.000Z'), + }, { + text: 'Upgrade Personal Computers', + ownerId: 2, + roomId: 2, + priorityId: 2, + startDate: new Date('2021-05-26T22:15:00.000Z'), + endDate: new Date('2021-05-26T23:30:00.000Z'), + }]; + + await createWidget(page, 'dxScheduler', { + dataSource: data, + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 4, 25), + showAllDayPanel: true, + crossScrollingEnabled: true, + focusStateEnabled: true, + height: 600, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.element.locator('.dx-scheduler-all-day-panel')).toHaveCount(0); + + await expect(scheduler.element.locator('.dx-scheduler-sidebar-scrollable')).toHaveCount(0); + + await expect(scheduler.workSpace) + .not.toHaveClass(classMatcher('dx-scheduler-work-space-both-scrollbar')); + + await expect(scheduler.element.locator('.dx-scheduler-date-table-cell').nth(0)).toHaveText(/^$/); + await expect(scheduler.element.locator('.dx-scheduler-date-table-cell').nth(1)).toHaveText(/^$/); + + await expect(scheduler.element.locator('.dx-scheduler-fixed-appointments')).toHaveCount(0); + + await expect(scheduler.element.locator('.dx-scheduler-header-panel')).toHaveCount(0); + + await expect(scheduler.workSpace).not.toHaveAttribute('tabindex'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/adaptive.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/adaptive.spec.ts new file mode 100644 index 000000000000..edf631c50a48 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/adaptive.spec.ts @@ -0,0 +1,74 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { ADAPTIVE_SIZE } from '../const'; + +const createScheduler = async ( + page: Page, + groups: undefined | string[], + rtlEnabled: boolean, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + priorityId: 2, + startDate: new Date(2021, 4, 21, 16, 30), + endDate: new Date(2021, 4, 21, 18, 30), + }, { + text: 'Approve Personal Computer Upgrade Plan', + priorityId: 2, + startDate: new Date(2021, 4, 21, 17), + endDate: new Date(2021, 4, 21, 18), + }, { + text: 'Install New Database', + priorityId: 1, + startDate: new Date(2021, 4, 21, 16), + endDate: new Date(2021, 4, 21, 19, 15), + }, { + text: 'Approve New Online Marketing Strategy', + priorityId: 1, + startDate: new Date(2021, 4, 21, 19), + endDate: new Date(2021, 4, 21, 21), + }], + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 4, 21), + rtlEnabled, + groups, + resources: [{ + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: [{ + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }], + label: 'Priority', + }], + }); +}; + +test.describe('Agenda:adaptive', () => { + test.use({ browserSize: ADAPTIVE_SIZE }); + + [false, true].forEach((rtlEnabled) => { + [{ + groups: undefined, + text: 'without-groups', + }, { + groups: ['priorityId'], + text: 'groups', + }].forEach((testCase) => { + test(`${testCase.text} (rtl=${rtlEnabled})`, async ({ page }) => { + await createScheduler(page, testCase.groups, rtlEnabled); + + await testScreenshot(page, `agenda-${testCase.text}-adaptive-rtl=${rtlEnabled}.png`); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/editing.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/editing.spec.ts new file mode 100644 index 000000000000..559a58fa6714 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/editing.spec.ts @@ -0,0 +1,85 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Agenda:Editing', () => { + test('It should be possible to delete an appointment', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'App 1', + startDate: new Date(2021, 1, 1, 12), + endDate: new Date(2021, 1, 1, 13), + }, { + text: 'App 2', + startDate: new Date(2021, 1, 2, 12), + endDate: new Date(2021, 1, 2, 13), + }, { + text: 'App 3', + startDate: new Date(2021, 1, 3, 12), + endDate: new Date(2021, 1, 3, 13), + }, { + text: 'App 4', + startDate: new Date(2021, 1, 4, 12), + endDate: new Date(2021, 1, 4, 13), + }], + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 1, 1), + height: 600, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('App 1').element.click(); + await scheduler.appointmentTooltip.deleteButton.click(); + await expect(scheduler.appointments).toHaveCount(3); + }); + + test('It should be possible to change the data source of agenda resources', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + text: 'New Brochures', + ownerId: [1], + startDate: new Date(2021, 1, 1, 18, 30), + endDate: new Date(2021, 1, 1, 21, 15), + }, { + text: 'Website Re-Design Plan', + ownerId: [2], + startDate: new Date(2021, 1, 1, 23, 45), + endDate: new Date(2021, 1, 2, 18, 15), + }, + ], + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 1, 1), + resources: [{ + fieldExpr: 'ownerId', + dataSource: [{ + text: 'Samantha Bright', + id: 1, + }, { + text: 'Todd Hoffman', + id: 2, + }, + ], + label: 'Owner', + }], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.getAppointmentByIndex(0).getResource('Owner')).toHaveText('Samantha Bright'); + await expect(scheduler.getAppointmentByIndex(1).getResource('Owner')).toHaveText('Todd Hoffman'); + + await scheduler.option('resources[0].dataSource', [{ + text: 'Todd Hoffman', + id: 2, + }]); + + await expect(scheduler.getAppointmentByIndex(0).getResource('Owner')).toHaveCount(0); + await expect(scheduler.getAppointmentByIndex(1).getResource('Owner')).toHaveText('Todd Hoffman'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png new file mode 100644 index 000000000000..6d4d54677c65 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png new file mode 100644 index 000000000000..eacc22f568d9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png new file mode 100644 index 000000000000..b8c2353d8579 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png new file mode 100644 index 000000000000..385026a8d3df Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png new file mode 100644 index 000000000000..d6ccdff5ff06 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png new file mode 100644 index 000000000000..cbce1cc56388 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png new file mode 100644 index 000000000000..bb3978080dc1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png new file mode 100644 index 000000000000..acfbdaa0ded5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png new file mode 100644 index 000000000000..d77fa71849f9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png new file mode 100644 index 000000000000..9654c4abb880 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png new file mode 100644 index 000000000000..cb618fb9b30e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png new file mode 100644 index 000000000000..ec5fee84fae7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png new file mode 100644 index 000000000000..5f1d070e01c5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/agenda/keyField.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/keyField.spec.ts new file mode 100644 index 000000000000..19cc94323bff --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/keyField.spec.ts @@ -0,0 +1,141 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const hasWarningCode = (message: string): boolean => message.startsWith('W1023'); + +const collectWarnings = (page: Page): string[] => { + const warnings: string[] = []; + + page.on('console', (message) => { + if (message.type() === 'warning') { + warnings.push(message.text()); + } + }); + + return warnings; +}; + +test.describe('Agenda:KeyField', () => { + ['week', 'agenda'].forEach((currentView) => { + test(`Warning should be thrown in console in case currentView='${currentView}'(T1100758)`, async ({ page }) => { + const warnings = collectWarnings(page); + + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week', 'agenda'], + currentView, + currentDate: new Date(2021, 2, 28), + height: 600, + }); + + await expect.poll(() => warnings.some(hasWarningCode)).toBe(true); + }); + }); + + test('Warning should be thrown in console after set new views(T1100758)', async ({ page }) => { + const warnings = collectWarnings(page); + + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + height: 600, + }); + + expect(warnings.some(hasWarningCode)).toBe(false); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + await scheduler.option('views', ['week', 'agenda']); + + await expect.poll(() => warnings.some(hasWarningCode)).toBe(true); + }); + + test('Warning shouldn\'t be thrown in console in case currentView=\'week\' if keyField exists(T1100758)', async ({ page }) => { + const warnings = collectWarnings(page); + + await createWidget(page, 'dxScheduler', () => { + const store = new (window as any).DevExpress.data.CustomStore({ + key: 'id', + load: () => [], + }); + + return { + dataSource: store, + views: ['week', 'agenda'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + height: 600, + }; + }); + + expect(warnings.some(hasWarningCode)).toBe(false); + }); + + test('Warning shouldn\'t be thrown in console in case currentView=\'agenda\' if keyField exists(T1100758)', async ({ page }) => { + const warnings = collectWarnings(page); + + await createWidget(page, 'dxScheduler', () => { + const store = new (window as any).DevExpress.data.CustomStore({ + key: 'id', + load: () => [], + }); + + return { + dataSource: store, + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 2, 28), + height: 600, + }; + }); + + expect(warnings.some(hasWarningCode)).toBe(false); + }); + + ['week', 'agenda'].forEach((currentView) => { + test(`Warning should be thrown in console in case currentView='${currentView}' if keyField not set in Store(T1100758)`, async ({ page }) => { + const warnings = collectWarnings(page); + + await createWidget(page, 'dxScheduler', (view: string) => ({ + dataSource: new (window as any).DevExpress.data.CustomStore({ + load: () => [], + }), + views: ['week', 'agenda'], + currentView: view, + currentDate: new Date(2021, 2, 28), + height: 600, + }), SCHEDULER_SELECTOR, { arg: currentView }); + + await expect.poll(() => warnings.some(hasWarningCode)).toBe(true); + }); + }); + + test('Wrong behavior: editing recurrence appointment does not affect to appointment\'s data source(T1100758)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Test', + startDate: new Date('2021-03-29T16:30:00.000Z'), + endDate: new Date('2021-03-29T18:30:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY', + }], + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 2, 28), + recurrenceEditMode: 'series', + height: 600, + }, SCHEDULER_SELECTOR); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Test').element.dblclick(); + await scheduler.appointmentPopup.textEditor.input.fill('Updated'); + await scheduler.appointmentPopup.saveButton.element.click(); + + await expect(scheduler.getAppointment('Updated').element).toBeAttached(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/layout.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/layout.spec.ts new file mode 100644 index 000000000000..787012e9a320 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/layout.spec.ts @@ -0,0 +1,173 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const data = [{ + text: 'Website Re-Design Plan', + ownerId: [4, 1, 2], + roomId: [1, 2, 3], + priorityId: 2, + startDate: new Date('2021-05-24T16:30:00.000Z'), + endDate: new Date('2021-05-24T18:30:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY', + allDay: true, +}, { + text: 'Book Flights to San Fran for Sales Trip', + ownerId: 2, + roomId: 2, + priorityId: 1, + startDate: new Date('2021-05-24T19:00:00.000Z'), + endDate: new Date('2021-05-24T20:00:00.000Z'), + allDay: true, +}, { + text: 'Final Budget Review', + ownerId: 1, + roomId: 1, + priorityId: 1, + startDate: new Date('2021-05-25T19:00:00.000Z'), + endDate: new Date('2021-05-25T20:35:00.000Z'), +}, { + text: 'New Brochures', + ownerId: 4, + roomId: 3, + priorityId: 2, + startDate: new Date('2021-05-25T21:30:00.000Z'), + endDate: new Date('2021-05-25T22:45:00.000Z'), +}, { + text: 'Install New Database', + ownerId: 2, + roomId: 3, + priorityId: 1, + startDate: new Date('2021-05-26T16:45:00.000Z'), + endDate: new Date('2021-05-26T18:15:00.000Z'), +}, { + text: 'Approve New Online Marketing Strategy', + ownerId: 4, + roomId: 2, + priorityId: 1, + startDate: new Date('2021-05-26T19:00:00.000Z'), + endDate: new Date('2021-05-26T21:00:00.000Z'), +}, { + text: 'Upgrade Personal Computers', + ownerId: 2, + roomId: 2, + priorityId: 2, + startDate: new Date('2021-05-26T22:15:00.000Z'), + endDate: new Date('2021-05-26T23:30:00.000Z'), +}]; + +const owners = [{ + text: 'Samantha Bright', + id: 1, + color: '#727bd2', +}, { + text: 'John Heart', + id: 2, + color: '#32c9ed', +}, { + text: 'Todd Hoffman', + id: 3, + color: '#2a7ee4', +}, { + text: 'Sandra Johnson', + id: 4, + color: '#7b49d3', +}]; + +const rooms = [{ + text: 'Room 1', + id: 1, + color: '#00af2c', +}, { + text: 'Room 2', + id: 2, + color: '#56ca85', +}, { + text: 'Room 3', + id: 3, + color: '#8ecd3c', +}]; + +const priorities = [{ + text: 'High priority', + id: 1, + color: '#cc5c53', +}, { + text: 'Low priority', + id: 2, + color: '#ff9747', +}]; + +const resourcesData = [{ + fieldExpr: 'roomId', + allowMultiple: true, + dataSource: rooms, + label: 'Room', +}, { + fieldExpr: 'priorityId', + allowMultiple: true, + dataSource: priorities, + label: 'Priority', +}, { + fieldExpr: 'ownerId', + allowMultiple: true, + dataSource: owners, + label: 'Owner', +}]; + +const createScheduler = async ( + page: Page, + rtlEnabled: boolean, + resources: undefined | any[], + groups: undefined | string[], +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: data, + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 4, 25), + resources, + rtlEnabled, + groups, + height: 600, + }); +}; + +test.describe('Agenda:layout', () => { + [false, true].forEach((rtlEnabled) => { + [undefined, resourcesData].forEach((resources) => { + test(`Agenda test layout(rtl=${rtlEnabled}, resources=${!!resources}`, async ({ page }) => { + await createScheduler(page, rtlEnabled, resources, undefined); + + await testScreenshot( + page, + `agenda-layout-rtl=${rtlEnabled}-resources=${!!resources}.png`, + ); + }); + }); + }); + + [false, true].forEach((rtlEnabled) => { + test(`Agenda test layout with groups(rtl=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, rtlEnabled, resourcesData, ['roomId']); + + await testScreenshot(page, `agenda-layout-groups-rtl=${rtlEnabled}.png`); + }); + }); + + test('Agenda test appointment state', async ({ page }) => { + await createScheduler(page, false, resourcesData, undefined); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Final Budget Review', 0).element.hover(); + await testScreenshot(page, 'agenda-layout-appointment-state-hover.png'); + + await scheduler.getAppointment('New Brochures', 0).element.click(); + await testScreenshot(page, 'agenda-layout-appointment-state-click.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/switchingToAgenda.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/switchingToAgenda.spec.ts new file mode 100644 index 000000000000..cb96001489d7 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/switchingToAgenda.spec.ts @@ -0,0 +1,29 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Agenda:view switching', () => { + test('View switching should work for empty agenda', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + startDate: new Date(2021, 4, 25, 0), + endDate: new Date(2021, 4, 25, 1), + text: 'Test Appointment', + }], + views: ['day', 'agenda'], + currentView: 'day', + currentDate: new Date(2021, 4, 25), + height: 600, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentDate', new Date(2021, 4, 26)); + await scheduler.option('currentView', 'agenda'); + + await testScreenshot(page, 'switch-to-agenda-without-appointments.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/agenda/tooltip.spec.ts b/e2e/playwright/tests/scheduler/common/agenda/tooltip.spec.ts new file mode 100644 index 000000000000..60b4cc956428 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/agenda/tooltip.spec.ts @@ -0,0 +1,36 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Agenda:Tooltip', () => { + test('Tooltip\'s date should be equal to date of current appointment(T1037028)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Text', + startDate: new Date(2021, 1, 1, 12), + endDate: new Date(2021, 1, 1, 13), + recurrenceRule: 'FREQ=HOURLY;COUNT=5', + }], + views: ['agenda'], + currentView: 'agenda', + currentDate: new Date(2021, 1, 1), + height: 600, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentName = 'Text'; + + for (let index = 0; index < 5; index += 1) { + await scheduler.hideAppointmentTooltip(); + + await scheduler.getAppointment(appointmentName, index).element.click(); + + const expectedDate = await scheduler.getAppointment(appointmentName, index).date.innerText(); + + await expect(scheduler.appointmentTooltip.getListItem(appointmentName, 0).date) + .toHaveText(expectedDate); + } + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/api/deleteRecurrence.spec.ts b/e2e/playwright/tests/scheduler/common/api/deleteRecurrence.spec.ts new file mode 100644 index 000000000000..09c96ac74ad7 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/api/deleteRecurrence.spec.ts @@ -0,0 +1,160 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { getThemeName } from '../../../../helpers/themeUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +type RectSide = 'left' | 'top'; + +const expectRectWithin = async ( + locator: Locator, + side: RectSide, + min: number, + max: number, +): Promise => { + const getSide = (): Promise => locator.evaluate( + (element, name) => element.getBoundingClientRect()[name], + side, + ); + + await expect.poll(getSide).toBeGreaterThanOrEqual(min); + await expect.poll(getSide).toBeLessThanOrEqual(max); +}; + +test.describe('Scheduler API - deleteRecurrence', () => { + test('should delete recurrent appointment if mode is "series"', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + width: 800, + height: 600, + views: [{ + type: 'day', + intervalCount: 3, + }], + currentView: 'day', + currentDate: new Date(2022, 3, 12), + startDayHour: 8, + endDayHour: 13, + onAppointmentDeleting: (e) => { + e.component.deleteRecurrence( + e.appointmentData, + e.targetedAppointmentData.startDate, + 'series', + ); + + e.cancel = true; + }, + dataSource: [{ + text: 'test-appt', + startDate: new Date(2022, 3, 12, 8), + endDate: new Date(2022, 3, 12, 9), + apptColor: 1, + recurrenceRule: 'FREQ=DAILY;COUNT=4', + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment('test-appt'); + const { appointmentTooltip } = scheduler; + + await appointment.element.click(); + await expect(appointmentTooltip.anyElement.first()).toBeAttached(); + await appointmentTooltip.deleteButton.click(); + await expect(scheduler.appointments).toHaveCount(0); + }); + + test('should exclude from recurrence if mode is "occurrence"', async ({ page, theme }) => { + await createWidget(page, 'dxScheduler', () => ({ + width: 800, + height: 600, + views: [{ + type: 'day', + intervalCount: 3, + }], + currentView: 'day', + currentDate: new Date(2022, 3, 12), + startDayHour: 8, + endDayHour: 12, + onAppointmentDeleting: (e) => { + e.component.deleteRecurrence( + e.appointmentData, + e.targetedAppointmentData.startDate, + 'occurrence', + ); + + e.cancel = true; + }, + dataSource: [{ + text: 'test-appt', + startDate: new Date(2022, 3, 12, 8), + endDate: new Date(2022, 3, 12, 9), + apptColor: 1, + recurrenceRule: 'FREQ=DAILY;COUNT=4', + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment0 = scheduler.getAppointment('test-appt', 0); + const appointment1 = scheduler.getAppointment('test-appt', 1); + const { appointmentTooltip } = scheduler; + + await appointment0.element.click(); + await expect(appointmentTooltip.anyElement.first()).toBeAttached(); + await appointmentTooltip.deleteButton.click(); + await expect(scheduler.appointments).toHaveCount(2); + + const isFluentNext = getThemeName(theme) === 'fluent-next'; + + await expectRectWithin(appointment0.element, 'left', isFluentNext ? 317 : 318, isFluentNext ? 318 : 319); + await expectRectWithin(appointment0.element, 'top', isFluentNext ? 142 : 140, isFluentNext ? 143 : 141); + + await expectRectWithin(appointment1.element, 'left', 562, 563); + await expectRectWithin(appointment1.element, 'top', isFluentNext ? 142 : 140, isFluentNext ? 143 : 141); + }); + + test('should show delete recurrence dialog if mode is "dialog"', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + width: 800, + height: 600, + views: [{ + type: 'day', + intervalCount: 3, + }], + currentView: 'day', + currentDate: new Date(2022, 3, 12), + startDayHour: 8, + endDayHour: 13, + onAppointmentDeleting: (e) => { + e.component.deleteRecurrence( + e.appointmentData, + e.targetedAppointmentData.startDate, + 'dialog', + ); + + e.cancel = true; + }, + dataSource: [{ + text: 'test-appt', + startDate: new Date(2022, 3, 12, 8), + endDate: new Date(2022, 3, 12, 9), + apptColor: 1, + recurrenceRule: 'FREQ=DAILY;COUNT=4', + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment('test-appt'); + const { appointmentTooltip } = scheduler; + const deleteRecurrenceDialog = scheduler.getDeleteRecurrenceDialog(); + + await appointment.element.click(); + await appointmentTooltip.expectVisible(); + await expect(appointmentTooltip.deleteButton).toBeVisible(); + await appointmentTooltip.deleteButton.click(); + await expect(deleteRecurrenceDialog.appointment).toBeVisible(); + await expect(scheduler.appointments).toHaveCount(3); + await deleteRecurrenceDialog.appointment.click({ force: true }); + await expect(scheduler.appointments).toHaveCount(2); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/api/resourceRequestCount.spec.ts b/e2e/playwright/tests/scheduler/common/api/resourceRequestCount.spec.ts new file mode 100644 index 000000000000..be86f56d9ecc --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/api/resourceRequestCount.spec.ts @@ -0,0 +1,195 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { mockApi } from '../../../../helpers/apiMock'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; +import { resourceApiMock } from '../../apiMocks/resourceApiMock'; + +const SCHEDULER_SELECTOR = '#container'; +const RESOURCE_PATH = '/api/data'; +// No event marks the end of the resource loading, so an extra request needs time to go out. +const REQUESTS_SETTLE_TIMEOUT = 300; + +const logResourceRequests = (page: Page): { count: number } => { + const requestLogger = { count: 0 }; + + page.on('request', (request) => { + if (request.method() !== 'OPTIONS' && request.url().includes(RESOURCE_PATH)) { + requestLogger.count += 1; + } + }); + + return requestLogger; +}; + +test.describe('Scheduler API - request counting', () => { + test('Request should be requested only once for color appointments (week)', async ({ page }) => { + const requestLogger = logResourceRequests(page); + + await mockApi(page, resourceApiMock); + await createWidget(page, 'dxScheduler', () => ({ + currentDate: new Date(2015, 6, 10), + views: ['week'], + currentView: 'week', + resources: [{ + field: 'ownerId', + dataSource: (window as any).DevExpress.data.AspNet.createStore({ + key: 'id', + loadUrl: 'https://api/data', + }), + }], + dataSource: [{ + text: 'a', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: 1, + }, { + text: 'b', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: 2, + }, { + text: 'c', + startDate: new Date(2015, 6, 10, 2), + endDate: new Date(2015, 6, 10, 2, 30), + ownerId: 1, + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.workSpace).toBeAttached(); + await page.waitForTimeout(REQUESTS_SETTLE_TIMEOUT); + + const initialRequestCount = requestLogger.count; + + expect(initialRequestCount).toBe(1); + }); + + test('Request should be requested only once for color appointments (agenda)', async ({ page }) => { + const requestLogger = logResourceRequests(page); + + await mockApi(page, resourceApiMock); + await createWidget(page, 'dxScheduler', () => ({ + currentDate: new Date(2015, 6, 10), + views: ['agenda'], + currentView: 'agenda', + resources: [{ + field: 'ownerId', + dataSource: (window as any).DevExpress.data.AspNet.createStore({ + key: 'id', + loadUrl: 'https://api/data', + }), + }], + dataSource: [{ + text: 'a', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: 1, + }, { + text: 'b', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: 2, + }, { + text: 'c', + startDate: new Date(2015, 6, 10, 2), + endDate: new Date(2015, 6, 10, 2, 30), + ownerId: 1, + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.workSpace).toBeAttached(); + await page.waitForTimeout(REQUESTS_SETTLE_TIMEOUT); + + const initialRequestCount = requestLogger.count; + + expect(initialRequestCount).toBe(1); + }); + + test('Request should be requested only once for grouping', async ({ page }) => { + const requestLogger = logResourceRequests(page); + + await mockApi(page, resourceApiMock); + await createWidget(page, 'dxScheduler', () => ({ + currentDate: new Date(2015, 6, 10), + dataSource: [], + resources: [{ + field: 'ownerId', + dataSource: (window as any).DevExpress.data.AspNet.createStore({ + key: 'id', + loadUrl: 'https://api/data', + }), + }, { + field: 'roomId', + dataSource: (window as any).DevExpress.data.AspNet.createStore({ + key: 'id', + loadUrl: 'https://api/data', + }), + }], + groups: ['ownerId'], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.workSpace).toBeAttached(); + await page.waitForTimeout(REQUESTS_SETTLE_TIMEOUT); + + const initialRequestCount = requestLogger.count; + + await scheduler.option('groups', ['ownerId', 'roomId']); + await page.waitForTimeout(REQUESTS_SETTLE_TIMEOUT); + + const afterUpdateRequestCount = requestLogger.count; + + expect(initialRequestCount).toBe(1); + expect(afterUpdateRequestCount).toBe(2); + }); + + test('should be no requests for no grouping and appointments without color', async ({ page }) => { + const requestLogger = logResourceRequests(page); + + await mockApi(page, resourceApiMock); + await createWidget(page, 'dxScheduler', () => ({ + currentDate: new Date(2015, 6, 10), + currentView: 'week', + resources: [{ + field: 'ownerId', + dataSource: (window as any).DevExpress.data.AspNet.createStore({ + key: 'id', + loadUrl: 'https://api/data', + }), + }], + dataSource: [{ + text: 'a', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + }, { + text: 'b', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + }, { + text: 'c', + startDate: new Date(2015, 6, 10, 2), + endDate: new Date(2015, 6, 10, 2, 30), + }], + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.workSpace).toBeAttached(); + await page.waitForTimeout(REQUESTS_SETTLE_TIMEOUT); + + const initialRequestCount = requestLogger.count; + + expect(initialRequestCount).toBe(0); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png new file mode 100644 index 000000000000..6cc3a7c0ed4a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png new file mode 100644 index 000000000000..f5dbfa3fb079 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png new file mode 100644 index 000000000000..21a960c45c8d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png new file mode 100644 index 000000000000..6342686a920e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png new file mode 100644 index 000000000000..7a2f59f3e8b3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png new file mode 100644 index 000000000000..9f705674144c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png new file mode 100644 index 000000000000..d0ebc73cf586 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png new file mode 100644 index 000000000000..ddab8370a71b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png new file mode 100644 index 000000000000..79913697e81f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png new file mode 100644 index 000000000000..d22c08faa7b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png new file mode 100644 index 000000000000..b7961bd643f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png new file mode 100644 index 000000000000..95fd8157cfbf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png new file mode 100644 index 000000000000..10fd96031475 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png new file mode 100644 index 000000000000..50c76a7b5d04 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png new file mode 100644 index 000000000000..2fad6380e5e6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png new file mode 100644 index 000000000000..7cbb379f68d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png new file mode 100644 index 000000000000..52fa3d88966f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png new file mode 100644 index 000000000000..05e832e6fc6b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png new file mode 100644 index 000000000000..1dafb1384e5d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png new file mode 100644 index 000000000000..9edeff5cd2a1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png new file mode 100644 index 000000000000..2d9fe2e80612 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png new file mode 100644 index 000000000000..dc7f9149baf6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png new file mode 100644 index 000000000000..6260a71916f1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png new file mode 100644 index 000000000000..b19b36bfc458 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png new file mode 100644 index 000000000000..f92bed761a7e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png new file mode 100644 index 000000000000..2fe34441f030 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png new file mode 100644 index 000000000000..ce2ad6156697 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/form.functional.spec.ts b/e2e/playwright/tests/scheduler/common/appointmentForm/form.functional.spec.ts new file mode 100644 index 000000000000..80203a16a82c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointmentForm/form.functional.spec.ts @@ -0,0 +1,152 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +interface Rect { + width: number; + height: number; + top: number; + left: number; +} + +const getBoundingClientRect = (element: Locator): Promise => element.evaluate((node) => { + const { + width, height, top, left, + } = node.getBoundingClientRect(); + + return { + width, height, top, left, + }; +}); + +const roughEqualClientBoundingRect = (a: Rect, b: Rect): boolean => ( + Math.abs(a.width - b.width) < 1 + && Math.abs(a.height - b.height) < 1 + && Math.abs(a.top - b.top) < 1 + && Math.abs(a.left - b.left) < 1 +); + +test.describe('Appointment Form: Functional', () => { + test('Subject text editor should have focus after returning from recurrence form', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, true); + + await appointmentPopup.clickRecurrenceSettingsButton(); + + await appointmentPopup.recurrence.backButton.click(); + + await expect(appointmentPopup.textEditor.input).toBeFocused(); + }); + + test('Recurrence start date editor should have focus after opening recurrence settings', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, true); + + await appointmentPopup.clickRecurrenceSettingsButton(); + + await expect(appointmentPopup.recurrence.startDateInput).toBeFocused(); + }); + + test('Popup should not change dimensions when switching groups and recurrence group height is larger', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + editing: { + form: { + items: [ + { + name: 'mainGroup', + items: ['repeatGroup'], + }, + 'recurrenceGroup', + ], + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { contentElement } = scheduler.appointmentPopup; + + await scheduler.openAppointmentPopup(); + const boundingClientRect1 = await getBoundingClientRect(contentElement); + + await scheduler.appointmentPopup.selectRepeatValue('Weekly'); + const boundingClientRect2 = await getBoundingClientRect(contentElement); + + await scheduler.appointmentPopup.recurrence.backButton.click(); + const boundingClientRect3 = await getBoundingClientRect(contentElement); + + expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect2)).toBe(true); + expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect3)).toBe(true); + }); + + test('Popup should not change dimensions when switching groups and main group height is larger', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + editing: { + form: { + items: [ + 'mainGroup', + { + name: 'recurrenceGroup', + items: ['recurrenceStartDateGroup'], + }, + ], + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { contentElement } = scheduler.appointmentPopup; + + await scheduler.openAppointmentPopup(); + const boundingClientRect1 = await getBoundingClientRect(contentElement); + + await scheduler.appointmentPopup.selectRepeatValue('Weekly'); + const boundingClientRect2 = await getBoundingClientRect(contentElement); + + await scheduler.appointmentPopup.recurrence.backButton.click(); + const boundingClientRect3 = await getBoundingClientRect(contentElement); + + expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect2)).toBe(true); + expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect3)).toBe(true); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/form.visual.spec.ts b/e2e/playwright/tests/scheduler/common/appointmentForm/form.visual.spec.ts new file mode 100644 index 000000000000..25c7718d38fe --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointmentForm/form.visual.spec.ts @@ -0,0 +1,340 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Popup from '../../../../models/popup'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const getResources = (withIcons = false) => ([ + { + fieldExpr: 'assigneeId', + allowMultiple: true, + label: 'Assignee', + dataSource: [ + { text: 'Samantha Bright', id: 1, color: '#727bd2' }, + { text: 'John Heart', id: 2, color: '#32c9ed' }, + { text: 'Todd Hoffman', id: 3, color: '#2a7ee4' }, + { text: 'Sandra Johnson', id: 4, color: '#7b49d3' }, + ], + icon: withIcons ? 'user' : undefined, + }, + { + fieldExpr: 'roomId', + label: 'Room', + dataSource: [ + { text: 'Room 1', id: 1, color: '#00af2c' }, + ], + icon: withIcons ? 'conferenceroomfilled' : undefined, + }, + { + fieldExpr: 'priorityId', + label: 'Priority', + dataSource: [ + { text: 'High', id: 1, color: '#cc5c53' }, + ], + icon: withIcons ? 'tags' : undefined, + }, +]); + +test.describe('Appointment Form: Main Form', () => { + test.use({ browserSize: [1500, 1500] }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + [ + { isRecurringAppointment: false, isAllDay: true }, + { isRecurringAppointment: false, isAllDay: false }, + { isRecurringAppointment: true, isAllDay: true }, + { isRecurringAppointment: true, isAllDay: false }, + ].forEach(({ isRecurringAppointment, isAllDay }) => { + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: isAllDay, + recurrenceRule: isRecurringAppointment ? 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10' : undefined, + assigneeId: [1, 2], + roomId: 1, + priorityId: 1, + }; + + test(`appointment main form (recurring=${isRecurringAppointment},allDay=${isAllDay})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [appointment], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup( + appointment, + isRecurringAppointment, + ); + + await testScreenshot( + page, + `scheduler__appointment__main-form (recurring=${isRecurringAppointment},allDay=${isAllDay}).png`, + { element: appointmentPopup.contentElement }, + ); + }); + + test(`appointment main form with resources and timezones (recurring=${isRecurringAppointment},allDay=${isAllDay})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [appointment], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(), + editing: { + allowTimeZoneEditing: true, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup( + appointment, + isRecurringAppointment, + ); + + await testScreenshot( + page, + `scheduler__appointment__main-form__with-resources-and-timezones (recurring=${isRecurringAppointment},allDay=${isAllDay}).png`, + { element: appointmentPopup.contentElement }, + ); + }); + }); + + test('main form with resources that have icons', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(true), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + assigneeId: [1, 2], + roomId: 1, + priorityId: 1, + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__with-resources-with-icons.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test('appointment form readonly state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(), + editing: { + allowUpdating: false, + allowTimeZoneEditing: true, + }, + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + assigneeId: [1, 2], + roomId: 1, + priorityId: 1, + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__readonly.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test.describe(() => { + test.use({ browserSize: [450, 1000] }); + + test('main form on mobile screen', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(true), + editing: { + form: { + iconsShowMode: 'both', + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.openAppointmentPopup(undefined, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__mobile.png', + ); + }); + }); + + test('main form without icons', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(true), + editing: { + form: { + iconsShowMode: 'none', + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(undefined, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__icons-mode-none.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test('appointment form resource with multiple selection', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(true), + editing: { + allowUpdating: true, + }, + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + assigneeId: [1, 2, 3, 4], + roomId: 1, + priorityId: 1, + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__resource-with-multiple-selection.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test('appointment main form with opened startDate calendar', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + + await appointmentPopup.startDateEditor.element.locator('.dx-dropdowneditor-button').click(); + + const calendarPopup = new Popup(page, appointmentPopup.startDateEditor.element.locator('.dx-popup')); + await expect.poll(() => calendarPopup.isVisible()).toBe(true); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__startDate-calendar-opened.png', + ); + }); + + test('Recurrence settings button should have correct focus state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + allDay: false, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, true); + + await appointmentPopup.repeatEditor.element.click(); + await page.keyboard.press('Tab'); + + await testScreenshot( + page, + 'scheduler__appointment__recurrence-settings-button__focus-state.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test('appointment form with labelMode=static', { + tag: ['@generic.light', '@material.blue.light', '@fluent.blue.light'], + }, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + resources: getResources(true), + editing: { + allowUpdating: true, + form: { + labelMode: 'static', + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(undefined, false); + + await testScreenshot( + page, + 'scheduler__appointment__main-form__with-labelMode-static.png', + { element: appointmentPopup.contentElement }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointmentForm/recurrence-form.visual.spec.ts b/e2e/playwright/tests/scheduler/common/appointmentForm/recurrence-form.visual.spec.ts new file mode 100644 index 000000000000..efa88ca8119f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointmentForm/recurrence-form.visual.spec.ts @@ -0,0 +1,201 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { mockDate } from '../../../../helpers/mockDate'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Appointment Form: Recurrence Form', () => { + // The recurrence editors default to today's date; a strict comparison fails on every new day. + test.beforeEach(async ({ page }) => { + await mockDate(page, '2024-01-01T12:00:00'); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + ['Hourly', 'Daily', 'Weekly', 'Monthly', 'Yearly'].forEach((frequency) => { + test(`recurrence form in ${frequency} frequency`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2024, 0, 1), + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2024-01-01T10:00:00'), + endDate: new Date('2024-01-01T11:00:00'), + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + + await appointmentPopup.selectRepeatValue(frequency); + + await testScreenshot( + page, + `scheduler__appointment__recurrence-form__${frequency.toLowerCase()}.png`, + { element: appointmentPopup.contentElement }, + ); + }); + }); + + test('recurrence form with icons', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + editing: { + form: { + iconsShowMode: 'both', + }, + }, + }); + + const appointment = { + text: 'Appointment', + startDate: new Date('2021-04-26T16:30:00.000Z'), + endDate: new Date('2021-04-26T18:30:00.000Z'), + assigneeId: [1, 2], + roomId: 1, + priorityId: 1, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=1', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, true); + await appointmentPopup.clickRecurrenceSettingsButton(); + + await testScreenshot( + page, + 'scheduler__appointment__recurrence-form__with-icons.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test('recurrence form readonly state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2024, 0, 1), + editing: { + allowUpdating: false, + }, + }); + + const appointment = { + text: 'Readonly Recurrent Appointment', + startDate: new Date('2024-01-01T10:00:00'), + endDate: new Date('2024-01-01T11:00:00'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, false); + await appointmentPopup.clickRecurrenceSettingsButton(); + + await testScreenshot( + page, + 'scheduler__appointment__recurrence-form__readonly.png', + { element: appointmentPopup.contentElement }, + ); + }); + + test.describe(() => { + test.use({ browserSize: [450, 1000] }); + + test('recurrence form on mobile screen', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + editing: { + form: { + iconsShowMode: 'both', + }, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const appointmentPopup = await scheduler.openAppointmentPopup(undefined, false); + await appointmentPopup.selectRepeatValue('Weekly'); + + await testScreenshot( + page, + 'scheduler__appointment__recurrence-form__mobile.png', + ); + }); + }); + + test.describe(() => { + test.use({ browserSize: [1500, 1500] }); + + test('recurrence form with labelMode=static', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 25), + editing: { + allowUpdating: true, + popup: { + width: 420, + height: 500, + }, + form: { + iconsShowMode: 'both', + labelMode: 'static', + items: [ + 'mainGroup', + { + name: 'recurrenceGroup', + items: [ + 'recurrenceStartDateGroup', + 'recurrenceRuleGroup', + { + name: 'recurrenceEndGroup', + items: [ + 'recurrenceEndIcon', + { + name: 'recurrenceEndEditor', + label: { + visible: true, + location: 'top', + }, + }, + ], + }, + ], + }, + ], + }, + }, + }); + + const appointment = { + text: 'Readonly Recurrent Appointment', + startDate: new Date('2024-01-01T10:00:00'), + endDate: new Date('2024-01-01T11:00:00'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10', + }; + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointmentPopup = await scheduler.openAppointmentPopup(appointment, true); + + await appointmentPopup.clickRecurrenceSettingsButton(); + + await testScreenshot( + page, + 'scheduler__appointment__recurrence-form__with-labelMode-static.png', + { element: appointmentPopup.contentElement }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointmentOverlapping/basic.spec.ts b/e2e/playwright/tests/scheduler/common/appointmentOverlapping/basic.spec.ts new file mode 100644 index 000000000000..6ca96d28b3fe --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointmentOverlapping/basic.spec.ts @@ -0,0 +1,122 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { getThemeName } from '../../../../helpers/themeUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SIMPLE_DATA = [ + { + text: 'Appointment 1', + startDate: new Date(2017, 4, 24, 13, 0), + endDate: new Date(2017, 4, 25, 12, 30), + }, + { + text: 'Appointment 2', + startDate: new Date(2017, 4, 24, 15, 0), + endDate: new Date(2017, 4, 24, 16, 30), + }, + { + text: 'Appointment 3', + startDate: new Date(2017, 4, 25, 9, 0), + endDate: new Date(2017, 4, 25, 10, 30), + }, + { + text: 'Appointment 4', + startDate: new Date(2017, 4, 25, 11, 0), + endDate: new Date(2017, 4, 25, 12, 30), + }, + { + text: 'Appointment 5', + startDate: new Date(2017, 4, 25, 11, 0), + endDate: new Date(2017, 4, 25, 12, 0), + allDay: true, + }, +]; + +const ALL_DAY_DATA = [ + { + text: 'Appointment 1', + startDate: new Date(2017, 4, 21, 9, 0), + endDate: new Date(2017, 4, 24, 10, 30), + allDay: true, + }, + { + text: 'Appointment 2', + startDate: new Date(2017, 4, 22, 11, 0), + endDate: new Date(2017, 4, 22, 12, 0), + allDay: true, + }, + { + text: 'Appointment 3', + startDate: new Date(2017, 4, 25, 9, 0), + endDate: new Date(2017, 4, 25, 10, 30), + }, + { + text: 'Appointment 4', + startDate: new Date(2017, 4, 25, 11, 0), + endDate: new Date(2017, 4, 25, 12, 0), + allDay: true, + }, +]; + +const SCHEDULER_DEFAULT_OPTIONS = { + views: ['week'], + width: 940, + currentView: 'week', + currentDate: new Date(2017, 4, 25), + startDayHour: 9, + height: 900, +}; + +const getTop = (element: Locator): Promise => element + .evaluate((node) => node.getBoundingClientRect().top); + +test.describe('Appointment overlapping in Scheduler', () => { + test('Multi-day appointment should not overlap other appointments when specific width is set, \'auto\' mode (T864456)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...SCHEDULER_DEFAULT_OPTIONS, + dataSource: SIMPLE_DATA, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment 1', 1); + + await expect(scheduler.collectors.all).toHaveCount(3); + + await expect(appointment.element).toHaveCSS('height', /^266(\.\d+)?px$/); + + await expect(appointment.element).toHaveCSS('width', /^94(\.\d+)?px$/); + }); + + test('Simple appointment should not overlap allDay appointment when specific width is set, \'auto\' mode (T864456)', async ({ page, theme }) => { + await createWidget(page, 'dxScheduler', { + ...SCHEDULER_DEFAULT_OPTIONS, + dataSource: ALL_DAY_DATA, + }); + + const scheduler = new Scheduler(page, '#container'); + const { element } = scheduler.getAppointment('Appointment 4'); + + await expect(scheduler.collectors.all).toHaveCount(1); + await expect.poll(() => getTop(element)) + .toBe(getThemeName(theme) === 'fluent-next' ? 140.828125 : 138.828125); + }); + + test.describe(() => { + test.use({ theme: 'generic.light' }); + + test('Crossing allDay appointments should not overlap each other (T893674)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...SCHEDULER_DEFAULT_OPTIONS, + dataSource: ALL_DAY_DATA, + }); + + const scheduler = new Scheduler(page, '#container'); + const firstAppointment = scheduler.getAppointment('Appointment 1'); + const secondAppointment = scheduler.getAppointment('Appointment 2'); + + expect(await getTop(firstAppointment.element)) + .not.toBe(await getTop(secondAppointment.element)); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/T1017889.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/T1017889.spec.ts new file mode 100644 index 000000000000..e84042f753fa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/T1017889.spec.ts @@ -0,0 +1,30 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; + +test.describe('Timeline Appointments', () => { + test('all-day and ordinary appointments should overlap each other correctly in timeline views (T1017889)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Google AdWords Strategy', + startDate: new Date(2021, 1, 1, 10), + endDate: new Date(2021, 1, 1, 11), + allDay: true, + }, { + text: 'Brochure Design Review', + startDate: new Date(2021, 1, 1, 11, 30), + endDate: new Date(2021, 1, 1, 12, 30), + }], + views: ['timelineWeek'], + currentView: 'timelineWeek', + currentDate: new Date(2021, 1, 1), + firstDayOfWeek: 1, + startDayHour: 10, + endDayHour: 20, + cellDuration: 60, + height: 580, + }); + + await testScreenshot(page, 'timeline-overlapping-appointments.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/adaptive.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/adaptive.spec.ts new file mode 100644 index 000000000000..99f0f8a05ad8 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/adaptive.spec.ts @@ -0,0 +1,141 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const MOBILE_SIZE: [width: number, height: number] = [500, 700]; + +test.describe('Appointments with adaptive', () => { + test.use({ browserSize: MOBILE_SIZE }); + + ['week', 'month'].forEach((view) => { + test(`should correctly render appointment collectors (view:${view})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2023-12-20T10:00:00', + endDate: '2024-01-20T12:00:00', + allDay: true, + text: 'all-day #0 (long)', + }, + { + startDate: '2023-12-31T10:00:00', + endDate: '2024-01-06T12:00:00', + allDay: true, + text: 'all-day #1 (week-long)', + }, + { + startDate: '2024-01-01T10:00:00', + endDate: '2024-01-05T12:00:00', + allDay: true, + text: 'all-day #2', + }, + { + startDate: '2024-01-02T10:00:00', + endDate: '2024-01-04T12:00:00', + allDay: true, + text: 'all-day #3', + }, + { + startDate: '2024-01-03T10:00:00', + endDate: '2024-01-03T12:00:00', + allDay: true, + text: 'all-day #4 (single-day)', + }, + { + startDate: '2024-12-30T10:00:00', + endDate: '2024-01-20T12:00:00', + text: 'usual #0 (long)', + }, + { + startDate: '2024-01-03T01:30:00', + endDate: '2024-01-03T22:00:00', + text: 'usual #1 (day-long)', + }, + { + startDate: '2024-01-03T01:30:00', + endDate: '2024-01-03T02:30:00', + text: 'usual #2 (short)', + }, + { + startDate: '2024-01-03T02:30:00', + endDate: '2024-01-03T22:00:00', + text: 'usual #3 (day-long)', + }, + ], + adaptivityEnabled: true, + currentView: 'week', + currentDate: '2024-01-01T00:00:00', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `adaptive_appts_view-${view}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + + test('should correctly render long appointments with disabled allDayPanel ()', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2023-12-20T00:00:00', + endDate: '2024-01-20T02:00:00', + text: '#0 (long)', + }, + { + startDate: '2023-12-31T00:00:00', + endDate: '2024-01-06T02:00:00', + text: '#1 (week-long)', + }, + { + startDate: '2024-01-01T00:00:00', + endDate: '2024-01-05T02:00:00', + text: '#2', + }, + { + startDate: '2024-01-02T00:00:00', + endDate: '2024-01-04T02:00:00', + text: '#3', + }, + { + startDate: '2024-01-03T00:00:00', + endDate: '2024-01-03T02:00:00', + text: '#4 (single-day)', + }, + { + startDate: '2024-01-03T01:30:00', + endDate: '2024-01-03T22:00:00', + text: '#5', + }, + { + startDate: '2024-01-03T01:30:00', + endDate: '2024-01-03T02:30:00', + text: '#6', + }, + { + startDate: '2024-01-03T02:30:00', + endDate: '2024-01-03T22:00:00', + text: '#7', + }, + ], + adaptivityEnabled: true, + allDayPanelMode: 'hidden', + showAllDayPanel: false, + currentView: 'week', + currentDate: '2024-01-01T00:00:00', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + 'adaptive_long-appts-without-all-day-panel_view-week.png', + { element: scheduler.workSpace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/allDay.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/allDay/allDay.spec.ts new file mode 100644 index 000000000000..846607558563 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/allDay/allDay.spec.ts @@ -0,0 +1,106 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const data = [{ + text: '0', + startDate: new Date(2021, 3, 1), + endDate: new Date(2021, 3, 4), +}, { + text: '1', + startDate: new Date(2021, 3, 2), + endDate: new Date(2021, 3, 5, 0, 0, 1), +}, { + text: '2', + startDate: new Date(2021, 3, 2, 1), + endDate: new Date(2021, 3, 4, 23, 59), +}, { + text: '3 - Skip', + startDate: new Date(2021, 3, 3), + endDate: new Date(2021, 3, 4, 23, 59, 59), +}]; + +test.describe('Scheduler - All day appointments', () => { + test('it should skip weekend days in workWeek', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + dataSource: data, + views: [{ + type: 'workWeek', + intervalCount: 2, + startDate: new Date(2021, 2, 4), + }], + maxAppointmentsPerCell: 'unlimited', + currentView: 'workWeek', + currentDate: new Date(2021, 3, 5), + height: 300, + }, + ); + + await testScreenshot(page, 'workweek_all-day_appointments_skip_weekend.png'); + }); + + test('it should skip weekend days in timelineWorkWeek', async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-cell-sizes-horizontal { width: 4px; }'); + + await createWidget( + page, + 'dxScheduler', + { + width: 970, + height: 300, + dataSource: data, + cellDuration: 60, + views: [{ + type: 'timelineWorkWeek', + intervalCount: 2, + }], + maxAppointmentsPerCell: 'unlimited', + currentView: 'timelineWorkWeek', + currentDate: new Date(2021, 3, 2), + }, + ); + + await testScreenshot(page, 'timeline-work-week_all-day_appointments_skip_weekend.png'); + }); + + test('should work correctly for unsorted dataSource', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + dataSource: [{ + id: 3, + text: '3', + startDate: new Date('2020-11-23T00:00:00.000'), + endDate: new Date('2020-11-28T00:00:00.000'), + allDay: true, + }, { + id: 5, + text: '5', + startDate: new Date('2020-11-27T00:00:00.000'), + endDate: new Date('2020-11-27T00:00:00.000'), + allDay: true, + }, { + id: 1, + text: '1', + startDate: new Date('2020-11-25T22:20:00.000'), + endDate: new Date('2020-11-26T12:30:00.000'), + }], + views: ['week'], + currentView: 'week', + showAllDayPanel: true, + currentDate: new Date(2020, 10, 25), + height: 600, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'allDay-unsorted-datasource.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.spec.ts new file mode 100644 index 000000000000..e2adea1c9eb1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.spec.ts @@ -0,0 +1,113 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const VIEW_RANGE_HOURS = [ + [undefined, undefined], + [6, undefined], + [undefined, 18], + [6, 18], +]; + +const setViewOptions = (startDayHour?: number, endDayHour?: number) => { + const viewOptions: { startDayHour?: number; endDayHour?: number } = {}; + if (startDayHour) viewOptions.startDayHour = startDayHour; + if (endDayHour) viewOptions.endDayHour = endDayHour; + + return viewOptions; +}; + +test.describe('Scheduler - All day appointments', () => { + ['week', 'month', 'timelineDay', 'timelineMonth'].forEach((view) => { + VIEW_RANGE_HOURS.forEach(([startDayHour, endDayHour]) => { + test( + `all-day appointment ends at midnight. + view=${view}, startDayHour=${startDayHour}, endDayHour=${endDayHour} (T1128938)`, + async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + dataSource: [ + { + text: 'One day', + startDate: '2023-01-01T00:00:00', + endDate: '2023-01-01T00:00:00', + allDay: true, + }, + { + text: 'Two days', + startDate: '2023-01-01T00:00:00', + endDate: '2023-01-02T00:00:00', + allDay: true, + }, + ], + dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ss', + currentView: view, + currentDate: '2023-01-01T00:00:00', + height: 800, + cellDuration: 360, + maxAppointmentsPerCell: 2, + ...setViewOptions(startDayHour, endDayHour), + }, + ); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `midnight_all-day-appt_view=${view}_start=${startDayHour}_end=${endDayHour}.png`, + { element: scheduler.workSpace }, + ); + }, + ); + }); + }); + + [ + 'timelineDay', + 'timelineMonth', + ].forEach((view) => { + test(`all-day appointment ends at midnight of the next month. view=${view} (T1122382)`, async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + dataSource: [ + { + text: 'Two days', + startDate: '2022-12-31T00:00:00', + endDate: '2023-01-01T00:00:00', + allDay: true, + }, + ], + dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ss', + currentView: view, + currentDate: '2022-12-31T00:00:00', + height: 800, + }, + ); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.scrollTo(new Date(2022, 11, 31, 23, 59)); + + await testScreenshot( + page, + `midnight-next-month_all-day-appt_view=${view}_first.png`, + { element: scheduler.workSpace }, + ); + + await scheduler.toolbar.navigator.nextButton.click(); + await scheduler.scrollTo(new Date(2023, 0, 1, 0, 1)); + + await testScreenshot( + page, + `midnight-next-month_all-day-appt_view=${view}_second.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png new file mode 100644 index 000000000000..8bd7440b92c3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png new file mode 100644 index 000000000000..0a59d87e44db Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png new file mode 100644 index 000000000000..e7ad3a6d5625 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png new file mode 100644 index 000000000000..c8e6fbfa1b5a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png new file mode 100644 index 000000000000..7d39ee2c70e7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..3a2700de5f41 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..3a2700de5f41 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..3a2700de5f41 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..3a2700de5f41 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..6abe56d2750c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..c15ccd37294e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..7e46c03922fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..827a4dd16eb1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..f2c02d6dc40b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..f2c02d6dc40b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..f2c02d6dc40b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..f2c02d6dc40b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..7acba100aa01 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..2efa07f76381 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png new file mode 100644 index 000000000000..7d5fb4b342c0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png new file mode 100644 index 000000000000..45278a99f4bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png new file mode 100644 index 000000000000..eda760775352 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png new file mode 100644 index 000000000000..02d6bf0df8bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/appointment_collector.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/appointment_collector.spec.ts new file mode 100644 index 000000000000..97bd3b412f53 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/appointment_collector.spec.ts @@ -0,0 +1,72 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; + +const dataSource = [{ + text: 'appointment1', + startDate: new Date('2021-04-02T07:30:00.000Z'), + endDate: new Date('2021-04-02T09:00:00.000Z'), +}, { + text: 'appointment2', + startDate: new Date('2021-04-02T07:35:00.000Z'), + endDate: new Date('2021-04-02T09:05:00.000Z'), +}]; +const config = { + dataSource, + timeZone: 'America/Los_Angeles', + currentDate: new Date(2021, 3, 2), + maxAppointmentsPerCell: 1, +}; + +interface WidgetArg { + config: typeof config; + view: string; +} + +const getRenderedData = (page: Page): Promise => page.evaluate( + () => (window as any).appointmentCollectorArgsData, +); + +test.describe('Appointment Editing', () => { + ['day', 'week', 'month', 'timelineDay', 'timelineWeek', 'timelineMonth'].forEach((view) => { + const arg: WidgetArg = { config, view }; + + test(`appointmentCollectorTemplate should render with appointments data on ${view} view`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ config: widgetConfig, view: widgetView }: WidgetArg) => ({ + ...widgetConfig, + views: [widgetView], + currentView: widgetView, + appointmentCollectorTemplate(data: any) { + (window as any).appointmentCollectorArgsData = data; + return document.createElement('div'); + }, + }), '#container', { arg }); + + await expect.poll(() => getRenderedData(page)).toEqual({ + appointmentCount: 1, + isCompact: ['day', 'week'].includes(view), + items: [dataSource[1]], + }); + }); + + test(`appointmentCollectorTemplate in view config should render with appointments data on ${view} view`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ config: widgetConfig, view: widgetView }: WidgetArg) => ({ + ...widgetConfig, + views: [{ + type: widgetView, + appointmentCollectorTemplate(data: any) { + (window as any).appointmentCollectorArgsData = data; + return document.createElement('div'); + }, + }], + currentView: widgetView, + }), '#container', { arg }); + + await expect.poll(() => getRenderedData(page)).toEqual({ + appointmentCount: 1, + isCompact: ['day', 'week'].includes(view), + items: [dataSource[1]], + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/dependendOptions.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/dependendOptions.spec.ts new file mode 100644 index 000000000000..937bb3996839 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/dependendOptions.spec.ts @@ -0,0 +1,34 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Appointment dependend options', () => { + test.use({ theme: 'generic.light' }); + + test('cellDuration (T1076138)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test-appt', + startDate: new Date(2021, 3, 27, 10), + endDate: new Date(2021, 3, 27, 11, 20), + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + startDayHour: 9, + endDayHour: 18, + width: 600, + height: 600, + cellDuration: 20, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('test-appt'); + const getClientHeight = () => appointment.element.evaluate((node) => node.clientHeight); + + await scheduler.option('cellDuration', 30); + + await expect.poll(getClientHeight).toBeGreaterThanOrEqual(132); + await expect.poll(getClientHeight).toBeLessThanOrEqual(133); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/displayArguments.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/displayArguments.spec.ts new file mode 100644 index 000000000000..3a0a85008de2 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/displayArguments.spec.ts @@ -0,0 +1,59 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +interface WidgetArg { + timeZone: string | undefined; +} + +test.describe('Display* arguments in appointment templates and events', () => { + [undefined, 'America/Los_Angeles'].forEach((timeZone) => { + test(`displayStartDate and displayEndDate arguments should be right with timeZone='${timeZone}'`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ timeZone: widgetTimeZone }: WidgetArg) => ({ + timeZone: widgetTimeZone, + dataSource: [], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 1, 15), + startDayHour: 9, + height: 600, + + onAppointmentClick: (model) => { + const { displayStartDate, displayEndDate } = model.targetedAppointmentData; + + (window as any).testDisplayValue = `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; + }, + + appointmentTooltipTemplate: (model) => { + const { displayStartDate, displayEndDate } = model.targetedAppointmentData; + + return `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; + }, + + appointmentTemplate: (model) => { + const { displayStartDate, displayEndDate } = model.targetedAppointmentData; + + return `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; + }, + }), '#container', { arg: { timeZone } }); + + const scheduler = new Scheduler(page, '#container'); + const etalon = '09:30:00 10:00:00'; + + await scheduler.getDateTableCell(1, 0).dblclick(); + + await scheduler.appointmentPopup.textEditor.input.pressSequentially('text'); + await scheduler.appointmentPopup.saveButton.element.click(); + + await expect(scheduler.getAppointmentByIndex(0).element) + .toHaveText(etalon, { useInnerText: true }); + + await scheduler.getAppointmentByIndex(0).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(undefined, 0).element) + .toHaveText(etalon, { useInnerText: true }); + + await expect.poll(() => page.evaluate(() => (window as any).testDisplayValue)) + .toBe(etalon); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png new file mode 100644 index 000000000000..135378192f25 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png new file mode 100644 index 000000000000..135378192f25 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png new file mode 100644 index 000000000000..40da2a55f51c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png new file mode 100644 index 000000000000..45bfa88e5512 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..2441909a4b19 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png new file mode 100644 index 000000000000..1b357dadd063 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png new file mode 100644 index 000000000000..35ea7e1862e7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png new file mode 100644 index 000000000000..7efb00d72413 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.spec.ts new file mode 100644 index 000000000000..591485366c92 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.spec.ts @@ -0,0 +1,103 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: max appointments per cell: All day', () => { + ['auto', 'unlimited', 1, 3, 10].forEach((maxAppointmentsPerCellValue) => { + test(`All day appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test_26', + startDate: new Date(2021, 3, 26), + endDate: new Date(2021, 3, 26), + allDay: true, + }, { + text: 'test_27', + startDate: new Date(2021, 3, 27), + endDate: new Date(2021, 3, 27), + allDay: true, + }, { + text: 'test_27', + startDate: new Date(2021, 3, 27), + endDate: new Date(2021, 3, 27), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }], + maxAppointmentsPerCell: maxAppointmentsPerCellValue, + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 3, 29), + startDayHour: 9, + allDayPanelMode: 'allDay', + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `all-day-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, + { element: scheduler.allDayRow }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.spec.ts new file mode 100644 index 000000000000..51afc6fde869 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.spec.ts @@ -0,0 +1,101 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: max appointments per cell: Day', () => { + ['auto', 'unlimited', 3, 10].forEach((maxAppointmentsPerCellValue) => { + test(`Day appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test_1', + startDate: new Date(2021, 3, 27, 9), + endDate: new Date(2021, 3, 27, 9, 30), + }, { + text: 'test_2', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_3', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_4', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_5', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_6', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_7', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_8', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_9', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_10', + startDate: new Date(2021, 3, 27, 10), + endDate: new Date(2021, 3, 27, 11), + }, { + text: 'test_1', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_12', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_13', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_14', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_15', + startDate: new Date(2021, 3, 27, 10, 30), + endDate: new Date(2021, 3, 27, 11, 30), + }, { + text: 'test_16', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 12, 30), + }, { + text: 'test_17', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 14), + }, { + text: 'test_18', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 13, 30), + }], + maxAppointmentsPerCell: maxAppointmentsPerCellValue, + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + startDayHour: 9, + height: 700, + width: 500, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `day-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..8c6e8dec8d76 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png new file mode 100644 index 000000000000..f93142bc6e9e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png new file mode 100644 index 000000000000..3a02bd3763ab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png new file mode 100644 index 000000000000..8c6e8dec8d76 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png new file mode 100644 index 000000000000..8ab97bf5e687 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png new file mode 100644 index 000000000000..554fd3cb9ba9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png new file mode 100644 index 000000000000..17b1ef362b38 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png new file mode 100644 index 000000000000..b9c8c0fc48e1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png new file mode 100644 index 000000000000..4249c1d954f9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..bfdda58898bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png new file mode 100644 index 000000000000..d11be9bdca84 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png new file mode 100644 index 000000000000..6224f78c41d7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png new file mode 100644 index 000000000000..6224f78c41d7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png new file mode 100644 index 000000000000..a0ab09b0d314 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..d5c1ef881e0d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png new file mode 100644 index 000000000000..87b72ec60baf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png new file mode 100644 index 000000000000..77976f0a2075 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png new file mode 100644 index 000000000000..85c4b58899e2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png new file mode 100644 index 000000000000..703d41a5510a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png new file mode 100644 index 000000000000..b7225a6cd132 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png new file mode 100644 index 000000000000..a0113ae512ad Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png new file mode 100644 index 000000000000..4fffba0c6db2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png new file mode 100644 index 000000000000..d42aed5ee260 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png new file mode 100644 index 000000000000..daf21d8f46b2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.spec.ts new file mode 100644 index 000000000000..d804c7e9352d --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.spec.ts @@ -0,0 +1,103 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: max appointments per cell: Month', () => { + ['auto', 'unlimited', 1, 3, 10].forEach((maxAppointmentsPerCellValue) => { + test(`Month appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test_26', + startDate: new Date(2021, 3, 26), + endDate: new Date(2021, 3, 26), + allDay: true, + }, { + text: 'test_27', + startDate: new Date(2021, 3, 27), + endDate: new Date(2021, 3, 27), + allDay: true, + }, { + text: 'test_27', + startDate: new Date(2021, 3, 27), + endDate: new Date(2021, 3, 27), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_28', + startDate: new Date(2021, 3, 28), + endDate: new Date(2021, 3, 28), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_29', + startDate: new Date(2021, 3, 29), + endDate: new Date(2021, 3, 29), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }, { + text: 'test_30', + startDate: new Date(2021, 3, 30), + endDate: new Date(2021, 3, 30), + allDay: true, + }], + maxAppointmentsPerCell: maxAppointmentsPerCellValue, + views: ['month'], + currentView: 'month', + currentDate: new Date(2021, 3, 29), + startDayHour: 9, + height: 700, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `month-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.spec.ts new file mode 100644 index 000000000000..3d3cdf7527e1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.spec.ts @@ -0,0 +1,100 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: max appointments per cell: Timeline', () => { + ['auto', 'unlimited', 1, 3, 10, 20].forEach((maxAppointmentsPerCellValue) => { + test(`Timeline appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test_1', + startDate: new Date(2021, 3, 27, 9), + endDate: new Date(2021, 3, 27, 9, 30), + }, { + text: 'test_2', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_3', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_4', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_5', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_6', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_7', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_8', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_9', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_10', + startDate: new Date(2021, 3, 27, 10), + endDate: new Date(2021, 3, 27, 11), + }, { + text: 'test_1', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_12', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_13', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_14', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_15', + startDate: new Date(2021, 3, 27, 10, 30), + endDate: new Date(2021, 3, 27, 11, 30), + }, { + text: 'test_16', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 12, 30), + }, { + text: 'test_17', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 14), + }, { + text: 'test_18', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 13, 30), + }], + maxAppointmentsPerCell: maxAppointmentsPerCellValue, + views: ['timelineDay'], + currentView: 'timelineDay', + currentDate: new Date(2021, 3, 27), + startDayHour: 9, + height: 700, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `timeline-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.spec.ts new file mode 100644 index 000000000000..ba03a2da1dd1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.spec.ts @@ -0,0 +1,100 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: max appointments per cell: Week', () => { + ['auto', 'unlimited', 3, 10].forEach((maxAppointmentsPerCellValue) => { + test(`Week appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test_1', + startDate: new Date(2021, 3, 27, 9), + endDate: new Date(2021, 3, 27, 9, 30), + }, { + text: 'test_2', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_3', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_4', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_5', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_6', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_7', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_8', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_9', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_10', + startDate: new Date(2021, 3, 27, 10), + endDate: new Date(2021, 3, 27, 11), + }, { + text: 'test_1', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_12', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_13', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_14', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 10), + }, { + text: 'test_15', + startDate: new Date(2021, 3, 27, 10, 30), + endDate: new Date(2021, 3, 27, 11, 30), + }, { + text: 'test_16', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 12, 30), + }, { + text: 'test_17', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 14), + }, { + text: 'test_18', + startDate: new Date(2021, 3, 27, 12), + endDate: new Date(2021, 3, 27, 13, 30), + }], + maxAppointmentsPerCell: maxAppointmentsPerCellValue, + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 3, 29), + startDayHour: 9, + height: 700, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `week-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/multiday.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/multiday.spec.ts new file mode 100644 index 000000000000..32ede5d9e491 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/multiday.spec.ts @@ -0,0 +1,305 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const expectClientSizeWithin = async ( + element: Locator, + property: 'clientWidth' | 'clientHeight', + min: number, + max: number, +): Promise => { + const getSize = () => element.evaluate((node, name) => node[name], property); + + await expect.poll(getSize).toBeGreaterThanOrEqual(min); + await expect.poll(getSize).toBeLessThanOrEqual(max); +}; + +const checkAllDayAppointment = async ( + scheduler: Scheduler, + title: string, + index: number, + reduceType: 'head' | 'body' | 'tail' | undefined, + width: number, +): Promise => { + const appointment = scheduler.getAppointment(title, index); + const isReduced = reduceType !== undefined; + + await expect(appointment.reducedIcon).toBeAttached({ attached: isReduced }); + await appointment.expectState('reducedHead', reduceType === 'head'); + await appointment.expectState('reducedBody', reduceType === 'body'); + await appointment.expectState('reducedTail', reduceType === 'tail'); + await appointment.expectState('allDay'); + await expectClientSizeWithin(appointment.element, 'clientWidth', width - 1, width + 1); +}; + +const checkRegularAppointment = async ( + scheduler: Scheduler, + title: string, + index: number, + reduceType: 'head' | 'body' | 'tail' | undefined, + height: number, +): Promise => { + const appointment = scheduler.getAppointment(title, index); + const isReduced = reduceType !== undefined; + + await expect(appointment.reducedIcon).toBeAttached({ attached: isReduced }); + await appointment.expectState('reducedHead', reduceType === 'head'); + await appointment.expectState('reducedBody', reduceType === 'body'); + await appointment.expectState('reducedTail', reduceType === 'tail'); + await expectClientSizeWithin(appointment.element, 'clientHeight', height - 1, height + 1); +}; + +test.describe('Scheduler - Multiday appointments', () => { + test.describe(() => { + test.use({ theme: 'generic.light' }); + + test('it should render multi-day and multi-view appointments correctly if allDayPanelMode is "hidden"', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 900, + height: 400, + dataSource: [{ + text: 'appt-00', + startDate: new Date(2021, 2, 22, 8), + endDate: new Date(2021, 2, 22, 10, 30), + }, { + text: 'appt-01', + startDate: new Date(2021, 2, 25, 9), + endDate: new Date(2021, 3, 6, 8, 30), + }], + views: ['week', 'month', 'timelineMonth'], + currentView: 'week', + currentDate: new Date(2021, 2, 21), + startDayHour: 8, + endDayHour: 10, + allDayPanelMode: 'hidden', + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.appointments).toHaveCount(4); + let appointmentCount = await scheduler.appointments.count(); + + await checkRegularAppointment(scheduler, 'appt-00', 0, undefined, 200); + + await checkRegularAppointment(scheduler, 'appt-01', 0, 'head', 100); + for (let i = 1; i < appointmentCount - 2; i += 1) { + await checkRegularAppointment(scheduler, 'appt-01', i, 'body', 200); + } + + await scheduler.toolbar.navigator.nextButton.click(); + + await expect(scheduler.appointments).toHaveCount(7); + appointmentCount = await scheduler.appointments.count(); + + for (let i = 0; i < appointmentCount; i += 1) { + await checkRegularAppointment(scheduler, 'appt-01', i, 'body', 200); + } + + await scheduler.toolbar.navigator.nextButton.click(); + + await expect(scheduler.appointments).toHaveCount(3); + await checkRegularAppointment(scheduler, 'appt-01', 0, 'body', 200); + await checkRegularAppointment(scheduler, 'appt-01', 1, 'body', 200); + await checkRegularAppointment(scheduler, 'appt-01', 2, 'tail', 50); + }); + + test('it should render all-day appointments if allDayPanelMode is "all"', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 900, + height: 400, + dataSource: [{ + text: 'appt-00', + startDate: new Date(2021, 2, 22, 8), + endDate: new Date(2021, 2, 22, 10, 30), + allDay: true, + }, { + text: 'appt-01', + startDate: new Date(2021, 2, 25, 9), + endDate: new Date(2021, 3, 6, 8, 30), + }], + views: ['week', 'month', 'timelineMonth'], + currentView: 'week', + currentDate: new Date(2021, 2, 21), + startDayHour: 8, + endDayHour: 10, + allDayPanelMode: 'all', + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.appointments).toHaveCount(2); + await checkAllDayAppointment(scheduler, 'appt-00', 0, undefined, 109); + await checkAllDayAppointment(scheduler, 'appt-01', 0, 'head', 337); + + await scheduler.toolbar.navigator.nextButton.click(); + + await expect(scheduler.appointments).toHaveCount(1); + await checkAllDayAppointment(scheduler, 'appt-01', 0, 'body', 793); + + await scheduler.toolbar.navigator.nextButton.click(); + + await expect(scheduler.appointments).toHaveCount(1); + await checkAllDayAppointment(scheduler, 'appt-01', 0, 'tail', 337); + }); + }); + + test('it should render all-day and multi-day appointments if allDayPanelMode is "allDay"', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 900, + height: 400, + dataSource: [{ + text: 'allDay', + startDate: new Date(2021, 2, 22), + allDay: true, + }, { + text: 'multiDay', + startDate: new Date(2021, 2, 22, 8), + endDate: new Date(2021, 2, 25, 9, 30), + }], + views: ['week', 'month', 'timelineMonth'], + currentView: 'week', + currentDate: new Date(2021, 2, 21), + startDayHour: 8, + endDayHour: 10, + allDayPanelMode: 'allDay', + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.appointments).toHaveCount(5); + + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 117); + await checkRegularAppointment(scheduler, 'multiDay', 0, 'head', 151); + await checkRegularAppointment(scheduler, 'multiDay', 1, 'body', 151); + await checkRegularAppointment(scheduler, 'multiDay', 2, 'body', 151); + await checkRegularAppointment(scheduler, 'multiDay', 3, 'tail', 113); + }); + + test('it should correctly change allDayPanelOption at runtime', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 800, + height: 600, + dataSource: [ + { + text: 'allDay', + startDate: new Date(2021, 2, 22), + allDay: true, + }, + { + text: 'multiDay', + startDate: new Date(2021, 2, 22, 8), + endDate: new Date(2021, 2, 25, 9, 30), + }], + views: ['week', 'workWeek'], + currentView: 'week', + currentDate: new Date(2021, 2, 22), + maxAppointmentsPerCell: 2, + startDayHour: 8, + endDayHour: 12, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.appointments).toHaveCount(2); + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 103); + await checkAllDayAppointment(scheduler, 'multiDay', 0, undefined, 417); + + await scheduler.option('allDayPanelMode', 'allDay'); + await expect(scheduler.appointments).toHaveCount(5); + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 103); + await checkRegularAppointment(scheduler, 'multiDay', 0, 'head', 303); + await checkRegularAppointment(scheduler, 'multiDay', 1, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 2, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 3, 'tail', 113); + + await scheduler.option('allDayPanelMode', 'hidden'); + await expect(scheduler.appointments).toHaveCount(5); + await expect(scheduler.allDayTableCells).toHaveCount(0); + await checkRegularAppointment(scheduler, 'allDay', 0, undefined, 303); + await checkRegularAppointment(scheduler, 'multiDay', 0, 'head', 303); + await checkRegularAppointment(scheduler, 'multiDay', 1, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 2, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 3, 'tail', 113); + + await scheduler.option('allDayPanelMode', 'allDay'); + await expect(scheduler.appointments).toHaveCount(5); + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 103); + await checkRegularAppointment(scheduler, 'multiDay', 0, 'head', 303); + await checkRegularAppointment(scheduler, 'multiDay', 1, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 2, 'body', 303); + await checkRegularAppointment(scheduler, 'multiDay', 3, 'tail', 113); + await scheduler.option('allDayPanelMode', 'all'); + await expect(scheduler.appointments).toHaveCount(2); + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 103); + await checkAllDayAppointment(scheduler, 'multiDay', 0, undefined, 417); + }); + + test.describe(() => { + test.use({ theme: 'generic.light' }); + + test('it should correctly handle allDayPanelMode for the workspace', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 900, + height: 400, + dataSource: [{ + text: 'allDay', + startDate: new Date(2021, 2, 22), + allDay: true, + }, { + text: 'multiDay', + startDate: new Date(2021, 2, 22, 8), + endDate: new Date(2021, 2, 25, 9, 30), + }], + views: [ + 'week', + { + type: 'week', + name: 'weekAllDay', + allDayPanelMode: 'allDay', + }, + ], + currentView: 'week', + currentDate: new Date(2021, 2, 21), + startDayHour: 8, + endDayHour: 10, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.appointments).toHaveCount(2); + + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 109); + await checkAllDayAppointment(scheduler, 'multiDay', 0, undefined, 451); + + await scheduler.toolbar.viewSwitcher.getButton('weekAllDay').element.click(); + await expect(scheduler.appointments).toHaveCount(5); + + await checkAllDayAppointment(scheduler, 'allDay', 0, undefined, 109); + await checkRegularAppointment(scheduler, 'multiDay', 0, 'head', 200); + await checkRegularAppointment(scheduler, 'multiDay', 1, 'body', 200); + await checkRegularAppointment(scheduler, 'multiDay', 2, 'body', 200); + await checkRegularAppointment(scheduler, 'multiDay', 3, 'tail', 150); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/multiday_screenshot.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/multiday_screenshot.spec.ts new file mode 100644 index 000000000000..be9b64c121dc --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/multiday_screenshot.spec.ts @@ -0,0 +1,38 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Scheduler - Multiday appointments (screenshot)', () => { + [ + 'week', + 'month', + 'timelineMonth', + ].forEach((currentView) => { + test(`it should not cut multiday appointment in ${currentView} view`, async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: 900, + height: 400, + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 28, 8), + endDate: new Date(2021, 3, 4, 8), + }], + views: ['week', 'month', 'timelineMonth'], + currentView, + currentDate: new Date(2021, 3, 4), + startDayHour: 12, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, `multiday-appointment_${currentView}.png`, { + element: scheduler.element, + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/onAppointmentDeleting.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/onAppointmentDeleting.spec.ts new file mode 100644 index 000000000000..98c486e0c45c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/onAppointmentDeleting.spec.ts @@ -0,0 +1,81 @@ +import type { AppointmentDeletingEvent } from 'devextreme/ui/scheduler'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const data = [ + { + text: 'Brochure Design Review', + startDate: new Date(2021, 3, 27, 1, 30), + endDate: new Date(2021, 3, 27, 2, 30), + }, +]; + +interface WidgetArg { + cancel: boolean; + dataSource: typeof data; +} + +test.describe('onAppointmentDeleting event', () => { + [{ + cancel: false, + expectedCount: 0, + }, { + cancel: true, + expectedCount: 1, + }].forEach(({ cancel, expectedCount }) => { + const arg: WidgetArg = { cancel, dataSource: data }; + + test(`UI behaviour should be valid in case argument pass boolean value, e.cancel=${cancel}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ cancel: cancelValue, dataSource }: WidgetArg) => ({ + dataSource, + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + startDayHour: 1, + endDayHour: 7, + height: 600, + cellDuration: 30, + onAppointmentDeleting: (e: AppointmentDeletingEvent) => { + e.cancel = cancelValue; + }, + }), '#container', { arg }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Brochure Design Review'); + const { appointmentTooltip } = scheduler; + + await appointment.element.click(); + await appointmentTooltip.expectVisible(true); + await appointmentTooltip.deleteButton.click(); + await expect(scheduler.appointments).toHaveCount(expectedCount); + }); + + test(`UI behaviour should be valid in case argument pass Promise resolved, e.cancel=${cancel}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ cancel: cancelValue, dataSource }: WidgetArg) => ({ + dataSource, + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + startDayHour: 1, + endDayHour: 7, + height: 600, + cellDuration: 30, + onAppointmentDeleting: (e: AppointmentDeletingEvent) => { + e.cancel = new Promise((resolve) => { + resolve(cancelValue); + }); + }, + }), '#container', { arg }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Brochure Design Review'); + const { appointmentTooltip } = scheduler; + + await appointment.element.click(); + await appointmentTooltip.expectVisible(true); + await appointmentTooltip.deleteButton.click(); + await expect(scheduler.appointments).toHaveCount(expectedCount); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/resources.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/resources.spec.ts new file mode 100644 index 000000000000..b43b8774a2ea --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/resources.spec.ts @@ -0,0 +1,216 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler from '../../../../models/scheduler'; + +const dataSource = [{ + text: 'test-appt-1', + priorityId: 1, + typeId: 2, + startDate: new Date('2021-05-26T06:45:00.000Z'), + endDate: new Date('2021-05-26T09:15:00.000Z'), +}, { + text: 'test-appt-2', + priorityId: 2, + typeId: 1, + startDate: new Date('2021-05-26T06:45:00.000Z'), + endDate: new Date('2021-05-26T09:15:00.000Z'), +}]; + +const priorityData = [{ + text: 'Low Priority', + id: 1, + color: 'rgb(252, 182, 94)', +}, { + text: 'High Priority', + id: 2, + color: 'rgb(225, 142, 146)', +}]; + +test.describe('Appointment resources', () => { + test('Resource color should be correct if group is set in "views"', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + height: 600, + dataSource, + views: [{ + type: 'workWeek', + startDayHour: 9, + endDayHour: 18, + groups: ['priorityId'], + }], + currentView: 'workWeek', + currentDate: new Date(2021, 4, 25), + resources: [{ + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: priorityData, + label: 'Priority', + }, { + fieldExpr: 'typeId', + allowMultiple: false, + dataSource: [{ + id: 1, + color: '#b6d623', + }, { + id: 2, + color: '#679ec5', + }], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment1 = scheduler.getAppointment('test-appt-1'); + const appointment2 = scheduler.getAppointment('test-appt-2'); + + await expect.poll(() => appointment1.getColor()).toBe(priorityData[0].color); + await expect.poll(() => appointment2.getColor()).toBe(priorityData[1].color); + }); + + test('Scheduler should renders correctly if resource dataSource is not set', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + height: 600, + width: 800, + dataSource: [{ + text: 'Appt-1', + startDate: new Date(2021, 3, 27, 10), + endDate: new Date(2021, 3, 27, 12), + }, { + text: 'Appt-2', + startDate: new Date(2021, 3, 29, 11), + endDate: new Date(2021, 3, 29, 13), + }], + views: ['workWeek'], + currentView: 'workWeek', + currentDate: new Date(2021, 3, 26), + startDayHour: 9, + endDayHour: 14, + resources: [{ + fieldExpr: 'roomId', + label: 'Room', + }], + }, + ); + + const scheduler = new Scheduler(page, '#container'); + const appointment1 = scheduler.getAppointment('Appt-1'); + const appointment2 = scheduler.getAppointment('Appt-2'); + + await expect(appointment1.element).toBeAttached(); + await expect(appointment2.element).toBeAttached(); + }); + + test('Resource with allowMultiple should be set correctly for new the appointment (T1075028)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + startDayHour: 9, + endDayHour: 14, + resources: [{ + fieldExpr: 'test_Id', + allowMultiple: true, + dataSource: [{ + text: 'Test-0', + id: 1, + }, { + text: 'Test-1', + id: 2, + }], + label: 'MultipleResource', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const cell = scheduler.getDateTableCell(2, 0); + + await cell.dblclick(); + await expect.poll(() => scheduler.appointmentPopup.popup.isVisible()).toBe(true); + + const resourceTagBox = page.locator('.dx-tagbox').first(); + const resourceTagBoxInput = resourceTagBox.locator('.dx-texteditor-input'); + const resourceTagBoxTags = resourceTagBox.locator('.dx-tag'); + + await expect(resourceTagBox).toBeAttached(); + await resourceTagBox.click(); + + await expect(resourceTagBoxInput).toHaveAttribute('aria-owns', /.+/); + const resourceTagBoxPopup = page.locator(`#${await resourceTagBoxInput.getAttribute('aria-owns')}`); + + await expect(resourceTagBoxPopup).toBeAttached(); + await expect(resourceTagBoxPopup.locator('..')).not.toHaveClass(classMatcher('dx-state-invisible')); + + await resourceTagBoxPopup.locator('.dx-list .dx-list-item:not(.nested-item)').first().click(); + + await expect(resourceTagBoxTags.first()).toBeAttached(); + await expect(resourceTagBoxTags).toHaveCount(1); + }); + + test.describe(() => { + test.use({ theme: 'generic.light' }); + + test('Resource color should be correct for the complex resource id without grouping', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2015, 6, 10), + views: ['week'], + currentView: 'week', + editing: true, + dataSource: [{ + text: 'a', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: { _value: 'guid-1' }, + }, { + text: 'b', + allDay: true, + startDate: new Date(2015, 6, 10, 0), + endDate: new Date(2015, 6, 10, 0, 30), + ownerId: { _value: 'guid-2' }, + }, { + text: 'c', + startDate: new Date(2015, 6, 10, 2), + endDate: new Date(2015, 6, 10, 2, 30), + ownerId: { _value: 'guid-3' }, + }], + resources: [ + { + field: 'ownerId', + dataSource: [ + { + id: { _value: 'guid-1' }, + text: 'one', + color: 'rgb(255, 0, 0)', + }, + { + id: { _value: 'guid-2' }, + text: 'two', + color: 'rgb(0, 128, 0)', + }, + { + id: { _value: 'guid-3' }, + text: 'three', + color: 'rgb(255, 255, 0)', + }, + ], + }, + ], + scrolling: { + orientation: 'vertical', + }, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointmentA = scheduler.getAppointment('a'); + const appointmentB = scheduler.getAppointment('b'); + const appointmentC = scheduler.getAppointment('c'); + + await expect.poll(() => appointmentA.getColor()).toBe('rgb(255, 0, 0)'); + await expect.poll(() => appointmentB.getColor()).toBe('rgb(0, 128, 0)'); + await expect.poll(() => appointmentC.getColor()).toBe('rgb(255, 255, 0)'); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/timelineMonth.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/timelineMonth.spec.ts new file mode 100644 index 000000000000..c015f436f933 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/timelineMonth.spec.ts @@ -0,0 +1,69 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; + +test.describe('Appointments in TimelineMonth', () => { + test('Appointments should have correct order', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2016, 1, 2), + dataSource: [ + { + text: 'appt-01', + startDate: new Date(2016, 1, 1, 9, 0), + endDate: new Date(2016, 1, 1, 10, 30), + }, { + text: 'appt-02', + startDate: new Date(2016, 1, 1, 11, 30), + endDate: new Date(2016, 1, 1, 14, 15), + }, { + text: 'appt-03', + startDate: new Date(2016, 1, 1, 15, 15), + endDate: new Date(2016, 1, 1, 17, 15), + }, { + text: 'appt-04', + startDate: new Date(2016, 1, 1, 18, 45), + endDate: new Date(2016, 1, 1, 20, 15), + }, { + text: 'appt-05', + startDate: new Date(2016, 1, 2, 8, 15), + endDate: new Date(2016, 1, 2, 10, 45), + }, { + text: 'appt-06', + startDate: new Date(2016, 1, 2, 12, 0), + endDate: new Date(2016, 1, 2, 13, 45), + }, { + text: 'appt-07', + startDate: new Date(2016, 1, 2, 15, 30), + endDate: new Date(2016, 1, 2, 17, 30), + }, { + text: 'appt-08', + startDate: new Date(2016, 1, 3, 8, 15), + endDate: new Date(2016, 1, 3, 9, 0), + }, { + text: 'appt-09', + startDate: new Date(2016, 1, 3, 10, 0), + endDate: new Date(2016, 1, 3, 11, 15), + }, { + text: 'appt-10', + startDate: new Date(2016, 1, 3, 11, 45), + endDate: new Date(2016, 1, 3, 13, 45), + }, { + text: 'appt-11', + startDate: new Date(2016, 1, 3, 14, 0), + endDate: new Date(2016, 1, 3, 16, 45), + }, + ], + views: ['timelineMonth'], + currentView: 'timelineMonth', + maxAppointmentsPerCell: 'unlimited', + height: 505, + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + firstDayOfWeek: 0, + width: 800, + }); + + await testScreenshot(page, 'timelineMonth-appt-order.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/timelineWorkWeek.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/timelineWorkWeek.spec.ts new file mode 100644 index 000000000000..e87a53b59bef --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/timelineWorkWeek.spec.ts @@ -0,0 +1,117 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const CELL_WIDTH = 200; + +test.describe('Appointments in TimelineWorkWeek', () => { + test('Appointments should have correct width', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2024, 0, 29), + dataSource: [ + { + text: 'appt-01', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + + { + text: 'appt-02', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 4, 14, 0), + }, + { + text: 'appt-03', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 6, 10, 0), + }, + { + text: 'appt-04', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 6, 18, 0), + }, + { + text: 'appt-05', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 3, 10, 0), + }, + { + text: 'appt-06', + startDate: new Date(2024, 1, 1, 13, 0), + endDate: new Date(2024, 1, 3, 18, 0), + }, + + { + text: 'appt-07', + startDate: new Date(2024, 1, 4, 13, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + { + text: 'appt-08', + startDate: new Date(2024, 1, 1, 10, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + { + text: 'appt-09', + startDate: new Date(2024, 1, 1, 19, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + { + text: 'appt-10', + startDate: new Date(2024, 1, 4, 10, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + { + text: 'appt-11', + startDate: new Date(2024, 1, 4, 17, 0), + endDate: new Date(2024, 1, 6, 14, 0), + }, + ], + views: [{ + type: 'timelineWorkWeek', + intervalCount: 2, + maxAppointmentsPerCell: 'unlimited', + }], + currentView: 'timelineWorkWeek', + startDayHour: 12, + endDayHour: 16, + cellDuration: 60, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.getAppointment('appt-01').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4 * 2 + 2)}px`); + + await expect(scheduler.getAppointment('appt-02').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4)}px`); + + await expect(scheduler.getAppointment('appt-03').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4 * 2)}px`); + + await expect(scheduler.getAppointment('appt-04').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4 * 3)}px`); + + await expect(scheduler.getAppointment('appt-05').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4)}px`); + + await expect(scheduler.getAppointment('appt-06').element) + .toHaveCSS('width', `${CELL_WIDTH * (3 + 4)}px`); + + await expect(scheduler.getAppointment('appt-07').element) + .toHaveCSS('width', `${CELL_WIDTH * (4 + 2)}px`); + + await expect(scheduler.getAppointment('appt-08').element) + .toHaveCSS('width', `${CELL_WIDTH * (4 * 3 + 2)}px`); + + await expect(scheduler.getAppointment('appt-09').element) + .toHaveCSS('width', `${CELL_WIDTH * (4 * 2 + 2)}px`); + + await expect(scheduler.getAppointment('appt-10').element) + .toHaveCSS('width', `${CELL_WIDTH * (4 + 2)}px`); + + await expect(scheduler.getAppointment('appt-11').element) + .toHaveCSS('width', `${CELL_WIDTH * (4 + 2)}px`); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png new file mode 100644 index 000000000000..6b54397272ab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/appointments/workWeek/interval.spec.ts b/e2e/playwright/tests/scheduler/common/appointments/workWeek/interval.spec.ts new file mode 100644 index 000000000000..9be5fe2be335 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/appointments/workWeek/interval.spec.ts @@ -0,0 +1,55 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Appointments with adaptive', () => { + test('Should correctly render scheduler in workWeek view with interval, skipping weekends (T1243027)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2024-01-05T01:00:00', + endDate: '2024-01-07T01:00:00', + text: 'Ends in weekend', + color: 'red', + }, + { + startDate: '2024-01-07T01:00:00', + endDate: '2024-01-08T01:00:00', + text: 'Starts in weekend', + color: 'blue', + }, + { + startDate: '2024-01-05T01:00:00', + endDate: '2024-01-08T01:00:00', + text: 'Goes over weekend', + color: 'green', + }, + ], + views: [{ + name: 'myView', + type: 'workWeek', + allDayPanelMode: 'allDay', + intervalCount: 2, + maxAppointmentsPerCell: 'unlimited', + }], + currentView: 'myView', + currentDate: '2024-01-01', + height: 600, + // NOTE: resources are used only to distinguish appts in etalon file + resources: [{ + fieldExpr: 'color', + dataSource: [ + { id: 'red', color: 'red' }, + { id: 'blue', color: 'blue' }, + { id: 'green', color: 'green' }, + ], + label: 'Room', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'work_week_interval-2.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.spec.ts b/e2e/playwright/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.spec.ts new file mode 100644 index 000000000000..e6169940e46b --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.spec.ts @@ -0,0 +1,215 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import { + createScheduler, + scrollTo, + checkSelectionWhenFocusedInViewport, + checkSelectionWhenFocusedIsNotInViewport, + checkAllDayCellsWhenInViewport, + checkAllDayCellsWhenNotInViewport, +} from './init/widget.setup'; + +const baseConfig = { + scrolling: { mode: 'virtual', orientation: 'both' }, + views: [{ + type: 'week', + intervalCount: 3, + }], + currentView: 'week', +}; + +test.describe('Scheduler: Cells Selection in Virtual Scrolling', () => { + test('Selected cells shouldn\'t disapppear on scroll', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + + await scrollTo(page, 1000, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + }); + + test('Selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async ({ page }) => { + await createScheduler(page, { + groups: ['resourceId0'], + resources: [{ + fieldExpr: 'resourceId0', + dataSource: [{ id: 0 }, { id: 1 }], + }], + ...baseConfig, + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + + await scrollTo(page, 1000, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + }); + + test('Selected cells shouldn\'t disapppear on scroll when appointments are grouped by date', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'horizontal', + groupByDate: true, + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 2)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 2); + + await scrollTo(page, 1000, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 2); + }); + + test('Selected cells shouldn\'t disapppear on scroll when appointments are grouped vertically', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'vertical', + intervalCount: 3, + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 10, 5, 1); + + await scrollTo(page, 1000, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 10, 5, 1); + }); + + test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + showAllDayPanel: true, + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); + + await checkAllDayCellsWhenInViewport(scheduler); + + await scrollTo(page, 1000, 0); + await checkAllDayCellsWhenNotInViewport(scheduler); + + await scrollTo(page, 0, 0); + await checkAllDayCellsWhenInViewport(scheduler); + }); + + test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when vertical grouping is used', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + showAllDayPanel: true, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); + + await checkAllDayCellsWhenInViewport(scheduler); + + await scrollTo(page, 0, 500); + await checkAllDayCellsWhenNotInViewport(scheduler); + + await scrollTo(page, 0, 0); + await checkAllDayCellsWhenInViewport(scheduler); + }); + + test('Selection should work in month view', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + views: [{ + type: 'month', + groupOrientation: 'horizontal', + }], + currentView: 'month', + groups: ['resourceId0'], + resources: [{ + fieldExpr: 'resourceId0', + dataSource: [ + { id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }, + ], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + + await scrollTo(page, 1000, 0); + await expect(scheduler.getSelectedCells()).toHaveCount(0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + }); + + test('Selection should work in timeline views', async ({ page }) => { + await createScheduler(page, { + ...baseConfig, + views: ['timelineDay', 'timelineWeek', 'timelineMonth'], + currentView: 'timelineDay', + height: 250, + }); + + const scheduler = new Scheduler(page, '#container'); + + const checkSelection = async (): Promise => { + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + + await scrollTo(page, 1500, 0); + await expect(scheduler.getSelectedCells()).toHaveCount(0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + }; + + await checkSelection(); + + await scheduler.option('currentView', 'timelineWeek'); + await checkSelection(); + + await scheduler.option('currentView', 'timelineMonth'); + await checkSelection(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/cellsSelection/cellsSelection.spec.ts b/e2e/playwright/tests/scheduler/common/cellsSelection/cellsSelection.spec.ts new file mode 100644 index 000000000000..918c2130dab2 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/cellsSelection/cellsSelection.spec.ts @@ -0,0 +1,26 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Scheduler: Cells Selection in Virtual Scrolling', () => { + test('Selection should work correctly with all-day panel appointments', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 11, 9), + dataSource: [{ + startDate: new Date(2021, 11, 9), + endDate: new Date(2021, 11, 9), + allDay: true, + text: 'Appointment', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.getAppointment('Appointment').element.click(); + await scheduler.getDateTableCell(0, 0).click(); + + await expect(scheduler.getSelectedCells()).toHaveCount(1); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/cellsSelection/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/cellsSelection/init/widget.setup.ts new file mode 100644 index 000000000000..2c068d27c851 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/cellsSelection/init/widget.setup.ts @@ -0,0 +1,122 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { classMatcher } from '../../../../../models/internal/classMatcher'; +import type Scheduler from '../../../../../models/scheduler'; +import { CLASS } from '../../../../../models/scheduler'; +import { scrollTo as scrollWorkSpaceTo } from '../../../helpers/utils'; + +// The date table re-renders on its scroll event and then scrolls the synchronized panels, whose +// scroll events arrive a frame later and scroll the date table back to their position. +export const scrollTo = async (page: Page, x: number, y: number): Promise => { + await scrollWorkSpaceTo(page, x, y); + await page.evaluate(() => new Promise((resolve) => { + requestAnimationFrame(() => requestAnimationFrame(() => resolve())); + })); +}; + +export const createScheduler = async ( + page: Page, + options: Record = {}, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2020, 8, 20), + cellDuration: 60, + height: 300, + width: 400, + scrolling: { mode: 'virtual' }, + resources: [{ + fieldExpr: 'resourceId0', + dataSource: [{ id: 0 }, { id: 1 }], + }], + ...options, + }); +}; + +export const selectCells = async ( + table: Locator, + firstCell: Locator, + secondCell: Locator, +): Promise => { + const firstCellHandle = await firstCell.elementHandle(); + const secondCellHandle = await secondCell.elementHandle(); + + await table.evaluate((tableElement, [first, second]) => { + const $table = $(tableElement); + + $($table).trigger( + $.Event('dxpointerdown', { target: first, which: 1, pointerType: 'mouse' }), + ); + $($table).trigger($.Event('dxpointermove', { target: second, which: 1 })); + }, [firstCellHandle, secondCellHandle]); +}; + +export const moveMouse = async (table: Locator, cell: Locator): Promise => { + const cellHandle = await cell.elementHandle(); + + await table.evaluate((tableElement, target) => { + const $table = $(tableElement); + + $($table).trigger($.Event('dxpointermove', { target, which: 1 })); + }, cellHandle); +}; + +const expectSelected = async (cell: Locator, present = true): Promise => { + const assertion = expect(cell); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.selectedCell)); +}; + +const expectFocused = async (cell: Locator, present = true): Promise => { + const assertion = expect(cell); + + await (present ? assertion : assertion.not).toHaveClass(classMatcher(CLASS.focusedCell)); +}; + +export const checkSelectionWhenFocusedInViewport = async ( + scheduler: Scheduler, + selectedCellsCount: number, + bottomMostCellRowIndex: number, + lastCellColumnIndex: number, + lastCellRowIndex = 0, +): Promise => { + await expect(scheduler.getSelectedCells()).toHaveCount(selectedCellsCount); + await expect(scheduler.getFocusedCell()).toHaveCount(1); + await expectSelected(scheduler.getDateTableCell(0, 0)); + await expectSelected(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex)); + await expectSelected(scheduler.getDateTableCell(bottomMostCellRowIndex, 0)); + await expectFocused(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex)); +}; + +export const checkSelectionWhenFocusedIsNotInViewport = async ( + scheduler: Scheduler, + selectedCellsCount: number, + bottomMostCellRowIndex = 0, + lastCellColumnIndex = 0, + lastCellRowIndex = 0, +): Promise => { + await expect(scheduler.getSelectedCells()).toHaveCount(selectedCellsCount); + await expect(scheduler.getFocusedCell()).toHaveCount(0); + + if (selectedCellsCount > 0) { + await expectSelected(scheduler.getDateTableCell(0, 0)); + await expectSelected(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex), false); + await expectSelected(scheduler.getDateTableCell(bottomMostCellRowIndex, 0)); + await expectFocused(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex), false); + } +}; + +export const checkAllDayCellsWhenInViewport = async (scheduler: Scheduler): Promise => { + await expect(scheduler.getSelectedCells(true)).toHaveCount(2); + await expectSelected(scheduler.getAllDayTableCell(0)); + await expectSelected(scheduler.getAllDayTableCell(1)); + await expectFocused(scheduler.getAllDayTableCell(1)); +}; + +export const checkAllDayCellsWhenNotInViewport = async (scheduler: Scheduler): Promise => { + await expect(scheduler.getSelectedCells(true)).toHaveCount(0); + await expect(scheduler.getFocusedCell(true)).toHaveCount(0); +}; diff --git a/e2e/playwright/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.spec.ts b/e2e/playwright/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.spec.ts new file mode 100644 index 000000000000..9e26d5651e7c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.spec.ts @@ -0,0 +1,276 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import { + createScheduler, + scrollTo, + selectCells, + moveMouse, + checkSelectionWhenFocusedInViewport, + checkSelectionWhenFocusedIsNotInViewport, + checkAllDayCellsWhenInViewport, + checkAllDayCellsWhenNotInViewport, +} from './init/widget.setup'; + +test.describe('Scheduler: Cells Selection in Virtual Scrolling', () => { + [true, false].forEach((showAllDayPanel) => { + test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel}`, async ({ page }) => { + await createScheduler(page, { showAllDayPanel }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + + await scrollTo(page, 0, 500); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 13, 6, 1); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + }); + + test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and horizontal grouping is used`, async ({ page }) => { + await createScheduler(page, { + showAllDayPanel, + groups: ['resourceId0'], + resources: [{ + fieldExpr: 'resourceId0', + dataSource: [{ id: 0 }, { id: 1 }], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + + await scrollTo(page, 0, 500); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 13, 6, 1); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + }); + + test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and appointments are grouped by date`, async ({ page }) => { + await createScheduler(page, { + showAllDayPanel, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'horizontal', + groupByDate: true, + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 2)); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 2); + + await scrollTo(page, 0, 500); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 13, 6, 2); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 2); + }); + + test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and appointments are grouped vertically`, async ({ page }) => { + await createScheduler(page, { + showAllDayPanel, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + const indexDifference = showAllDayPanel ? 1 : 0; + await checkSelectionWhenFocusedInViewport( + scheduler, + 11 - indexDifference, + 6, + 1, + ); + + await scrollTo(page, 0, 1100); + await checkSelectionWhenFocusedIsNotInViewport( + scheduler, + 0, + 2 + indexDifference, + 1, + ); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport( + scheduler, + 11 - indexDifference, + 6 - indexDifference, + 1, + ); + }); + }); + + test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async ({ page }) => { + await createScheduler(page, { + showAllDayPanel: true, + groups: ['resourceId0'], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); + + await checkAllDayCellsWhenInViewport(scheduler); + + await scrollTo(page, 0, 500); + await checkAllDayCellsWhenInViewport(scheduler); + + await scrollTo(page, 0, 0); + await checkAllDayCellsWhenInViewport(scheduler); + }); + + test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when vertical grouping is used', async ({ page }) => { + await createScheduler(page, { + showAllDayPanel: true, + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); + + await checkAllDayCellsWhenInViewport(scheduler); + + await scrollTo(page, 0, 500); + await checkAllDayCellsWhenNotInViewport(scheduler); + + await scrollTo(page, 0, 0); + await checkAllDayCellsWhenInViewport(scheduler); + }); + + test('Selection should work correctly while scrolling', async ({ page }) => { + await createScheduler(page, { + groups: ['resourceId0'], + }); + + const scheduler = new Scheduler(page, '#container'); + + await selectCells( + scheduler.dateTable, + scheduler.getDateTableCell(0, 0), + scheduler.getDateTableCell(0, 1), + ); + + await checkSelectionWhenFocusedInViewport(scheduler, 11, 6, 1); + + await scrollTo(page, 0, 500); + + await moveMouse(scheduler.dateTable, scheduler.getDateTableCell(4, 1)); + await checkSelectionWhenFocusedInViewport(scheduler, 18, 6, 1, 4); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 20, 6, 6); + }); + + test('Selection should work correctly while scrolling when appointments are grouped vertically', async ({ page }) => { + await createScheduler(page, { + groups: ['resourceId0'], + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await selectCells( + scheduler.dateTable, + scheduler.getDateTableCell(0, 0), + scheduler.getDateTableCell(0, 1), + ); + + await checkSelectionWhenFocusedInViewport(scheduler, 10, 5, 1); + + await scrollTo(page, 0, 500); + + await moveMouse(scheduler.dateTable, scheduler.getDateTableCell(4, 1)); + await checkSelectionWhenFocusedInViewport(scheduler, 18, 6, 1, 4); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedIsNotInViewport(scheduler, 18, 5, 5); + }); + + test('Selection should work in month view', async ({ page }) => { + await createScheduler(page, { + views: [{ + type: 'month', + intervalCount: 30, + }], + currentView: 'month', + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + + await scrollTo(page, 0, 1500); + await expect(scheduler.getSelectedCells()).toHaveCount(0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + }); + + test('Selection should work in timeline views', async ({ page }) => { + await createScheduler(page, { + views: ['timelineDay', 'timelineWeek', 'timelineMonth'], + currentView: 'timelineDay', + startDayHour: 0, + endDayHour: 2, + height: 250, + groups: ['resourceId0'], + crossScrollingEnabled: true, + resources: [{ + fieldExpr: 'resourceId0', + dataSource: [ + { id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, + { id: 5 }, { id: 6 }, { id: 7 }, { id: 8 }, { id: 9 }, + ], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + const checkSelection = async (): Promise => { + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); + + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + + await scrollTo(page, 0, 500); + await expect(scheduler.getSelectedCells()).toHaveCount(0); + + await scrollTo(page, 0, 0); + await checkSelectionWhenFocusedInViewport(scheduler, 2, 0, 1); + }; + + await checkSelection(); + + await scheduler.option('currentView', 'timelineWeek'); + await checkSelection(); + + await scheduler.option('currentView', 'timelineMonth'); + await checkSelection(); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/const/index.ts b/e2e/playwright/tests/scheduler/common/const/index.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/const/index.ts rename to e2e/playwright/tests/scheduler/common/const/index.ts diff --git a/e2e/playwright/tests/scheduler/common/dataSource/load.spec.ts b/e2e/playwright/tests/scheduler/common/dataSource/load.spec.ts new file mode 100644 index 000000000000..3343f2b15131 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dataSource/load.spec.ts @@ -0,0 +1,144 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +interface TestOptions { + startDate?: Date; + endDate?: Date; + loadCount?: number; +} + +type TestWindow = Window & { testOptions?: TestOptions }; + +const getWindow = (page: Page): Promise => page.evaluate( + () => (window as TestWindow).testOptions, +); +const repaint = (page: Page): Promise => page.evaluate(() => { + (window as any).widget.repaint(); +}); + +const pushDataToStore = async ( + page: Page, + key: unknown, + data: unknown, +): Promise => page.evaluate(({ storeKey, storeData }) => { + const store = (window as any).widget.getDataSource().store(); + store.push([{ type: 'update', key: storeKey, data: storeData }]); +}, { storeKey: key, storeData: data }); + +const createSchedulerWithLoadOptions = async ( + page: Page, + groupByDate: boolean, +): Promise => createWidget(page, 'dxScheduler', (groupByDateArg: boolean) => ({ + dataSource: { + load: (loadOptions) => { + const { startDate, endDate } = loadOptions; + + // added dates to global scope because there isn't another acceptable way to test them + (window as TestWindow).testOptions = { + startDate, + endDate, + }; + }, + }, + currentDate: new Date(2021, 4, 11), + width: 700, + height: 500, + startDayHour: 0, + endDayHour: 3, + groupByDate: groupByDateArg, + views: ['week'], + currentView: 'week', +}), SCHEDULER_SELECTOR, { arg: groupByDate }); + +test.describe('Scheduler - DataSource loading', () => { + test('it should correctly load items with post processing', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + dataSource: { + store: [ + { + text: 'appt-0', + startDate: new Date(2021, 3, 26, 9, 30), + endDate: new Date(2021, 3, 26, 11, 30), + }, { + text: 'appt-1', + startDate: new Date(2021, 3, 27, 9, 30), + endDate: new Date(2021, 3, 27, 11, 30), + }, { + text: 'appt-2', + startDate: new Date(2021, 3, 28, 9, 30), + endDate: new Date(2021, 3, 28, 11, 30), + }, + ], + postProcess: (items) => [items[0]], + }, + views: ['workWeek'], + currentView: 'workWeek', + currentDate: new Date(2021, 3, 27), + startDayHour: 9, + endDayHour: 19, + height: 600, + width: 800, + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment0 = scheduler.getAppointment('appt-0'); + + await expect(scheduler.appointments).toHaveCount(1); + await expect(appointment0.element).toBeAttached(); + }); + + [true, false].forEach((groupByDate) => { + test(`it should have start and end date in load options groupByDate=${groupByDate}`, async ({ page }) => { + await createSchedulerWithLoadOptions(page, groupByDate); + + await expect.poll(async () => (await getWindow(page))?.startDate) + .toEqual(new Date(2021, 4, 9)); + await expect.poll(async () => (await getWindow(page))?.endDate) + .toEqual(new Date(2021, 4, 15, 2, 59)); + }); + + test(`it should have dates in load options when view dates changing. groupByDate=${groupByDate}`, async ({ page }) => { + await createSchedulerWithLoadOptions(page, groupByDate); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await toolbar.navigator.nextButton.click(); + + await expect.poll(async () => (await getWindow(page))?.startDate) + .toEqual(new Date(2021, 4, 16)); + await expect.poll(async () => (await getWindow(page))?.endDate) + .toEqual(new Date(2021, 4, 22, 2, 59)); + }); + }); + + test('it should not call additional DataSource loads after repaint', async ({ page }) => { + await page.evaluate(() => { + (window as TestWindow).testOptions = { + loadCount: 0, + }; + (window as any).widget = ($('#container') as any) + .dxScheduler({ + dataSource: { + store: new (window as any).DevExpress.data.ArrayStore({ + data: [], + onLoaded: () => { (window as TestWindow).testOptions!.loadCount! += 1; }, + }), + }, + }).dxScheduler('instance'); + }); + + await repaint(page); + await repaint(page); + await repaint(page); + + await pushDataToStore(page, 0, {}); + // No event marks that the store push is processed, and an extra load must have time to happen. + await page.waitForTimeout(200); + + await expect.poll(async () => (await getWindow(page))?.loadCount).toBe(2); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/DNDToFakeCell.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/DNDToFakeCell.spec.ts new file mode 100644 index 000000000000..1b8b24ac83ed --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/DNDToFakeCell.spec.ts @@ -0,0 +1,41 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { appendElementTo } from '../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Drag-n-drop to fake cell', () => { + test('Should not select cells outside the scheduler(T1040795)', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'scheduler'); + await appendElementTo(page, '#container', 'div', 'fake', { + width: '400px', height: '100px', + }); + await page.evaluate(() => { + $('#fake').addClass('scheduler-date-table-cell'); + }); + + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + text: 'app', + startDate: new Date(2021, 3, 26, 2), + endDate: new Date(2021, 3, 26, 2, 30), + }, + ], + views: ['day'], + currentDate: new Date(2021, 3, 26), + height: 200, + width: 400, + }, '#scheduler'); + + const scheduler = new Scheduler(page, '#container'); + + const { element } = scheduler.getAppointment('app'); + + await dragToOffset(page, element, 0, 200); + + await expect(page.locator('#fake')) + .not.toHaveClass(classMatcher('dx-scheduler-date-table-droppable-cell')); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T1017720.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1017720.spec.ts new file mode 100644 index 000000000000..6d98ae6b9d69 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1017720.spec.ts @@ -0,0 +1,55 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('T1017720', () => { + test('Drag-n-drop appointment above SVG element(T1017720)', async ({ page }) => { + await createWidget(page, 'dxChart', { + width: '100%', + height: 1300, + series: { + type: 'bar', + color: '#ffaa66', + }, + }); + + await createWidget(page, 'dxPopup', () => ({ + width: '90%', + height: '90%', + visible: true, + contentTemplate: () => { + const scheduler = $('
'); + + (scheduler as any).dxScheduler({ + width: '100%', + height: '100%', + startDayHour: 11, + dataSource: [{ + text: 'text', + startDate: new Date(2021, 6, 27, 11), + endDate: new Date(2021, 6, 27, 14), + allDay: false, + }], + views: ['week'], + currentDate: new Date(2021, 6, 27, 12), + currentView: 'week', + }); + + return scheduler; + }, + })); + + const scheduler = new Scheduler(page, '#scheduler'); + const draggableAppointment = scheduler.getAppointment('text'); + + await dragToOffset(page, draggableAppointment.element, 330, 0); + + await testScreenshot(page, 'drag-n-drop-to-right(T1017720).png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -330, 70); + + await testScreenshot(page, 'drag-n-drop-to-left(T1017720).png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T1080232.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1080232.spec.ts new file mode 100644 index 000000000000..92308402a3dd --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1080232.spec.ts @@ -0,0 +1,86 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { appendElementTo } from '../../../../helpers/domUtils'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +const getRect = (element: Locator): Promise<{ top: number }> => element + .evaluate((node) => ({ top: node.getBoundingClientRect().top })); + +test.describe('Appointment (T1080232)', () => { + test('it should correctly drag external item to the appointment after drag appointment', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'list'); + + await page.evaluate(() => { + $('#list').append('
drag-item
').addClass('drag-item'); + }); + + await appendElementTo(page, '#container', 'div', 'scheduler'); + + await createWidget(page, 'dxSortable', { + group: 'resourceGroup', + }, '#list'); + + await createWidget(page, 'dxScheduler', () => ({ + resources: [ + { + fieldExpr: 'resourceId', + dataSource: [ + { id: 0, color: '#e01e38' }, + { id: 1, color: '#f98322' }, + { id: 2, color: '#1e65e8' }, + ], + label: 'Color', + }, + ], + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'day', + dataSource: [{ + text: 'Appt-01', + startDate: new Date(2021, 3, 26, 10), + endDate: new Date(2021, 3, 26, 11), + }, { + text: 'Appt-02', + startDate: new Date(2021, 3, 26, 12), + endDate: new Date(2021, 3, 26, 13), + }], + views: ['day'], + currentDate: new Date(2021, 3, 26), + startDayHour: 9, + width: 800, + height: 600, + appointmentTemplate(e, _, element) { + const newData = e.appointmentData; + + return element + .text(newData.text) + .dxSortable({ + group: 'resourceGroup', + data: [newData], + onAdd: () => { + element.attr('data-status', 'Added'); + }, + }); + }, + }), '#scheduler'); + + const scheduler = new Scheduler(page, '#scheduler'); + const dragItem = page.locator('.drag-item'); + const cell01 = scheduler.getDateTableCell(1, 0); + const appt01 = scheduler.getAppointment('Appt-01'); + const appt02 = scheduler.getAppointment('Appt-02'); + + await dragToElement(page, appt01.element, cell01); + + const { top: cell00Top } = await getRect(scheduler.getDateTableCell(0, 0)); + + await expect.poll(async () => (await getRect(appt01.element)).top).toBe(cell00Top); + + await dragToElement(page, dragItem, appt02.element); + + await expect(appt02.element.locator('.dx-item-content')) + .toHaveAttribute('data-status', 'Added'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T1118059.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1118059.spec.ts new file mode 100644 index 000000000000..adb9682fda57 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1118059.spec.ts @@ -0,0 +1,113 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { setStyleAttribute } from '../../../../helpers/domUtils'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#scheduler'; + +// eslint-disable-next-line no-multi-str +const markup = '
\ +
drag container
\ +
top right space
\ +
\ +
\ +
left space
\ +
\ +
'; + +const SCHEDULER_OPTIONS = { + dataSource: [{ + text: 'All day test app 1', + startDate: new Date(2021, 3, 26), + endDate: new Date(2021, 3, 26), + allDay: true, + }, { + text: 'All day test app 2', + startDate: new Date(2021, 3, 27), + endDate: new Date(2021, 3, 27), + allDay: true, + }, { + text: 'Regular test app', + startDate: new Date(2021, 3, 27, 10, 30), + endDate: new Date(2021, 3, 27, 11), + }], + views: [{ + type: 'day', + intervalCount: 2, + }], + currentDate: new Date(2021, 3, 26), + startDayHour: 9, + height: 600, + width: 500, +}; + +const safeEvent = (page: Page, value: string): Promise => page.evaluate((eventName) => { + (window as any).eventName = eventName; +}, value); + +const getEventName = (page: Page): Promise => page.evaluate( + () => (window as any).eventName, +); + +const appendMarkup = async (page: Page): Promise => { + await setStyleAttribute(page, '#container', 'display: flex; flex-direction: column;'); + + await page.evaluate((html) => { + $('#container').append(html); + }, markup); +}; + +test.describe('T1118059', () => { + test('After drag to draggable component, should be called onAppointmentDeleting event only', async ({ page }) => { + await appendMarkup(page); + + await createWidget(page, 'dxDraggable', { + group: 'appointmentsGroup', + }, '#drag-container'); + + await createWidget(page, 'dxScheduler', (options: Record) => ({ + ...options, + onAppointmentUpdated: () => { (window as any).eventName = 'onAppointmentUpdated'; }, + onAppointmentUpdating: () => { (window as any).eventName = 'onAppointmentUpdating'; }, + onAppointmentDeleting: () => { (window as any).eventName = 'onAppointmentDeleting'; }, + appointmentDragging: { + group: 'appointmentsGroup', + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + }, + }), SCHEDULER_SELECTOR, { arg: SCHEDULER_OPTIONS }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await dragToElement(page, scheduler.getAppointment('Regular test app').element, page.locator('#drag-container')); + + await expect.poll(() => getEventName(page)).toBe('onAppointmentDeleting'); + }); + + test('After drag over component area, shouldn\'t called onAppointment* data events and appointment shouldn\'t change position', async ({ page }) => { + await safeEvent(page, ''); + await appendMarkup(page); + + await createWidget(page, 'dxScheduler', (options: Record) => ({ + ...options, + onAppointmentUpdated: () => { (window as any).eventName = 'onAppointmentUpdated'; }, + onAppointmentUpdating: () => { (window as any).eventName = 'onAppointmentUpdating'; }, + onAppointmentDeleting: () => { (window as any).eventName = 'onAppointmentDeleting'; }, + }), SCHEDULER_SELECTOR, { arg: SCHEDULER_OPTIONS }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await dragToElement(page, scheduler.getAppointment('All day test app 2').element, page.locator('#space-right')); + + await expect.poll(() => getEventName(page)).toBe(''); + await expect(scheduler.getAppointment('All day test app 2').date).toHaveText('April 27'); + + await dragToElement(page, scheduler.getAppointment('Regular test app').element, page.locator('#left-right')); + + await expect.poll(() => getEventName(page)).toBe(''); + await expect(scheduler.getAppointment('Regular test app').date).toHaveText('10:30 AM - 11:00 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T1235433.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1235433.spec.ts new file mode 100644 index 000000000000..70dd994da35a --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1235433.spec.ts @@ -0,0 +1,126 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { textMatcher } from '../../../../models/internal/textMatcher'; +import Scheduler from '../../../../models/scheduler'; +import type Appointment from '../../../../models/scheduler/appointment'; +import { scrollTo } from '../../helpers/utils'; + +const createScheduler = (page: Page, view: string) => createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource: [ + { + text: 'Book 1', + startDate: new Date('2021-02-02T18:00:00.000Z'), + endDate: new Date('2021-02-02T19:00:00.000Z'), + priority: 1, + }, { + text: 'Book 2', + startDate: new Date('2021-02-03T01:00:00.000Z'), + endDate: new Date('2021-02-03T02:15:00.000Z'), + priority: 1, + }, { + text: 'Book 3', + startDate: new Date('2021-02-09T01:00:00.000Z'), + endDate: new Date('2021-02-09T02:15:00.000Z'), + priority: 1, + }, + ], + views: [view], + currentView: view, + currentDate: new Date('2021-02-02T17:00:00.000Z'), + firstDayOfWeek: 0, + scrolling: { mode: 'virtual' }, + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + groups: ['priority'], + useDropDownViewSwitcher: false, + resources: [{ + fieldExpr: 'priority', + dataSource: [ + { id: 1, text: 'Low Priority', color: 'green' }, + { id: 2, text: 'High Priority', color: 'blue' }, + ], + label: 'Priority', + }], + height: 580, +}); + +const dragAppointmentByCircle = async ( + page: Page, + appointment: Appointment, + label: string[], + description: string[], +): Promise => { + await dragToOffset(page, appointment.element, -200, 0); + await expect(appointment.element).toHaveAttribute('aria-label', textMatcher(label[0])); + await expect.poll(() => appointment.getAriaDescription()).toContain(description[0]); + + await dragToOffset(page, appointment.element, 0, 200); + await expect(appointment.element).toHaveAttribute('aria-label', textMatcher(label[1])); + await expect.poll(() => appointment.getAriaDescription()).toContain(description[1]); + + await dragToOffset(page, appointment.element, 200, 0); + await expect(appointment.element).toHaveAttribute('aria-label', textMatcher(label[2])); + await expect.poll(() => appointment.getAriaDescription()).toContain(description[2]); + + await dragToOffset(page, appointment.element, 0, -200); + await expect(appointment.element).toHaveAttribute('aria-label', textMatcher(label[3])); + await expect.poll(() => appointment.getAriaDescription()).toContain(description[3]); +}; +const appointmentDescriptions = ['Group: Low Priority', 'Group: High Priority', 'Group: High Priority', 'Group: Low Priority']; +const appointment1Times = ['9:00 AM - 10:00 AM', '9:00 AM - 10:00 AM', '10:00 AM - 11:00 AM', '10:00 AM - 11:00 AM']; +const appointment2Times = ['4:00 PM - 5:15 PM', '4:00 PM - 5:15 PM', '5:00 PM - 6:15 PM', '5:00 PM - 6:15 PM']; + +test.describe('Scheduler Drag-and-Drop inside Group', () => { + test.use({ theme: 'generic.light' }); + + test('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineDay)', async ({ page }) => { + await createScheduler(page, 'timelineDay'); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.element).toBeAttached(); + + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 1'), appointment1Times, appointmentDescriptions); + await scrollTo(page, 1400, 0); + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 2'), appointment2Times, appointmentDescriptions); + }); + + test('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineWorkWeek)', async ({ page }) => { + await createScheduler(page, 'timelineWorkWeek'); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.element).toBeAttached(); + + await scrollTo(page, 2400, 0); + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 1'), appointment1Times, appointmentDescriptions); + await scrollTo(page, 3400, 0); + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 2'), appointment2Times, appointmentDescriptions); + }); + + test('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineMonth)', async ({ page }) => { + await createScheduler(page, 'timelineMonth'); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.element).toBeAttached(); + + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 1'), [ + 'February 1, 2021', + 'February 1, 2021', + 'February 2, 2021', + 'February 2, 2021', + ], appointmentDescriptions); + await scrollTo(page, 1000, 0); + await dragAppointmentByCircle(page, scheduler.getAppointment('Book 3'), [ + 'February 7, 2021', + 'February 7, 2021', + 'February 8, 2021', + 'February 8, 2021', + ], appointmentDescriptions); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T1263508.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1263508.spec.ts new file mode 100644 index 000000000000..b03a25bd40be --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T1263508.spec.ts @@ -0,0 +1,99 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement, finishDrag, startDragToElement } from '../../../../helpers/dragUtils'; +import { textMatcher } from '../../../../models/internal/textMatcher'; +import Scheduler from '../../../../models/scheduler'; + +const DRAGGABLE_ITEM_CLASS = 'dx-card'; +const draggingGroupName = 'appointmentsGroup'; + +interface Task { text: string } + +const initList = (page: Page): Promise => page.evaluate(() => { + $('
', { id: 'list' }).appendTo('#parentContainer'); +}); + +const addTasksToList = (page: Page, tasks: Task[]): Promise => page.evaluate((items) => { + items.forEach((task) => { + $('
', { + class: 'dx-card', + text: task.text, + }).appendTo('#list'); + }); +}, tasks); + +const createItemElement = async (page: Page, task: Task): Promise => { + await createWidget(page, 'dxDraggable', ({ group, data }: { group: string; data: Task }) => ({ + group, + data, + clone: true, + onDragStart(e) { + e.itemData = e.fromData; + }, + }), `.${DRAGGABLE_ITEM_CLASS}:contains(${task.text})`, { arg: { group: draggingGroupName, data: task } }); +}; + +test.describe('Scheduler Drag-and-Drop Fix', () => { + test('Scheduler - The \'Cannot read properties of undefined (reading \'getTime\')\' error is thrown on an attempt to drag an outside element if the previous drag operation was canceled', async ({ page }) => { + const tasks = [ + { text: 'Brochures' }, + ]; + + await initList(page); + await addTasksToList(page, tasks); + await Promise.all(tasks.map((task) => createItemElement(page, task))); + await createWidget(page, 'dxScheduler', ({ group, options }: { group: string; options: Record }) => ({ + ...options, + appointmentDragging: { + group, + onDragEnd(e) { + e.cancel = e.event.ctrlKey; + }, + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + onAdd(e) { + e.component.addAppointment(e.itemData); + }, + }, + }), '#container', { + arg: { + group: draggingGroupName, + options: { + timeZone: 'America/Los_Angeles', + dataSource: [ + { + text: 'Book', + startDate: new Date('2021-04-26T19:00:00.000Z'), + endDate: new Date('2021-04-26T20:00:00.000Z'), + }, + ], + currentDate: new Date(2021, 3, 26), + startDayHour: 9, + height: 600, + editing: true, + }, + }, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Book').element; + const targetCell = scheduler.getDateTableCell(5, 0); + const draggableItem = page.locator(`.${DRAGGABLE_ITEM_CLASS}`).filter({ hasText: textMatcher('Brochures') }); + + await expect(scheduler.element).toBeAttached(); + + await startDragToElement(page, draggableAppointment, targetCell); + await page.keyboard.press('Escape'); + + await finishDrag(page); + + await expect(draggableItem).toBeAttached(); + await dragToElement(page, draggableItem, targetCell); + + const newAppointment = scheduler.getAppointment('Brochures'); + + await expect(newAppointment.element).toBeAttached(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/T697037.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/T697037.spec.ts new file mode 100644 index 000000000000..8e5eb4be1a47 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/T697037.spec.ts @@ -0,0 +1,37 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('T697037', () => { + test('Recurrence exception date should equal date of appointment, which excluded from recurrence(T697037)', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + dataSource: [{ + text: 'Test', + startDate: '2018-11-26T02:00:00Z', + endDate: '2018-11-26T02:15:00Z', + recurrenceRule: 'FREQ=DAILY;COUNT=5', + recurrenceException: '', + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2018, 10, 26), + dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ssZ', + timeZone: 'Etc/UTC', + showAllDayPanel: false, + recurrenceEditMode: 'occurrence', + onAppointmentUpdating(e) { + (window as any).recurrenceException = e.newData.recurrenceException; + }, + })); + + const scheduler = new Scheduler(page, '#container'); + const targetCell = scheduler.getDateTableCell(3, 3); + const appointment = scheduler.getAppointment('Test', 2); + + await dragToElement(page, appointment.element, targetCell); + + await expect.poll(() => page.evaluate(() => (window as any).recurrenceException)) + .toBe('20181128T020000Z'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/appointmentCollector.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/appointmentCollector.spec.ts new file mode 100644 index 000000000000..e18e809cbb7f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/appointmentCollector.spec.ts @@ -0,0 +1,145 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement, dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { appointmentCollectorData } from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Drag-and-drop behaviour for the appointment tooltip', () => { + test('Drag-n-drop between a scheduler table cell and the appointment tooltip', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource: appointmentCollectorData, + maxAppointmentsPerCell: 2, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Approve Personal Computer Upgrade Plan'); + const collector = scheduler.collectors.find('2'); + const { appointmentTooltip } = scheduler; + const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); + + await collector.click(); + + await appointmentTooltip.expectVisible(); + await dragToElement(page, appointmentTooltipItem.element, scheduler.getDateTableCell(2, 5)); + await expect(appointmentTooltipItem.element).not.toBeAttached(); + await expect(appointment.element).toBeAttached(); + await expect(appointment.element).toHaveCSS('height', '76px'); + await expect(appointment.date).toHaveText('9:30 AM - 10:30 AM'); + await dragToElement(page, appointment.element, scheduler.getDateTableCell(3, 2)); + + await collector.click(); + + await appointmentTooltip.expectVisible(); + await expect(appointment.element).not.toBeAttached(); + }); + + test('Drag-n-drop to the cell on the left should work in week view (T1005115)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2019, 3, 1), + views: ['week'], + currentView: 'week', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2019, 3, 3, 9, 30), + endDate: new Date(2019, 3, 3, 11, 30), + }, { + text: 'Approve Personal Computer Upgrade Plan', + startDate: new Date(2019, 3, 3, 10, 0), + endDate: new Date(2019, 3, 3, 10, 30), + }, { + text: 'Install New Database', + startDate: new Date(2019, 3, 3, 9, 45), + endDate: new Date(2019, 3, 3, 11, 15), + }], + maxAppointmentsPerCell: 2, + height: 800, + startDayHour: 9, + }); + + const scheduler = new Scheduler(page, '#container'); + const collector = scheduler.collectors.find('1'); + const { appointmentTooltip } = scheduler; + const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); + + await collector.click(); + + await dragToElement( + page, + appointmentTooltipItem.element, + scheduler.getDateTableCell(2, 2), + ); + + await testScreenshot(page, 'drag-n-drop-from-tooltip-to-left-cell-in-week.png', { element: scheduler.workSpace }); + }); + + test('Drag-n-drop in the same table cell', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource: appointmentCollectorData, + maxAppointmentsPerCell: 2, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const collector = scheduler.collectors.find('2'); + const { appointmentTooltip } = scheduler; + const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); + + await collector.click(); + + await appointmentTooltip.expectVisible(); + await dragToOffset(page, appointmentTooltipItem.element, 0, -90); + + await collector.click(); + + await appointmentTooltip.expectVisible(); + await expect(appointmentTooltipItem.element).toBeAttached(); + }); + + test.describe('generic.light', () => { + test.use({ theme: 'generic.light' }); + + test('Drag-n-drop to the cell below should work in month view (T1005115)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2019, 3, 1), + views: ['month'], + currentView: 'month', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2019, 3, 3, 9, 30), + endDate: new Date(2019, 3, 3, 11, 30), + }, { + text: 'Approve Personal Computer Upgrade Plan', + startDate: new Date(2019, 3, 3, 10, 0), + endDate: new Date(2019, 3, 3, 11, 0), + }, { + text: 'Install New Database', + startDate: new Date(2019, 3, 3, 9, 45), + endDate: new Date(2019, 3, 3, 11, 15), + }], + maxAppointmentsPerCell: 2, + height: 800, + }); + + const scheduler = new Scheduler(page, '#container'); + const collector = scheduler.collectors.find('1 more'); + const { appointmentTooltip } = scheduler; + const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); + + await collector.element.click(); + await dragToElement( + page, + appointmentTooltipItem.element, + scheduler.getDateTableCell(1, 3), + ); + + await testScreenshot(page, 'drag-n-drop-from-tooltip-to-cell-below-in-month.png', { element: scheduler.workSpace }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/basic.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/basic.spec.ts new file mode 100644 index 000000000000..55142024e1d9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/basic.spec.ts @@ -0,0 +1,201 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { dragToElement, finishDrag, startDragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { getThemeName } from '../../../../helpers/themeUtils'; +import Scheduler from '../../../../models/scheduler'; +import { dataSource } from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +const MAX_SCROLL_MARGIN = 50; + +const dragToOffsetWithPageScroll = async ( + page: Page, + source: Locator, + deltaX: number, + deltaY: number, +): Promise => { + await startDragToOffset(page, source, 0, 0); + + const box = await source.boundingBox(); + + if (!box) { + throw new Error(`${source.toString()} has no box to point at`); + } + + const end = await page.evaluate(({ x, y, maxMargin }) => { + const root = document.documentElement; + const pageX = Math.min(Math.max(0, x + window.scrollX), root.scrollWidth); + const pageY = Math.min(Math.max(0, y + window.scrollY), root.scrollHeight); + const getScroll = (point: number, scroll: number, size: number): number => { + const margin = Math.min(maxMargin, Math.floor(size / 2)); + + if (point >= scroll + size - margin) { + return point - size + margin; + } + + return point <= scroll + margin ? point - margin : scroll; + }; + + window.scrollTo( + getScroll(pageX, window.scrollX, root.clientWidth), + getScroll(pageY, window.scrollY, root.clientHeight), + ); + + return { x: pageX - window.scrollX, y: pageY - window.scrollY }; + }, { + x: Math.round(box.x + box.width / 2) + deltaX, + y: Math.round(box.y + box.height / 2) + deltaY, + maxMargin: MAX_SCROLL_MARGIN, + }); + + await page.mouse.move(end.x, end.y, { steps: 10 }); + await finishDrag(page); +}; + +test.describe('Drag-and-drop appointments in the Scheduler basic views', () => { + ['day', 'week', 'workWeek'].forEach((view) => test(`Drag-n-drop in the "${view}" view`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(4, 0)); + await expect(draggableAppointment.element).toHaveCSS('height', '38px'); + await expect(draggableAppointment.date).toHaveText('11:00 AM - 11:30 AM'); + })); + + test('Drag-n-drop in the "month" view', async ({ page, theme }) => { + await createScheduler(page, { + views: ['month'], + currentView: 'month', + dataSource, + height: 834, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(0, 4)); + await expect(draggableAppointment.element) + .toHaveCSS('height', getThemeName(theme) === 'fluent-next' ? '23.75px' : '23.8281px'); + await expect(draggableAppointment.date).toHaveText('9:00 AM - 9:30 AM'); + }); + + test('Drag-n-drop when browser has horizontal scroll', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource: [{ + text: 'Staff Productivity Report', + startDate: new Date(2019, 3, 6, 9, 0), + endDate: new Date(2019, 3, 6, 10, 30), + resourceId: 2, + }], + width: 1800, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Staff Productivity Report'); + + await dragToOffsetWithPageScroll(page, draggableAppointment.element, 250, -50); + await draggableAppointment.expectState('allDay'); + }); + + test('Drag-n-drop when browser has vertical scroll', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource: [{ + text: 'Staff Productivity Report', + startDate: new Date(2019, 3, 1, 21, 0), + endDate: new Date(2019, 3, 1, 21, 30), + resourceId: 2, + }], + height: 1800, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Staff Productivity Report'); + + await dragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(25, 0)); + await expect(draggableAppointment.date).toHaveText('9:30 PM - 10:00 PM'); + }); + + test('Drag recurrent appointment occurrence from collector (T832887)', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + firstDayOfWeek: 2, + startDayHour: 4, + maxAppointmentsPerCell: 1, + dataSource: [{ + text: 'Recurrence one', + startDate: new Date(2019, 2, 26, 8, 0), + endDate: new Date(2019, 2, 26, 10, 0), + recurrenceException: '', + recurrenceRule: 'FREQ=DAILY', + }, { + text: 'Non-recurrent appointment', + startDate: new Date(2019, 2, 26, 7, 0), + endDate: new Date(2019, 2, 26, 11, 0), + }, { + text: 'Recurrence two', + startDate: new Date(2019, 2, 26, 8, 0), + endDate: new Date(2019, 2, 26, 10, 0), + recurrenceException: '', + recurrenceRule: 'FREQ=DAILY', + }], + currentDate: new Date(2019, 2, 26), + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Recurrence two'); + const collector = scheduler.collectors.find('2'); + const { appointmentTooltip } = scheduler; + const appointmentTooltipItem = appointmentTooltip.getListItem('Recurrence two'); + const popup = scheduler.getDeleteRecurrenceDialog(); + + await collector.click(); + + await appointmentTooltip.expectVisible(); + await dragToElement(page, appointmentTooltipItem.element, scheduler.getDateTableCell(2, 2)); + await expect(appointmentTooltipItem.element).not.toBeAttached(); + await popup.appointment.click(); + await expect(appointment.element).toBeAttached(); + await expect(appointment.date).toHaveText('4:00 AM - 6:00 AM'); + await expect(collector.element).not.toBeAttached(); + }); + + test('Drag-n-drop the appointment to the left column to the cell that has the same time', async ({ page }) => { + await createScheduler(page, { + timeZone: 'Etc/GMT', + dataSource: [{ + text: 'Test appointment', + startDate: new Date('2022-09-08T10:00:00.000Z'), + endDate: new Date('2022-09-08T10:30:00.000Z'), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date('2022-09-09T10:00:00.000Z'), + startDayHour: 9, + width: 600, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Test appointment'); + + await dragToElement( + page, + draggableAppointment.element, + scheduler.getDateTableCell(2, 2), + ); + + await testScreenshot(page, 'drag-n-drop-appointment-to-left-column.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.spec.ts new file mode 100644 index 000000000000..eab429c722de --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.spec.ts @@ -0,0 +1,60 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { appendElementTo, setStyleAttribute } from '../../../../../helpers/domUtils'; +import { dragToElement } from '../../../../../helpers/dragUtils'; +import Scheduler from '../../../../../models/scheduler'; + +const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; +const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; +const EXPECTED_APPOINTMENT_TIME = '1:00 AM - 2:00 AM'; + +const TEST_APPOINTMENT = { + text: 'My appointment', + startDate: new Date(2021, 3, 30, 1), + endDate: new Date(2021, 3, 30, 2), +}; + +const getSchedulerOptions = (dataSource: unknown[]): Record => ({ + dataSource, + currentView: 'workWeek', + currentDate: new Date(2021, 3, 26), + width: 600, +}); + +const withAppointmentDragging = (options: Record): Record => ({ + ...options, + appointmentDragging: { + group: 'testDragGroup', + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + onAdd(e) { + e.component.addAppointment(e.itemData); + }, + }, +}); + +test.describe('Drag-n-drop appointments between two schedulers with equal cell indexes (T1094035)', () => { + test('Should not lose drag-n-dropped appointment in the second scheduler', async ({ page }) => { + await setStyleAttribute(page, '#container', 'display: flex;'); + await appendElementTo(page, '#container', 'div', FIRST_SCHEDULER_SELECTOR); + await appendElementTo(page, '#container', 'div', SECOND_SCHEDULER_SELECTOR); + + await createWidget(page, 'dxScheduler', withAppointmentDragging, `#${FIRST_SCHEDULER_SELECTOR}`, { arg: getSchedulerOptions([TEST_APPOINTMENT]) }); + await createWidget(page, 'dxScheduler', withAppointmentDragging, `#${SECOND_SCHEDULER_SELECTOR}`, { arg: getSchedulerOptions([]) }); + + const firstScheduler = new Scheduler(page, `#${FIRST_SCHEDULER_SELECTOR}`); + const secondScheduler = new Scheduler(page, `#${SECOND_SCHEDULER_SELECTOR}`); + + const appointmentToMoveElement = firstScheduler + .getAppointment(TEST_APPOINTMENT.text) + .element; + const cellToMoveElement = secondScheduler + .getDateTableCell(2, 0); + + await dragToElement(page, appointmentToMoveElement, cellToMoveElement); + + await expect(secondScheduler.getAppointment(TEST_APPOINTMENT.text).date) + .toHaveText(EXPECTED_APPOINTMENT_TIME); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.spec.ts new file mode 100644 index 000000000000..63632cdb7bf7 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.spec.ts @@ -0,0 +1,134 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { appendElementTo, setStyleAttribute } from '../../../../../helpers/domUtils'; +import { dragToElement } from '../../../../../helpers/dragUtils'; +import Scheduler from '../../../../../models/scheduler'; + +interface TestAppointment { + id: number; + text: string; + startDate: Date; + endDate: Date; +} + +const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; +const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; +const EXPECTED_APPOINTMENT_TIME = '12:00 AM - 1:00 AM'; + +const TEST_APPOINTMENT = { + id: 10, + text: 'My appointment', + startDate: new Date(2021, 3, 28, 1), + endDate: new Date(2021, 3, 28, 2), +}; + +const getBaseSchedulerOptions = (currentDate: Date): Record => ({ + currentDate, + currentView: 'workWeek', + width: 600, +}); + +const createSchedulerWithRemoteDataSource = async ( + page: Page, + options: Record, + selector: string, + appointments: TestAppointment[], +): Promise => { + await page.evaluate(({ widgetOptions, elementSelector, initialAppointments }) => { + class DataSourceMock { + key = 'id'; + + private data: TestAppointment[]; + + constructor(initialData: TestAppointment[] = []) { + this.data = initialData; + } + + load = () => Promise.resolve(this.data); + + insert = (value) => { + this.data = [...this.data, value]; + return Promise.resolve(); + }; + + update = (key, value) => { + this.data = this.data.map((item) => { + if (item.id === key) { + return value; + } + return item; + }); + return Promise.resolve(); + }; + + remove = (id) => { + this.data = this.data.filter((item) => item.id !== id); + return Promise.resolve(); + }; + } + + ($(elementSelector) as any).dxScheduler({ + ...widgetOptions, + appointmentDragging: { + group: 'testDragGroup', + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + onAdd(e) { + e.component.addAppointment(e.itemData); + }, + }, + dataSource: new DataSourceMock(initialAppointments), + }); + }, { widgetOptions: options, elementSelector: selector, initialAppointments: appointments }); +}; + +test.describe('Drag-n-drop appointments between two schedulers with async DataSource (T1094033)', () => { + test('Should set correct start and end dates in drag&dropped appointment', async ({ page }) => { + await setStyleAttribute(page, '#container', 'display: flex;'); + await appendElementTo(page, '#container', 'div', FIRST_SCHEDULER_SELECTOR); + await appendElementTo(page, '#container', 'div', SECOND_SCHEDULER_SELECTOR); + + await createSchedulerWithRemoteDataSource( + page, + getBaseSchedulerOptions(new Date(2021, 3, 26)), + `#${FIRST_SCHEDULER_SELECTOR}`, + [TEST_APPOINTMENT], + ); + + await createWidget( + page, + 'dxScheduler', + (options: Record) => ({ + ...options, + appointmentDragging: { + group: 'testDragGroup', + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + onAdd(e) { + e.component.addAppointment(e.itemData); + }, + }, + dataSource: [], + }), + `#${SECOND_SCHEDULER_SELECTOR}`, + { arg: getBaseSchedulerOptions(new Date(2021, 4, 26)) }, + ); + + const firstScheduler = new Scheduler(page, `#${FIRST_SCHEDULER_SELECTOR}`); + const secondScheduler = new Scheduler(page, `#${SECOND_SCHEDULER_SELECTOR}`); + + const appointmentToMoveElement = firstScheduler + .getAppointment(TEST_APPOINTMENT.text) + .element; + const cellToMoveElement = secondScheduler + .getDateTableCell(0, 0); + + await dragToElement(page, appointmentToMoveElement, cellToMoveElement); + + await expect(secondScheduler.getAppointment(TEST_APPOINTMENT.text).date) + .toHaveText(EXPECTED_APPOINTMENT_TIME); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.spec.ts new file mode 100644 index 000000000000..aea1ca2d7e69 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.spec.ts @@ -0,0 +1,106 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { appendElementTo, setStyleAttribute } from '../../../../../helpers/domUtils'; +import { dragToElement } from '../../../../../helpers/dragUtils'; +import Scheduler from '../../../../../models/scheduler'; + +const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; +const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; +const METHODS_TO_CANCEL = [ + 'onDragStart', + 'onDragMove', + 'onDragEnd', + 'onRemove', + 'onAdd', +]; + +const TEST_APPOINTMENT = { + id: 10, + text: 'My appointment', + startDate: new Date(2021, 3, 28, 1), + endDate: new Date(2021, 3, 28, 2), +}; + +interface WidgetArg { + options: Record; + cancelMethodName: string; +} + +const getSchedulerOptions = ( + dataSource: unknown[], + currentDate: Date, +): Record => ({ + dataSource, + currentDate, + currentView: 'workWeek', + width: 600, +}); + +const withAppointmentDragging = ({ + options, + cancelMethodName, +}: WidgetArg): Record => ({ + ...options, + appointmentDragging: { + group: 'testDragGroup', + onRemove(e) { + e.component.deleteAppointment(e.itemData); + }, + onAdd(e) { + e.component.addAppointment(e.itemData); + }, + [cancelMethodName]: (e) => { + e.cancel = true; + }, + }, +}); + +test.describe('Cancel drag-n-drop when dragging an appointment from one scheduler to another', () => { + METHODS_TO_CANCEL.forEach((methodName) => { + test(`Should remove drag-n-drop classes if event was canceled in method ${methodName}`, async ({ page }) => { + await setStyleAttribute(page, '#container', 'display: flex;'); + await appendElementTo(page, '#container', 'div', FIRST_SCHEDULER_SELECTOR); + await appendElementTo(page, '#container', 'div', SECOND_SCHEDULER_SELECTOR); + + await createWidget( + page, + 'dxScheduler', + withAppointmentDragging, + `#${FIRST_SCHEDULER_SELECTOR}`, + { + arg: { + options: getSchedulerOptions([TEST_APPOINTMENT], new Date(2021, 3, 26)), + cancelMethodName: methodName, + }, + }, + ); + + await createWidget( + page, + 'dxScheduler', + withAppointmentDragging, + `#${SECOND_SCHEDULER_SELECTOR}`, + { + arg: { + options: getSchedulerOptions([], new Date(2021, 4, 26)), + cancelMethodName: methodName, + }, + }, + ); + + const firstScheduler = new Scheduler(page, `#${FIRST_SCHEDULER_SELECTOR}`); + const secondScheduler = new Scheduler(page, `#${SECOND_SCHEDULER_SELECTOR}`); + + const appointmentToMoveElement = firstScheduler + .getAppointment(TEST_APPOINTMENT.text) + .element; + const cellToMoveElement = secondScheduler + .getDateTableCell(0, 0); + + await dragToElement(page, appointmentToMoveElement, cellToMoveElement); + + await expect(firstScheduler.getDroppableCell(), 'Droppable cell class was not removed from the first scheduler.').toHaveCount(0); + await expect(secondScheduler.getDroppableCell(), 'Droppable cell class was not removed from the second scheduler.').toHaveCount(0); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.spec.ts new file mode 100644 index 000000000000..28f21cf3bd45 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.spec.ts @@ -0,0 +1,36 @@ +import { expect, test } from '../../../../fixtures'; +import { finishDrag, startDragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +const APPOINTMENT_DRAG_SOURCE_CLASS = '.dx-scheduler-appointment-drag-source'; + +test.describe('Cancel appointment Drag-and-Drop', () => { + test('on escape - date should not changed when it\'s pressed during dragging (T832754)', async ({ page }) => { + await createScheduler(page, { + _draggingMode: 'default', + height: 600, + views: ['day'], + currentView: 'day', + cellDuration: 30, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2020, 9, 14, 10, 0), + endDate: new Date(2020, 9, 14, 10, 30), + }], + currentDate: new Date(2020, 9, 14), + showAllDayPanel: false, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Appointment'); + + await startDragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(4, 0)); + await page.keyboard.press('Escape'); + + await finishDrag(page); + + await expect(scheduler.element.locator(APPOINTMENT_DRAG_SOURCE_CLASS)).not.toBeAttached(); + await expect(draggableAppointment.date).toHaveText('10:00 AM - 10:30 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.spec.ts new file mode 100644 index 000000000000..282ce99c0ed2 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.spec.ts @@ -0,0 +1,59 @@ +import type { Locator } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +interface ClientMetrics { + clientWidth: number; + clientHeight: number; + clientLeft: number; + clientTop: number; +} + +const getClientMetrics = (element: Locator): Promise => element.evaluate((node) => ({ + clientWidth: node.clientWidth, + clientHeight: node.clientHeight, + clientLeft: node.clientLeft, + clientTop: node.clientTop, +})); + +test.describe('Drag-n-drop appointment after resize (T835545)', () => { + ['day', 'week', 'month', 'timelineDay', 'timelineWeek', 'timelineMonth'].forEach((view) => test(`After drag-n-drop appointment, size of appointment shouldn't change in the '${view}' view`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + startDayHour: 9, + currentDate: new Date(2017, 4, 1), + dataSource: [{ + text: 'app', + startDate: new Date(2017, 4, 1, 9, 0), + endDate: new Date(2017, 4, 1, 10, 0), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const { element, resizableHandle } = scheduler.getAppointment('app'); + + const initSize = await getClientMetrics(element); + + const isVertical = await resizableHandle.bottom.count() !== 0; + + await dragToOffset(page, isVertical ? resizableHandle.bottom : resizableHandle.right, 50, 50); + + await expect.poll(async () => { + const { clientWidth, clientHeight } = await getClientMetrics(element); + + return isVertical ? clientHeight : clientWidth; + }).toBeGreaterThan(isVertical ? initSize.clientHeight : initSize.clientWidth); + + const metricsBeforeDrag = await getClientMetrics(element); + + await dragToOffset(page, element, 10, 10, { + offsetX: 0, + offsetY: 0, + }); + + await expect.poll(() => getClientMetrics(element)).toEqual(metricsBeforeDrag); + })); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/dragEvents.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/dragEvents.spec.ts new file mode 100644 index 000000000000..452a5c992c27 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/dragEvents.spec.ts @@ -0,0 +1,169 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import type { WindowCallbackExtended } from '../../../../helpers/callbackTestHelper'; +import { CallbackTestHelper } from '../../../../helpers/callbackTestHelper'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const initCallbackTesting = async (page: Page): Promise => { + await CallbackTestHelper.initClientTesting(page, [ + 'onDragStartItemData', + 'onDragMoveItemData', + 'onDragEndItemData', + 'onDragEndToItemData', + ]); +}; + +const collectEventsCallbackResults = async (page: Page): Promise => [ + await CallbackTestHelper.getClientResults(page, 'onDragStartItemData'), + await CallbackTestHelper.getClientResults(page, 'onDragMoveItemData'), + await CallbackTestHelper.getClientResults(page, 'onDragEndItemData'), + await CallbackTestHelper.getClientResults(page, 'onDragEndToItemData'), +]; + +const getLeft = (element: Locator): Promise => element.evaluate( + (node) => node.getBoundingClientRect().left, +); + +const INITIAL_APPOINTMENT = { + text: 'Test', + startDate: '2023-01-01T01:00:00', + endDate: '2023-01-01T02:00:00', +}; +const TEST_CASES = [ + { + view: 'month', + expectedToItemData: { + text: 'Test', + startDate: '2023-01-05T01:00:00', + endDate: '2023-01-05T02:00:00', + }, + }, + { + view: 'week', + expectedToItemData: { + text: 'Test', + startDate: '2023-01-05T00:00:00', + endDate: '2023-01-05T01:00:00', + allDay: true, + }, + }, + { + view: 'timelineDay', + expectedToItemData: { + text: 'Test', + startDate: '2023-01-01T01:30:00', + endDate: '2023-01-01T02:30:00', + allDay: false, + }, + }, +]; + +test.describe('Scheduler dragging - drag events', () => { + TEST_CASES.forEach(({ view, expectedToItemData }) => { + test(`Should fire correct events with correct itemData inside during drag-n-drop in ${view} view.`, async ({ page }) => { + await initCallbackTesting(page); + await createWidget(page, 'dxScheduler', (options: Record) => ({ + ...options, + appointmentDragging: { + onDragStart: ({ itemData }) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onDragStartItemData', { ...itemData }); + }, + onDragMove: ({ itemData }) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onDragMoveItemData', { ...itemData }); + }, + onDragEnd: ({ itemData, toItemData }) => { + const clientTesting = (window as WindowCallbackExtended).clientTesting!; + clientTesting.addCallbackResult('onDragEndItemData', { ...itemData }); + clientTesting.addCallbackResult('onDragEndToItemData', { ...toItemData }); + }, + }, + }), SCHEDULER_SELECTOR, { + arg: { + dataSource: [INITIAL_APPOINTMENT], + currentView: view, + currentDate: '2023-01-01', + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment('Test'); + const targetCell = scheduler.getDateTableCell(0, 4); + + await dragToElement(page, appointment.element, targetCell); + + const [ + onDragStartItemData, + onDragMoveItemData, + onDragEndItemData, + onDragEndToItemData, + ] = await collectEventsCallbackResults(page); + + expect(onDragStartItemData.length).toBe(1); + expect(onDragStartItemData[0]).toEqual(INITIAL_APPOINTMENT); + + for (const itemData of onDragMoveItemData) { + expect(itemData).toEqual(INITIAL_APPOINTMENT); + } + + expect(onDragEndItemData.length).toBe(1); + expect(onDragEndToItemData.length).toBe(1); + expect(onDragEndItemData[0]).toEqual(INITIAL_APPOINTMENT); + expect(onDragEndToItemData[0]).toEqual(expectedToItemData); + }); + }); + + test('Should block appointment dragging while onAppointmentUpdating Promise is pending (T1308596)', async ({ page }) => { + await createWidget(page, 'dxScheduler', (options: Record) => ({ + ...options, + onAppointmentUpdating: (e) => { + e.cancel = new Promise((resolve) => { + setTimeout(() => { + resolve(false); + }, 5000); + }); + }, + }), SCHEDULER_SELECTOR, { + arg: { + dataSource: [{ + text: 'Test Appointment', + startDate: new Date(2023, 0, 2, 10, 0), + endDate: new Date(2023, 0, 2, 11, 0), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2023, 0, 2), + height: 600, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment('Test Appointment'); + + const targetCell1 = scheduler.getDateTableCell(18, 2); + const targetCell2 = scheduler.getDateTableCell(18, 5); + + const initialLeft = await getLeft(appointment.element); + + await dragToElement(page, appointment.element, targetCell1); + await dragToElement(page, appointment.element, targetCell2); + await dragToElement(page, appointment.element, targetCell2); + await dragToElement(page, appointment.element, targetCell2); + + // The onAppointmentUpdating Promise resolves on a 5s timer that the page does not report. + await page.waitForTimeout(6000); + + const leftAfterPromiseResolved = await getLeft(appointment.element); + const cell1Left = await getLeft(targetCell1); + + expect(leftAfterPromiseResolved).not.toBe(initialLeft); + expect(leftAfterPromiseResolved).toBe(cell1Left); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png new file mode 100644 index 000000000000..837823d3428a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png new file mode 100644 index 000000000000..0d9f932a618e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..893a064b8712 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png new file mode 100644 index 000000000000..e13d440eb497 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png new file mode 100644 index 000000000000..4448adcc6169 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png new file mode 100644 index 000000000000..822bceaec001 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/externalDragging.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/externalDragging.spec.ts new file mode 100644 index 000000000000..61c6c31277e1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/externalDragging.spec.ts @@ -0,0 +1,54 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { appendElementTo } from '../../../../helpers/domUtils'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Drag-n-drop from another draggable area', () => { + test('Drag-n-drop an appointment when "cellDuration" changes dynamically', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'drag-area'); + + await page.evaluate(() => { + $('
') + .text('New Brochures') + .addClass('item') + .appendTo('#drag-area'); + }); + + await appendElementTo(page, '#container', 'div', 'scheduler'); + + await createWidget(page, 'dxDraggable', () => ({ + group: 'draggableGroup', + data: { text: 'New Brochures' }, + onDragStart(e) { + e.itemData = e.fromData; + }, + }), '#group'); + + await createWidget(page, 'dxDraggable', { + group: 'draggableGroup', + }, '#drag-area'); + + await createScheduler(page, { + views: ['week'], + currentView: 'week', + }, '#scheduler', (options) => ({ + ...options, + appointmentDragging: { + group: 'draggableGroup', + onAdd(e) { + e.component.addAppointment(e.itemData); + e.itemElement.remove(); + }, + }, + })); + + const scheduler = new Scheduler(page, '#scheduler'); + + await scheduler.option('cellDuration', 10); + + await dragToElement(page, page.locator('.item'), scheduler.getDateTableCell(0, 0)); + await expect(scheduler.getAppointmentByIndex(0).date).toHaveText('9:00 AM - 9:10 AM'); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/dragAndDrop/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/init/widget.setup.ts new file mode 100644 index 000000000000..88a1efb1f6ec --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/init/widget.setup.ts @@ -0,0 +1,46 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +type SchedulerOptions = Record; + +const resources = [ + { id: 0, color: '#e01e38' }, + { id: 1, color: '#f98322' }, + { id: 2, color: '#1e65e8' }, +]; + +const getOptions = (options: SchedulerOptions): SchedulerOptions => ({ + views: ['day'], + dataSource: [], + resources: [ + { + fieldExpr: 'resourceId', + dataSource: resources, + label: 'Color', + }, + ], + width: 1666, + height: 833, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'day', + currentDate: new Date(2019, 3, 1), + ...options, +}); + +export default async ( + page: Page, + options: SchedulerOptions = {}, + selector = '#container', + withHandlers?: (options: SchedulerOptions) => SchedulerOptions, +): Promise => { + const widgetOptions = getOptions(options); + + if (withHandlers) { + await createWidget(page, 'dxScheduler', withHandlers, selector, { arg: widgetOptions }); + return; + } + + await createWidget(page, 'dxScheduler', widgetOptions, selector); +}; diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.spec.ts new file mode 100644 index 000000000000..71efd73aeaaa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.spec.ts @@ -0,0 +1,58 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { dragToElement } from '../../../../../helpers/dragUtils'; +import Scheduler from '../../../../../models/scheduler'; + +const METHODS_TO_CANCEL = [ + 'onDragStart', + 'onDragMove', + 'onDragEnd', +]; +const SCHEDULER_SELECTOR = '#container'; + +const TEST_APPOINTMENT = { + id: 10, + text: 'My appointment', + startDate: new Date(2021, 3, 28, 1), + endDate: new Date(2021, 3, 28, 2), +}; + +const getSchedulerOptions = (): Record => ({ + dataSource: [TEST_APPOINTMENT], + currentDate: new Date(2021, 3, 28), + currentView: 'workWeek', + width: 600, +}); + +interface WidgetArg { + options: Record; + methodName: string; +} + +test.describe('Cancel drag-n-drop when dragging an appointment inside the scheduler', () => { + METHODS_TO_CANCEL.forEach((methodName) => { + test(`Should remove drag-n-drop classes if event was canceled in method ${methodName}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', ({ options, methodName: cancelMethodName }: WidgetArg) => ({ + ...options, + appointmentDragging: { + [cancelMethodName]: (e) => { + e.cancel = true; + }, + }, + }), SCHEDULER_SELECTOR, { arg: { options: getSchedulerOptions(), methodName } }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const appointmentToMoveElement = scheduler + .getAppointment(TEST_APPOINTMENT.text) + .element; + const cellToMoveElement = scheduler + .getDateTableCell(1, 0); + + await dragToElement(page, appointmentToMoveElement, cellToMoveElement); + + await expect(scheduler.getDroppableCell(), 'Droppable cell class was not removed.').toHaveCount(0); + await scheduler.getAppointment(TEST_APPOINTMENT.text).expectState('draggableSource', false); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/base.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/base.spec.ts new file mode 100644 index 000000000000..855413f7aa9c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/base.spec.ts @@ -0,0 +1,410 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Outlook dragging base tests', () => { + test('Basic drag-n-drop movements in groups', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 26, 8, 30), + endDate: new Date(2021, 2, 26, 11, 0), + priorityId: 1, + }], + groups: ['priorityId'], + resources: [{ + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: [{ + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }], + label: 'Priority', + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 26), + startDayHour: 8, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 330, 70); + + await testScreenshot(page, 'drag-n-drop-to-orange-group.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -330, 70); + await testScreenshot(page, 'drag-n-drop-blue-group.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop movements from tooltip in week view', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Appointment 1', + startDate: new Date(2021, 2, 21, 9, 30), + endDate: new Date(2021, 2, 21, 12, 0), + }, { + text: 'Appointment 2', + startDate: new Date(2021, 2, 21, 9, 30), + endDate: new Date(2021, 2, 21, 12, 0), + }, { + text: 'Appointment 3', + startDate: new Date(2021, 2, 21, 9, 30), + endDate: new Date(2021, 2, 21, 11, 0), + }, { + text: 'Appointment 4', + startDate: new Date(2021, 2, 21, 9, 30), + endDate: new Date(2021, 2, 21, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 21), + startDayHour: 8, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.collectors.find('2').element.click(); + await scheduler.appointmentTooltip.expectVisible(); + await dragToOffset(page, scheduler.appointmentTooltip.getListItem('Appointment 3').element, 200, 50); + + await testScreenshot(page, 'drag-n-drop-\'Appointment 3\'-from-tooltip-in-week.png', { + element: scheduler.workSpace, + }); + + await scheduler.collectors.find('1').element.click(); + await scheduler.appointmentTooltip.expectVisible(); + await dragToOffset(page, scheduler.appointmentTooltip.getListItem('Appointment 2').element, 350, 150); + + await testScreenshot(page, 'drag-n-drop-\'Appointment 2\'-from-tooltip-in-week.png', { + element: scheduler.workSpace, + }); + }); + + test.describe('generic.light', () => { + test.use({ theme: 'generic.light' }); + + test('Basic drag-n-drop movements from tooltip in month view', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Appointment 1', + startDate: new Date(2021, 2, 31, 9, 30), + endDate: new Date(2021, 3, 1, 12, 0), + }, { + text: 'Appointment 2', + startDate: new Date(2021, 2, 31, 9, 30), + endDate: new Date(2021, 3, 1, 12, 0), + }, { + text: 'Appointment 3', + startDate: new Date(2021, 2, 31, 9, 30), + endDate: new Date(2021, 3, 1, 11, 0), + }, { + text: 'Appointment 4', + startDate: new Date(2021, 2, 31, 9, 30), + endDate: new Date(2021, 3, 1, 12, 30), + }], + views: ['month'], + currentView: 'month', + currentDate: new Date(2021, 2, 27), + startDayHour: 8, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.collectors.find('2').element.click(); + await scheduler.appointmentTooltip.expectVisible(); + await dragToOffset(page, scheduler.appointmentTooltip.getListItem('Appointment 3').element, -180, -30); + + await testScreenshot(page, 'drag-n-drop-\'Appointment 3\'-from-tooltip-in-month.png', { + element: scheduler.workSpace, + }); + + await scheduler.collectors.find('1', 1).element.click(); + await scheduler.appointmentTooltip.expectVisible(); + await dragToOffset(page, scheduler.appointmentTooltip.getListItem('Appointment 2').element, 320, 150); + + await testScreenshot(page, 'drag-n-drop-\'Appointment 2\'-from-tooltip-in-month.png', { + element: scheduler.workSpace, + }); + }); + }); + + [{ + currentView: 'timelineWeek', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 21, 9, 30), + endDate: new Date(2021, 2, 21, 10, 45), + }], + }, { + currentView: 'timelineMonth', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 2, 9, 30), + endDate: new Date(2021, 2, 3, 11, 0), + }], + }].forEach(({ currentView, dataSource }) => { + test(`Basic drag-n-drop movements in ${currentView} view`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource, + views: ['timelineWeek', 'timelineMonth'], + currentView, + currentDate: new Date(2021, 2, 21), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 250, 0); + + await testScreenshot(page, `drag-n-drop-${currentView}-to-right.png`, { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -250, 0); + + await testScreenshot(page, `drag-n-drop-${currentView}-to-left.png`, { element: scheduler.workSpace }); + }); + }); + + test('Basic drag-n-drop movements', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 22, 10), + endDate: new Date(2021, 2, 22, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 22), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 100, 0); + + await testScreenshot(page, 'drag-n-drop-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -100, 0); + + await testScreenshot(page, 'drag-n-drop-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 100); + + await testScreenshot(page, 'drag-n-drop-to-bottom.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -100); + + await testScreenshot(page, 'drag-n-drop-to-top.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop movements with mouse offset', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 22, 10), + endDate: new Date(2021, 2, 22, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 22), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 100, 0, { offsetX: 10, offsetY: 200 }); + await testScreenshot(page, 'drag-n-drop-mouse-offset-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -100, 0, { offsetX: 10, offsetY: 200 }); + await testScreenshot(page, 'drag-n-drop-mouse-offset-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 100, { offsetX: 10, offsetY: 200 }); + await testScreenshot(page, 'drag-n-drop-mouse-offset-to-bottom.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -100, { offsetX: 10, offsetY: 200 }); + await testScreenshot(page, 'drag-n-drop-mouse-offset-to-top.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop all day appointment movements', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 23, 10), + endDate: new Date(2021, 2, 25, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 23), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 200, 0); + await testScreenshot(page, 'drag-n-drop-all-day-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -200, 0); + await testScreenshot(page, 'drag-n-drop-all-day-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 260, 270); + await testScreenshot(page, 'drag-n-drop-all-day-to-bottom.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -260); + await testScreenshot(page, 'drag-n-drop-all-day-to-top.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop movements within the cell', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 22, 10), + endDate: new Date(2021, 2, 22, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 22), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + const blurActiveElement = (): Promise => page.evaluate(() => { + const el = document.activeElement as HTMLElement | null; + el?.blur(); + }); + + await dragToOffset(page, draggableAppointment.element, 55, 0); + await blurActiveElement(); + await testScreenshot(page, 'drag-n-drop-within-cell-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -50, 0); + await blurActiveElement(); + await testScreenshot(page, 'drag-n-drop-within-cell-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 30); + await blurActiveElement(); + await testScreenshot(page, 'drag-n-drop-within-cell-to-bottom.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop small appointments', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 17, 10), + endDate: new Date(2021, 2, 17, 12, 30), + }], + views: ['month'], + currentView: 'month', + currentDate: new Date(2021, 2, 17), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 250, 0); + await testScreenshot(page, 'drag-n-drop-small-appoint-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -250, 0); + await testScreenshot(page, 'drag-n-drop-small-appoint-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 170); + await testScreenshot(page, 'drag-n-drop-small-appoint-to-bottom.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -170); + await testScreenshot(page, 'drag-n-drop-small-appoint-to-top.png', { element: scheduler.workSpace }); + }); + + test('Basic drag-n-drop long appointments', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 16, 10), + endDate: new Date(2021, 2, 18, 12, 30), + }], + views: ['month'], + currentView: 'month', + currentDate: new Date(2021, 2, 16), + startDayHour: 9, + height: 600, + width: 1000, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 150, 0); + await testScreenshot(page, 'drag-n-drop-long-appoint-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -30, 0); + await testScreenshot(page, 'drag-n-drop-long-appoint-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 70); + await testScreenshot(page, 'drag-n-drop-long-appoint-to-bottom.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -70); + await testScreenshot(page, 'drag-n-drop-long-appoint-to-top.png', { element: scheduler.workSpace }); + }); + + test('Narrow appointment dragging on minimal distance should be expected(1171520)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Test', + startDate: new Date(2021, 1, 2), + endDate: new Date(2021, 1, 2, 1), + }], + views: ['timelineWeek'], + currentView: 'timelineWeek', + currentDate: new Date(2021, 1, 2), + cellDuration: 1440, + height: 300, + with: 500, + }); + + const scheduler = new Scheduler(page, '#container'); + + await dragToOffset(page, scheduler.getAppointment('Test').element, -10, 0, { offsetX: 10 }); + + await testScreenshot(page, 'drag-short-app-min-dist-to-left.png', { element: scheduler.workSpace }); + + await dragToOffset(page, scheduler.getAppointment('Test').element, 195, 0, { offsetX: 10 }); + + await testScreenshot(page, 'drag-short-app-to-right.png', { element: scheduler.workSpace }); + + await dragToOffset(page, scheduler.getAppointment('Test').element, 200, 0, { offsetX: 10 }); + + await testScreenshot(page, 'drag-short-app-to-right-on-next-cell.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png new file mode 100644 index 000000000000..126b7b9acdbf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..ac7518741215 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png new file mode 100644 index 000000000000..6ed2a7c2c46d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..77691352c65d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..2850c2a7d971 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..abdf2ddc51d4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..c608ac57a90e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..af5d17f55cce Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png new file mode 100644 index 000000000000..269f86266a4d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..9a1d08193ced Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..32409a696f6e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..799e5f7bd49b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..a5a10a5254fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..4924905ee2a5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..1842309bdea9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..fc5be5ddc734 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..4e0b97917501 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..eb43060420ce Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..d0a857019350 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..f264d2cd7c00 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..4eb9048ffddf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..b3763ac496a7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..c642f9641eab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..8c04c8470b49 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..1f1e716f0597 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..533bd75011c6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png new file mode 100644 index 000000000000..89057b7cca0f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..9c1d5bec9d60 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png new file mode 100644 index 000000000000..35e448953adf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png new file mode 100644 index 000000000000..a286b36bc688 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..6ca98e3f4fb5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png new file mode 100644 index 000000000000..139bcac173ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..30cb365b743c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png new file mode 100644 index 000000000000..10559eb2750d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..d3871cf663c8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..9c1d5bec9d60 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..3547f2136ca9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..96b34738c4f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..a4b130c5e220 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png new file mode 100644 index 000000000000..5f9e00c37dcc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..7500bdb36006 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..27b04f1814f8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..88383e30b8c5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png new file mode 100644 index 000000000000..684c24e06deb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png new file mode 100644 index 000000000000..f1e789bdba6f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png new file mode 100644 index 000000000000..1270eca9203c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png new file mode 100644 index 000000000000..6c1948efdffb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.spec.ts new file mode 100644 index 000000000000..464bd4b0c3c5 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.spec.ts @@ -0,0 +1,48 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Outlook dragging, for case scheduler in container', () => { + test('Dragging should be work right in case dxScheduler placed in dxTabPanel', async ({ page }) => { + await createWidget(page, 'dxTabPanel', () => ({ + items: [{ + title: 'Info', + text: 'This is Info Tab', + }, { + title: 'Contacts', + text: 'This is Contacts Tab', + disabled: true, + }], + itemTemplate: () => ($('
') as any).dxScheduler({ + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 30, 11), + endDate: new Date(2021, 2, 30, 12), + }], + views: ['week', 'month'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + startDayHour: 9, + height: 600, + }), + })); + + const scheduler = new Scheduler(page, '.dx-scheduler'); + + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 0, 120); + + await testScreenshot(page, 'dxScheduler-placed-in-dxTabPanel-drag-to-bottom.png'); + + await dragToOffset(page, draggableAppointment.element, 0, -170); + + await testScreenshot(page, 'dxScheduler-placed-in-dxTabPanel-drag-to-top.png'); + + await dragToOffset(page, draggableAppointment.element, 100, 0); + + await testScreenshot(page, 'dxScheduler-placed-in-dxTabPanel-drag-to-right.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.spec.ts new file mode 100644 index 000000000000..cf2a5a424309 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.spec.ts @@ -0,0 +1,47 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { appendElementTo, setStyleAttribute } from '../../../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Outlook dragging, for case scheduler in container with transform style', () => { + test('Dragging should be work right in case dxScheduler placed in container with transform style', async ({ page }) => { + await setStyleAttribute(page, '#container', 'margin-top: 100px; margin-left: 100px; transform: translate(0px, 0px);'); + await appendElementTo(page, '#container', 'div', 'scheduler'); + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 24, 11), + endDate: new Date(2021, 2, 24, 12), + }], + views: ['workWeek'], + currentView: 'workWeek', + currentDate: new Date(2021, 2, 22), + startDayHour: 9, + height: 600, + width: 800, + }, '#scheduler'); + + const scheduler = new Scheduler(page, '#scheduler'); + + const draggableAppointment = scheduler.getAppointmentByIndex(0); + + await dragToOffset(page, draggableAppointment.element, 0, 120); + + await testScreenshot(page, 'dxScheduler-placed-in-transform-container-drag-to-bottom.png'); + + await dragToOffset(page, draggableAppointment.element, 0, -170); + + await testScreenshot(page, 'dxScheduler-placed-in-transform-container-drag-to-top.png'); + + await dragToOffset(page, draggableAppointment.element, 100, 0); + + await testScreenshot(page, 'dxScheduler-placed-in-transform-container-drag-to-right.png'); + + await dragToOffset(page, draggableAppointment.element, -230, 0); + + await testScreenshot(page, 'dxScheduler-placed-in-transform-container-drag-to-left.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.spec.ts new file mode 100644 index 000000000000..26394bac9cd8 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.spec.ts @@ -0,0 +1,45 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { setStyleAttribute } from '../../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Outlook dragging base tests in shifted container', () => { + test('Basic drag-n-drop movements in shifted container', async ({ page }) => { + await setStyleAttribute(page, '#container', 'margin-left: 50px; margin-top: 70px;'); + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date(2021, 2, 22, 10), + endDate: new Date(2021, 2, 22, 12, 30), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 22), + startDayHour: 9, + height: 600, + width: 950, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToOffset(page, draggableAppointment.element, 100, 0); + + await testScreenshot(page, 'drag-n-drop-to-right-in-shifted-container.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, -100, 0); + + await testScreenshot(page, 'drag-n-drop-to-left-in-shifted-container.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, 100); + + await testScreenshot(page, 'drag-n-drop-to-bottom-in-shifted-container.png', { element: scheduler.workSpace }); + + await dragToOffset(page, draggableAppointment.element, 0, -100); + + await testScreenshot(page, 'drag-n-drop-to-top-in-shifted-container.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/timeline.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/timeline.spec.ts new file mode 100644 index 000000000000..fe16a2ee84aa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/timeline.spec.ts @@ -0,0 +1,43 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import { dataSource } from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Drag-and-drop appointments in the Scheduler timeline views', () => { + ['timelineDay', 'timelineWeek', 'timelineWorkWeek'].forEach((view) => test(`Drag-n-drop in the "${view}" view`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(0, 4)); + await expect(draggableAppointment.element).toHaveCSS('width', '200px'); + await expect(draggableAppointment.date).toHaveText('11:00 AM - 11:30 AM'); + })); + + test('Drag-n-drop in the "timelineMonth" view', async ({ page }) => { + await createScheduler(page, { + views: ['timelineMonth'], + currentView: 'timelineMonth', + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); + const getHeight = async (): Promise => parseInt( + await draggableAppointment.element.evaluate((element) => getComputedStyle(element).height), + 10, + ); + + await dragToElement(page, draggableAppointment.element, scheduler.getDateTableCell(0, 4)); + await expect.poll(getHeight).toBeGreaterThanOrEqual(139); + await expect.poll(getHeight).toBeLessThanOrEqual(140); + await expect(draggableAppointment.element).toHaveCSS('width', '200px'); + await expect(draggableAppointment.date).toHaveText('9:00 AM - 9:30 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/dragAndDrop/verticalGrouping.spec.ts b/e2e/playwright/tests/scheduler/common/dragAndDrop/verticalGrouping.spec.ts new file mode 100644 index 000000000000..49ba58e00339 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/dragAndDrop/verticalGrouping.spec.ts @@ -0,0 +1,55 @@ +import { test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Drag-and-drop appointments in the Scheduler with vertical grouping', () => { + test('Should drag appoinment to the previous day`s cell (T1025952)', async ({ page }) => { + await createScheduler(page, { + dataSource: [ + { + text: 'appointment', + startDate: new Date(2021, 3, 21, 9, 30), + endDate: new Date(2021, 3, 21, 10), + priorityId: 1, + }, + ], + views: [ + { + type: 'week', + groupOrientation: 'vertical', + }, + ], + currentView: 'week', + currentDate: new Date(2021, 3, 21), + groups: ['priorityId'], + resources: [ + { + dataSource: [ + { + text: 'Low Priority', + id: 1, + }, { + text: 'High Priority', + id: 2, + }, + ], + fieldExpr: 'priorityId', + displayExpr: 'name', + allowMultiple: false, + }, + ], + startDayHour: 9, + endDayHour: 12, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('appointment'); + + await dragToElement(page, appointment.element, scheduler.getDateTableCell(1, 1)); + + await testScreenshot(page, 'drag-n-drop-previous-day-cell.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png new file mode 100644 index 000000000000..278e04ca9e5a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png new file mode 100644 index 000000000000..73b32a7ab87c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png new file mode 100644 index 000000000000..ec132b3e716b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png new file mode 100644 index 000000000000..c1c1807f10e8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png new file mode 100644 index 000000000000..e4c9fab616d8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png new file mode 100644 index 000000000000..3862209ee395 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png new file mode 100644 index 000000000000..9190e8991d5e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png new file mode 100644 index 000000000000..3987076c3cf0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png new file mode 100644 index 000000000000..e25d6533be10 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png new file mode 100644 index 000000000000..b59a7932cbfd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..b10ca3bf9867 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..1f122d84d958 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..b10ca3bf9867 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..1f122d84d958 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..f44daa258577 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..5885af08c327 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..f44daa258577 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..5885af08c327 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..5acd85507d99 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..c32ba37e019b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..5acd85507d99 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..c32ba37e019b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..1884a02ac637 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..2da9ad66b34d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png new file mode 100644 index 000000000000..1884a02ac637 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png new file mode 100644 index 000000000000..2da9ad66b34d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png new file mode 100644 index 000000000000..3c4129f730bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png new file mode 100644 index 000000000000..1a53ee998801 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png new file mode 100644 index 000000000000..19f9840248e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..383031ba63cd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/grouping/groupHeaderLongNamesCss.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/groupHeaderLongNamesCss.spec.ts new file mode 100644 index 000000000000..ab443c7ca477 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/groupHeaderLongNamesCss.spec.ts @@ -0,0 +1,147 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const resources = [ + { + text: 'Very Long Priority Name for High Priority Tasks and Urgent Matters', + id: 1, + color: '#ff9747', + }, + { + text: 'Extremely Long Priority Name for Medium Priority Tasks and Regular Work', + id: 2, + color: '#24ff50', + }, + { + text: 'Super Long Priority Name for Low Priority Tasks and Background Activities', + id: 3, + color: '#3366ff', + }, +]; + +const dataSource = [ + { + text: 'Team Meeting', + startDate: new Date(2021, 3, 21, 10, 0), + endDate: new Date(2021, 3, 21, 11, 30), + priorityId: 1, + }, + { + text: 'Code Review', + startDate: new Date(2021, 3, 21, 14, 0), + endDate: new Date(2021, 3, 21, 15, 0), + priorityId: 2, + }, + { + text: 'Planning Session', + startDate: new Date(2021, 3, 22, 9, 0), + endDate: new Date(2021, 3, 22, 12, 0), + priorityId: 3, + }, +]; + +const DEFAULT_OPTIONS = { + currentDate: new Date(2021, 3, 21), + height: 600, + width: 1000, + startDayHour: 9, + endDayHour: 16, + crossScrollingEnabled: true, + showCurrentTimeIndicator: false, + showAllDayPanel: false, + groups: ['priorityId'], + views: [{ + type: 'workWeek', + name: 'Vertical Grouping', + groupOrientation: 'vertical', + cellDuration: 60, + intervalCount: 2, + }, + { + type: 'workWeek', + name: 'Horizontal Grouping', + groupOrientation: 'horizontal', + cellDuration: 30, + intervalCount: 2, + }, { + type: 'month', + name: 'Group By Date', + groupOrientation: 'horizontal', + }, 'agenda'], + resources: [{ + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: resources, + label: 'Priority', + }], + dataSource, +}; + +const CELL_SIZE_CSS = ` + #container .dx-scheduler-group-header { + width: auto; + } + #container .dx-scheduler-group-flex-container, + #container .dx-scheduler-work-space-vertical-group-table, + #container .dx-scheduler-sidebar-scrollable { + flex: 0 0 auto; + } +`; + +const createScheduler = async (page: Page, options = {}): Promise => createWidget(page, 'dxScheduler', { ...DEFAULT_OPTIONS, ...options }); + +test.describe('Scheduler: Group Header CSS for Long Resource Names', () => { + test('Group header CSS should work with vertical grouping and long resource names', async ({ page }) => { + await insertStylesheetRulesToPage(page, CELL_SIZE_CSS); + await createScheduler(page, { currentView: 'Vertical Grouping' }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.element.locator('.dx-scheduler-group-header').first(), 'Group headers should exist') + .toBeAttached(); + + await testScreenshot(page, 'group-header-css-vertical-grouping-long-names.png', { element: scheduler.element }); + }); + + test('Group header CSS should work with horizontal grouping and long resource names', async ({ page }) => { + await insertStylesheetRulesToPage(page, CELL_SIZE_CSS); + await createScheduler(page, { currentView: 'Horizontal Grouping' }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.element.locator('.dx-scheduler-group-header').first(), 'Group headers should exist') + .toBeAttached(); + + await testScreenshot(page, 'group-header-css-horizontal-grouping-long-names.png', { element: scheduler.element }); + }); + + test('Group header CSS should work with group by date and long resource names', async ({ page }) => { + await insertStylesheetRulesToPage(page, CELL_SIZE_CSS); + await createScheduler(page, { currentView: 'Group By Date', groupByDate: true }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.element.locator('.dx-scheduler-group-header').first(), 'Group headers should exist') + .toBeAttached(); + + await testScreenshot(page, 'group-header-css-group-by-date-long-names.png', { element: scheduler.element }); + }); + + test('Group header CSS should work with agenda view and long resource names', async ({ page }) => { + await insertStylesheetRulesToPage(page, CELL_SIZE_CSS); + await createScheduler(page, { currentView: 'agenda' }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.element.locator('.dx-scheduler-group-header').first(), 'Group headers should exist') + .toBeAttached(); + + await testScreenshot(page, 'group-header-css-agenda-view-long-names.png', { element: scheduler.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/grouping/groupingByDate.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/groupingByDate.spec.ts new file mode 100644 index 000000000000..2afbbd751e16 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/groupingByDate.spec.ts @@ -0,0 +1,21 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Drag-and-drop appointments into allDay panel in the grouped Scheduler ', () => { + test('Drag-n-drop between dateTable and allDay panel, groupByDate=true', async ({ page }) => { + await createScheduler(page, { + dataSource, + groupByDate: true, + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); + + await dragToElement(page, draggableAppointment.element, scheduler.getAllDayTableCell(1)); + await expect(draggableAppointment.element).toBeAttached(); + await draggableAppointment.expectState('allDay'); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/grouping/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/grouping/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/grouping/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/grouping/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/grouping/init/widget.setup.ts new file mode 100644 index 000000000000..29206e6b22f9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/init/widget.setup.ts @@ -0,0 +1,38 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +const priorityData = [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, +]; + +export default async (page: Page, options = {}): Promise => createWidget(page, 'dxScheduler', { + views: ['week'], + dataSource: [], + resources: [ + { + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: priorityData, + label: 'Priority', + }, + ], + groups: ['priorityId'], + crossScrollingEnabled: true, + groupByDate: false, + width: 1666, + height: 833, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'week', + currentDate: new Date(2018, 4, 21), + ...options, +}); diff --git a/e2e/playwright/tests/scheduler/common/grouping/monthViewVerticalGrouping.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/monthViewVerticalGrouping.spec.ts new file mode 100644 index 000000000000..618caeb1e47f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/monthViewVerticalGrouping.spec.ts @@ -0,0 +1,57 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Month view vertical grouping ', () => { + test('Scrolling: usual. Shouldn\'t overlap the next group with long all-day appointment in the month view (T1122185)', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + dataSource: [ + { + text: 'Appointment group 1', + groupId: 1, + startDate: '2021-04-29T14:00:00Z', + endDate: '2021-06-20T14:00:00Z', + allDay: true, + }, + ], + views: [{ + type: 'month', + groupOrientation: 'vertical', + }], + currentView: 'month', + currentDate: '2021-04-29T00:00:00Z', + groups: ['groupId'], + resources: [ + { + fieldExpr: 'groupId', + allowMultiple: false, + dataSource: [{ + text: 'Group 1', + id: 1, + color: '#ff0000', + }, { + text: 'Group 2', + id: 2, + color: '#0000ff', + }], + label: 'Group', + }, + ], + }, + ); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'month-view_vertical-grouping_fist-app-part_T1122185.png', { element: scheduler.workSpace }); + await scheduler.toolbar.navigator.nextButton.click(); + await testScreenshot(page, 'month-view_vertical-grouping_middle-app-part_T1122185.png', { element: scheduler.workSpace }); + await scheduler.toolbar.navigator.nextButton.click(); + await testScreenshot(page, 'month-view_vertical-grouping_last-app-part_T1122185.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/grouping/overflow.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/overflow.spec.ts new file mode 100644 index 000000000000..f816a270ceb9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/overflow.spec.ts @@ -0,0 +1,77 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Scheduler: Grouping overflow', () => { + ['week', 'month'].forEach((viewType) => { + ['vertical', 'horizontal'].forEach((groupOrientation) => { + ['hidden', 'allDay'].forEach((allDayPanelMode) => { + [[9, 14, 60], [0, 24, 360]].forEach(([startDayHour, endDayHour, cellDuration]) => { + const allParams = `${viewType}-${groupOrientation}-${allDayPanelMode}-${startDayHour}-${endDayHour}`; + + test(`Long appointments should not overflow group view (${allParams})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + text: '1', + priorityId: 1, + startDate: '2021-04-19T16:30:00', + endDate: '2021-04-25T18:30:00', + }, { + text: '2', + priorityId: 2, + startDate: '2021-04-19T16:30:00', + endDate: '2021-04-25T18:30:00', + }, { + text: '3', + priorityId: 3, + startDate: '2021-04-19T16:30:00', + endDate: '2021-04-25T18:30:00', + }, + ], + views: [{ + type: viewType, + name: 'myView', + groupOrientation, + }], + cellDuration, + currentView: 'myView', + currentDate: new Date(2021, 3, 21), + allDayPanelMode, + startDayHour, + endDayHour, + groups: ['priorityId'], + resources: [ + { + fieldExpr: 'priorityId', + dataSource: [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, + { + text: 'Custom', + id: 3, + color: 'red', + }, + ], + }, + ], + showAllDayPanel: false, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, `group-overflow-(${allParams}).png`, { element: scheduler.element }); + }); + }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/grouping/resourceCellTemplate.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/resourceCellTemplate.spec.ts new file mode 100644 index 000000000000..790ec1210c64 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/resourceCellTemplate.spec.ts @@ -0,0 +1,38 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('ResourceCellTemplate', () => { + test('resourceCellTemplate layout should be rendered right in the agenda view', async ({ page }) => { + const currentDate = new Date(2017, 4, 25); + await createWidget(page, 'dxScheduler', (date) => ({ + dataSource: [{ + text: 'appointment', + startDate: date, + endDate: date, + resource: 1, + }], + views: ['agenda'], + currentView: 'agenda', + currentDate: date, + resourceCellTemplate() { + return 'Custom resource text'; + }, + groups: ['resource'], + resources: [{ + fieldExpr: 'resource', + dataSource: [{ + text: 'Resource text', + id: 1, + }], + label: 'Resource', + }], + height: 600, + }), '#container', { arg: currentDate }); + + const scheduler = new Scheduler(page, '#container'); + const groupHeader = scheduler.getGroupCell(); + + await expect(groupHeader).toHaveText('Custom resource text'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/grouping/smoothCellLines.spec.ts b/e2e/playwright/tests/scheduler/common/grouping/smoothCellLines.spec.ts new file mode 100644 index 000000000000..30ce8d0b0935 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/grouping/smoothCellLines.spec.ts @@ -0,0 +1,37 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const resourcesData = [...Array(20).keys()].map((num: number) => ({ + text: `Name ${num}`, + id: num, +})); + +test.describe('Scheduler: SmoothCellLines', () => { + // visual: material.blue.light + test('The group panel and date table stay in sync during scrolling on material themes (T1146448)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['timelineWeek'], + currentView: 'timelineWeek', + groups: ['ownerId'], + currentDate: new Date(2021, 1, 2), + resources: [{ fieldExpr: 'ownerId', dataSource: resourcesData, label: 'Owner' }], + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + const groupPanelScrollable = scheduler.element + .locator('.dx-scheduler-sidebar-scrollable .dx-scrollable-container'); + + await scheduler.workspaceScrollable + .evaluate((element, [x, y]) => element.scrollTo(x, y), [0, 1100]); + await expect.poll(() => groupPanelScrollable.evaluate((element) => element.scrollTop)) + .toBe((await scheduler.getWorkSpaceScroll()).top); + + await testScreenshot(page, 'scrolling-vertical', { + element: scheduler.workSpace, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/customization.spec.ts b/e2e/playwright/tests/scheduler/common/header/customization.spec.ts new file mode 100644 index 000000000000..94f85d160154 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/customization.spec.ts @@ -0,0 +1,76 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const customToolbarItems = [ + { + location: 'before', + name: 'dateNavigator', + options: { + items: [ + { key: 'today', text: 'Today' }, + 'prev', + 'next', + 'dateInterval', + ], + }, + }, + { + location: 'before', + locateInMenu: 'auto', + widget: 'dxButton', + options: { icon: 'plus' }, + }, + 'viewSwitcher', +]; + +test.describe('Scheduler header customization', () => { + test('Scheduler default toolbar should works', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 3, 27), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'scheduler-default toolbar.png', { element: scheduler.toolbar.element }); + }); + + test('Scheduler toolbar should be hided', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 3, 27), + toolbar: { + visible: false, + items: [ + { location: 'before', name: 'viewSwitcher' }, + { location: 'after', name: 'dateNavigator' }, + ], + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.toolbar.element).toHaveCount(0); + + await testScreenshot(page, 'scheduler-hidden-toolbar.png', { element: scheduler.element }); + }); + + [ + { toolbar: { items: customToolbarItems }, description: 'custom toolbar' }, + { toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, description: 'toolbar with today' }, + { toolbar: { disabled: true, items: customToolbarItems }, description: 'disabled toolbar' }, + ].forEach(({ toolbar, description }) => { + test(`Scheduler ${description} should works`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 3, 27), + toolbar, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, `scheduler-${description}.png`, { element: scheduler.toolbar.element }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/dateNavigator.spec.ts b/e2e/playwright/tests/scheduler/common/header/dateNavigator.spec.ts new file mode 100644 index 000000000000..eab1d7bfd220 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/dateNavigator.spec.ts @@ -0,0 +1,131 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const createScheduler = async (page: Page): Promise => createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + width: 600, + height: 400, +}); + +test.describe('Date navigator', () => { + [{ + agendaDuration: 20, + result: '11-30 May 2021', + }, { + agendaDuration: 40, + result: '11 May-19 Jun 2021', + }].forEach(({ agendaDuration, result }) => { + test(`Caption of date navigator should be valid after change view to Agenda with agendaDuration=${agendaDuration}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: [{ + type: 'agenda', + agendaDuration, + }, 'month'], + currentView: 'month', + currentDate: new Date(2021, 4, 11), + height: 600, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await toolbar.viewSwitcher.getButton('Month').element.click(); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + + await expect(toolbar.navigator.caption).toHaveText(result); + }); + }); + + test('Current date in Calendar should be respond on prev and next buttons of Navigator', async ({ page }) => { + await createScheduler(page); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await toolbar.navigator.caption.click(); + + await testScreenshot(page, 'initial-calendar-state.png'); + + await toolbar.navigator.nextButton.click(); + await toolbar.navigator.nextButton.click(); + await toolbar.navigator.nextButton.click(); + await toolbar.navigator.caption.click(); + + await testScreenshot(page, 'calendar-state-after-next-button-click.png'); + + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.prevButton.click(); + await toolbar.navigator.caption.click(); + + await testScreenshot(page, 'calendar-state-after-prev-button-click.png'); + }); + + test('Current date in Navigator should be respond on Current date of Calendar', async ({ page }) => { + await createScheduler(page); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + const { navigator } = toolbar; + + await toolbar.navigator.caption.click(); + + await navigator.calendar.nextButton.click(); + await navigator.calendar.getCell(20).click(); + + await testScreenshot(page, 'navigator-state-after-calendar-next-button-click.png'); + + await toolbar.navigator.caption.click(); + await navigator.calendar.prevButton.click(); + await navigator.calendar.prevButton.click(); + await toolbar.navigator.calendar.getCell(15).click(); + + await testScreenshot(page, 'navigator-state-after-calendar-prev-button-click.png'); + }); + + test('Current date in navigator should be updated if scheduler currentDate is changed', async ({ page }) => { + await createScheduler(page); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentDate', new Date(2022, 2, 28)); + + await scheduler.toolbar.navigator.caption.click(); + + await testScreenshot( + page, + 'navigator-state-after-change-currentDate-option.png', + { element: scheduler.toolbar.navigator.calendar.element }, + ); + }); + + test('Calendar should be have right appearance', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await toolbar.navigator.caption.click(); + + await testScreenshot( + page, + 'right-calendar-appearance.png', + { element: toolbar.navigator.calendar.element }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png new file mode 100644 index 000000000000..6d0f631ae4dc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png new file mode 100644 index 000000000000..16e9a8e8803c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png new file mode 100644 index 000000000000..4473a2f616c6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png new file mode 100644 index 000000000000..8482175acb60 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png new file mode 100644 index 000000000000..03bc6dac89bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png new file mode 100644 index 000000000000..f8729ddc2b48 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png new file mode 100644 index 000000000000..b20bfeaa1524 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png new file mode 100644 index 000000000000..680767ff1f09 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png new file mode 100644 index 000000000000..e6ca8da7580c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..d17d9b92d435 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..8e64140f6afb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..d17d9b92d435 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..7aa534006a3d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..d4a80a1e0157 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..01f43c23b4d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png new file mode 100644 index 000000000000..455d498a7ca5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png new file mode 100644 index 000000000000..208d9a10c193 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png new file mode 100644 index 000000000000..c454638a872a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png new file mode 100644 index 000000000000..4fea5a27e2f8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png new file mode 100644 index 000000000000..f3054a4ed7c2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png new file mode 100644 index 000000000000..4fea5a27e2f8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png new file mode 100644 index 000000000000..92db056b081c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png new file mode 100644 index 000000000000..f0465e7274ea Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png new file mode 100644 index 000000000000..f795234f8147 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png new file mode 100644 index 000000000000..c8c22a8d75af Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png new file mode 100644 index 000000000000..b4c3201fdf85 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png new file mode 100644 index 000000000000..e6e9b98be5f7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png new file mode 100644 index 000000000000..e6e9b98be5f7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/header/header.spec.ts b/e2e/playwright/tests/scheduler/common/header/header.spec.ts new file mode 100644 index 000000000000..21102f956922 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/header.spec.ts @@ -0,0 +1,165 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const testData = [ + { + text: 'Website Re-Design Plan', + startDate: new Date('2021-03-29T16:30:00.000Z'), + endDate: new Date('2021-03-29T18:30:00.000Z'), + }, { + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date('2021-03-29T19:00:00.000Z'), + endDate: new Date('2021-03-29T20:00:00.000Z'), + allDay: true, + }, { + text: 'Install New Router in Dev Room', + startDate: new Date('2021-03-29T21:30:00.000Z'), + endDate: new Date('2021-03-29T22:30:00.000Z'), + }, { + text: 'Approve Personal Computer Upgrade Plan', + startDate: new Date('2021-03-30T17:00:00.000Z'), + endDate: new Date('2021-03-30T18:00:00.000Z'), + }, { + text: 'Final Budget Review', + startDate: new Date('2021-03-30T19:00:00.000Z'), + endDate: new Date('2021-03-30T20:35:00.000Z'), + }, { + text: 'New Brochures', + startDate: new Date('2021-03-30T21:30:00.000Z'), + endDate: new Date('2021-03-30T22:45:00.000Z'), + }, { + text: 'Install New Database', + startDate: new Date('2021-03-31T16:45:00.000Z'), + endDate: new Date('2021-03-31T18:15:00.000Z'), + }, { + text: 'Approve New Online Marketing Strategy', + startDate: new Date('2021-03-31T19:00:00.000Z'), + endDate: new Date('2021-03-31T21:00:00.000Z'), + }, { + text: 'Upgrade Personal Computers', + startDate: new Date('2021-03-31T22:15:00.000Z'), + endDate: new Date('2021-03-31T23:30:00.000Z'), + }, { + text: 'Customer Workshop', + startDate: new Date('2021-04-01T18:00:00.000Z'), + endDate: new Date('2021-04-01T19:00:00.000Z'), + allDay: true, + }, { + text: 'Prepare 2021 Marketing Plan', + startDate: new Date('2021-04-01T18:00:00.000Z'), + endDate: new Date('2021-04-01T20:30:00.000Z'), + }, { + text: 'Brochure Design Review', + startDate: new Date('2021-04-01T21:00:00.000Z'), + endDate: new Date('2021-04-01T22:30:00.000Z'), + }, { + text: 'Create Icons for Website', + startDate: new Date('2021-04-02T17:00:00.000Z'), + endDate: new Date('2021-04-02T18:30:00.000Z'), + }, { + text: 'Upgrade Server Hardware', + startDate: new Date('2021-04-02T21:30:00.000Z'), + endDate: new Date('2021-04-02T23:00:00.000Z'), + }, { + text: 'Submit New Website Design', + startDate: new Date('2021-04-02T23:30:00.000Z'), + endDate: new Date('2021-04-03T01:00:00.000Z'), + }, { + text: 'Launch New Website', + startDate: new Date('2021-04-02T19:20:00.000Z'), + endDate: new Date('2021-04-02T21:00:00.000Z'), + }, +]; + +const SCROLLBAR_STYLES = ` + ::-webkit-scrollbar { + -webkit-appearance: none; + width: 7px; + } + ::-webkit-scrollbar-thumb { + border-radius: 4px; + background-color: rgba(0, 0, 0, .5); + -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5); + } + .dx-scheduler-date-table-scrollable .dx-scrollable-container { + overflow: scroll !important; + } +`; + +test.describe('Scheduler header', () => { + test('dateNavigator buttons should not be selected after clicking', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentView: 'day', + views: ['day'], + height: 580, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await toolbar.navigator.nextButton.click(); + + await expect(toolbar.navigator.prevButton).not.toHaveClass(classMatcher('dx-item-selected')); + await expect(toolbar.navigator.caption).not.toHaveClass(classMatcher('dx-item-selected')); + await expect(toolbar.navigator.nextButton).not.toHaveClass(classMatcher('dx-item-selected')); + }); + + test.describe('generic theme', () => { + test.use({ theme: 'generic.light' }); + + test('dateNavigator buttons should have "contained" styling mode with generic theme', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentView: 'day', + views: ['day'], + height: 580, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(toolbar.navigator.prevButton).toHaveClass(classMatcher('dx-button-mode-contained')); + await expect(toolbar.navigator.caption).toHaveClass(classMatcher('dx-button-mode-contained')); + await expect(toolbar.navigator.nextButton).toHaveClass(classMatcher('dx-button-mode-contained')); + }); + }); + + test('Scheduler: maintain layout after horizontal scroll (T1306971)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource: testData, + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + startDayHour: 9, + height: 730, + crossScrollingEnabled: true, + width: 500, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await insertStylesheetRulesToPage(page, SCROLLBAR_STYLES); + + await scheduler.repaint(); + + await testScreenshot(page, 'T1306971__scheduler__horizontal-scrolling__before.png', { element: scheduler.element }); + + const container = scheduler.workspaceScrollable; + const maxScrollLeft = await container.evaluate( + (element) => element.scrollWidth - element.clientWidth, + ); + + await container.evaluate((element, left) => element.scrollTo(left, 0), maxScrollLeft); + + const finalScrollLeft = await container.evaluate((element) => element.scrollLeft); + + expect(maxScrollLeft, 'No horizontal scroll available').toBeGreaterThan(0); + expect(finalScrollLeft, 'Scroll position should be greater than 0').toBeGreaterThan(0); + + await testScreenshot(page, 'T1306971__scheduler__horizontal-scrolling__after.png', { element: scheduler.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/header_material.spec.ts b/e2e/playwright/tests/scheduler/common/header/header_material.spec.ts new file mode 100644 index 000000000000..8594d6aa40ac --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/header_material.spec.ts @@ -0,0 +1,71 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { isMaterial, isMaterialBased } from '../../../../helpers/themeUtils'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Scheduler header: material theme', () => { + // visual: material.blue.light + test('dateNavigator buttons should have "text" styling mode', async ({ page, theme }) => { + await createWidget(page, 'dxScheduler', { + currentView: 'day', + views: ['day'], + height: 580, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + const expectedClass = isMaterialBased(theme) ? 'dx-button-mode-text' : 'dx-button-mode-contained'; + + await expect(toolbar.navigator.prevButton).toHaveClass(classMatcher(expectedClass)); + await expect(toolbar.navigator.caption).toHaveClass(classMatcher(expectedClass)); + await expect(toolbar.navigator.nextButton).toHaveClass(classMatcher(expectedClass)); + }); + + test.describe('generic theme', () => { + test.use({ theme: 'generic.light' }); + + test('viewSwitcher dropdown button popup should have a specified class', async ({ page, theme }) => { + await createWidget(page, 'dxScheduler', { + currentView: 'day', + views: ['day', 'week'], + height: 580, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + const dropDownButton = toolbar.viewSwitcher.getDropDownButton(); + + const viewSwitcherDropDownButtonContent = '.dx-scheduler-view-switcher-dropdown-button-content'; + + await dropDownButton.element.first().click(); + + await expect(page.locator(viewSwitcherDropDownButtonContent)) + .toHaveCount(isMaterial(theme) ? 1 : 0); + }); + }); + + test.describe('material theme', () => { + test.use({ theme: 'material.blue.light' }); + + test('The toolbar should not display if the config is empty', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2020, 2, 2), + currentView: 'day', + views: ['day', 'week'], + height: 580, + toolbar: { items: [] }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'scheduler-with-empty-toolbar-config.png'); + + await scheduler.option('toolbar', { items: ['viewSwitcher'] }); + + await testScreenshot(page, 'scheduler-with-non-empty-toolbar-config.png'); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/multiline_header.spec.ts b/e2e/playwright/tests/scheduler/common/header/multiline_header.spec.ts new file mode 100644 index 000000000000..ec11bed1080c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/multiline_header.spec.ts @@ -0,0 +1,42 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const buttons = Array.from({ length: 12 }).map((_, index) => ({ + location: 'before', + locateInMenu: 'auto', + widget: 'dxButton', + options: { text: `Button ${index}` }, +})); + +test.describe('Scheduler multiline header', () => { + [true, false].forEach((multiline) => { + test(`Scheduler [multiline=${multiline}] toolbar`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['day', 'week', 'workWeek', 'month'], + currentView: 'workWeek', + currentDate: new Date(2021, 3, 27), + height: 200, + toolbar: { + multiline, + items: [ + 'dateNavigator', + ...buttons, + 'viewSwitcher', + ], + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `scheduler-multiline-${multiline}-toolbar.png`, + { element: scheduler.toolbar.element }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/sizes.spec.ts b/e2e/playwright/tests/scheduler/common/header/sizes.spec.ts new file mode 100644 index 000000000000..c66c37814062 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/sizes.spec.ts @@ -0,0 +1,49 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const buttons = Array.from({ length: 4 }).map((_, index) => ({ + location: 'before', + locateInMenu: 'auto', + widget: 'dxButton', + options: { text: `Button ${index}` }, +})); + +test.describe('Scheduler header sizes', () => { + test('items inside toolbar menu should stretch', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + width: 320, + currentDate: new Date('2025-05-02T07:59:01.167Z'), + toolbar: { + items: ['today', 'dateNavigator', ...buttons, { + location: 'after', + locateInMenu: 'auto', + name: 'viewSwitcher', + }], + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.toolbar.menuButton.click(); + + await testScreenshot(page, 'scheduler-toolbar-menu.png'); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + test('Scheduler header should have correct sizes', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date('2025-05-02T07:59:01.167Z'), + toolbar: { items: ['today', 'dateNavigator', ...buttons, 'viewSwitcher'] }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'scheduler-toolbar.png', { element: scheduler.toolbar.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/todayButton.spec.ts b/e2e/playwright/tests/scheduler/common/header/todayButton.spec.ts new file mode 100644 index 000000000000..2dc385e8e8ee --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/todayButton.spec.ts @@ -0,0 +1,42 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const indicatorTime = new Date(2023, 3, 27); + +test.describe('Scheduler header today button', () => { + test('Scheduler today button should works', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 3, 27), + toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.toolbar.todayButton.click(); + + const currentDate = await scheduler.option('currentDate') as Date; + const today = new Date(); + + currentDate.setHours(0, 0, 0, 0); + today.setHours(0, 0, 0, 0); + + expect(currentDate).toEqual(today); + }); + + test('Scheduler today button should use indicatorTime', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 3, 27), + indicatorTime, + toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.toolbar.todayButton.click(); + + await expect.poll(() => scheduler.option('currentDate')).toEqual(indicatorTime); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/toolbar_option_change.spec.ts b/e2e/playwright/tests/scheduler/common/header/toolbar_option_change.spec.ts new file mode 100644 index 000000000000..477be6bdef27 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/toolbar_option_change.spec.ts @@ -0,0 +1,81 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const createScheduler = async (page: Page): Promise => createWidget(page, 'dxScheduler', { + views: ['day', 'week'], + currentView: 'day', + currentDate: new Date(2021, 3, 27), + height: 200, + width: 500, +}); +const buttons = Array.from({ length: 7 }).map((_, index) => ({ + location: 'before', + locateInMenu: 'auto', + widget: 'dxButton', + options: { text: `Button ${index}` }, +})); + +test.describe('Scheduler: Toolbar options change', () => { + test.beforeEach(async ({ page }) => { + await createScheduler(page); + }); + + test('Scheduler should change toolbar item location', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar.items[0].location', 'after'); + + await testScreenshot(page, 'scheduler-toolbar-location-changed.png', { element: scheduler.toolbar.element }); + }); + + test('Scheduler should change toolbar', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar', { items: [{ template: 'Custom text' }] }); + + await testScreenshot(page, 'scheduler-toolbar-changed.png', { element: scheduler.toolbar.element }); + }); + + test('Scheduler should hide and show toolbar', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar.visible', false); + await scheduler.toolbar.expectInvisible(); + await scheduler.option('toolbar.visible', true); + await scheduler.toolbar.expectInvisible(false); + }); + + test('Scheduler should change toolbar items', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar.items', buttons); + + await testScreenshot(page, 'scheduler-toolbar-items-changed.png', { element: scheduler.toolbar.element }); + }); + + test('Scheduler should change toolbar item option', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar.items[0].options.text', 'Changed text'); + + await testScreenshot(page, 'scheduler-toolbar-item-option-changed.png', { element: scheduler.toolbar.element }); + }); + + test('Scheduler should change toolbar options / integration', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('toolbar.items', buttons); + await scheduler.option('toolbar.multiline', true); + + await testScreenshot(page, 'scheduler-toolbar-property-changed.png', { element: scheduler.toolbar.element }); + + await scheduler.option('toolbar', { multiline: false }); + + await testScreenshot(page, 'scheduler-toolbar-changed-2.png', { element: scheduler.toolbar.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/header/viewSwitcher.spec.ts b/e2e/playwright/tests/scheduler/common/header/viewSwitcher.spec.ts new file mode 100644 index 000000000000..f9d9c048d1b1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/header/viewSwitcher.spec.ts @@ -0,0 +1,116 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { classMatcher } from '../../../../models/internal/classMatcher'; +import Scheduler, { VIEW_TYPE_CLASS } from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const getSelectBoxInput = (page: Page): Locator => page.locator('.dx-selectbox .dx-texteditor-input'); + +const openSelectBoxList = async (page: Page): Promise => { + const input = getSelectBoxInput(page); + + await page.locator('.dx-selectbox').evaluate((element) => { + ($(element) as any).dxSelectBox('instance').open(); + }); + await expect(input).toHaveAttribute('aria-owns', /.+/); + + const popupId = await input.getAttribute('aria-owns'); + + return page.locator(`[id="${popupId}"] .dx-list .dx-list-item:not(.nested-item)`); +}; + +test.describe('Scheduler header - View switcher', () => { + test('it should correctly switch a differently typed views (T1080992)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + width: 800, + height: 600, + views: [ + 'day', + { + type: 'week', + name: 'Some week', + }, + ], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { + toolbar: { + viewSwitcher, + }, + } = scheduler; + + await viewSwitcher.getButton('Day').element.click(); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + await viewSwitcher.getButton('Some week').element.click(); + await expect(scheduler.workSpace).toHaveClass(classMatcher(VIEW_TYPE_CLASS.week)); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + await expect(scheduler.workSpace).toHaveClass(classMatcher(VIEW_TYPE_CLASS.day)); + }); + + const defaultSelectBoxValue = 'Samantha Bright'; + + test('Changing view does not reset toolbar items state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['week', 'month'], + currentView: 'week', + currentDate: new Date(2021, 3, 27), + toolbar: { + items: [ + { + location: 'before', + widget: 'dxSelectBox', + options: { items: [defaultSelectBoxValue] }, + }, + 'viewSwitcher', + ], + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const selectBoxInput = getSelectBoxInput(page); + + const listItems = await openSelectBoxList(page); + + await listItems.nth(0).click(); + await expect(selectBoxInput).toHaveValue(defaultSelectBoxValue); + + await page.keyboard.press('Tab'); + await page.keyboard.press('Enter'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + + await scheduler.toolbar.viewSwitcher.getButton('Month').element.click(); + await expect(scheduler.workSpace).toHaveClass(classMatcher(VIEW_TYPE_CLASS.month)); + + await expect(selectBoxInput).toHaveValue(defaultSelectBoxValue); + }); + + [true, false].forEach((useDropDownViewSwitcher) => { + test(`view switcher should not be displayed if views has only one element when useDropDownViewSwitcher: ${useDropDownViewSwitcher}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2020, 2, 2), + currentView: 'day', + views: ['day'], + useDropDownViewSwitcher, + height: 580, + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `toolbar-without-view-switcher-(useDropDownViewSwitcher=${useDropDownViewSwitcher}).png`, + { element: toolbar.element }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.spec.ts b/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.spec.ts new file mode 100644 index 000000000000..17e413a21a55 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.spec.ts @@ -0,0 +1,187 @@ +import { expect, test } from '../../../../fixtures'; +import Button from '../../../../models/button'; +import { textMatcher } from '../../../../models/internal/textMatcher'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Hotkeys for appointments update and navigation', () => { + ['week', 'month'].forEach((view) => { + test(`Navigate between appointments in the "${view}" view (Tab/Shift+Tab)`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const firstAppointment = scheduler.getAppointment('Website Re-Design Plan'); + const secondAppointment = scheduler.getAppointment('Book Flights to San Fran for Sales Trip'); + + await firstAppointment.element.click(); + await firstAppointment.expectState('focused'); + + await page.keyboard.press('Tab'); + await firstAppointment.expectState('focused', false); + await secondAppointment.expectState('focused'); + + await page.keyboard.press('Shift+Tab'); + await secondAppointment.expectState('focused', false); + await firstAppointment.expectState('focused'); + }); + + test(`Remove appointment in the "${view}" view (Del)`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Website Re-Design Plan'); + + await appointment.element.click(); + await appointment.expectState('focused'); + + await page.keyboard.press('Delete'); + await expect(appointment.element).toHaveCount(0); + }); + + test(`Show appointment popup in the "${view}" view (Enter)`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Website Re-Design Plan'); + const { appointmentPopup } = scheduler; + + await appointment.element.click(); + await appointment.expectState('focused'); + + await page.keyboard.press('Enter'); + await expect.poll(() => appointmentPopup.popup.isVisible()).toBe(true); + }); + + test(`Navigate between tooltip appointments in the "${view}" view (Up/Down)`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const collector = scheduler.collectors.find('3'); + const { appointmentPopup, appointmentTooltip } = scheduler; + + await collector.click(); + + await appointmentTooltip.expectVisible(); + + await page.keyboard.press('ArrowDown'); + await appointmentTooltip.getListItem('New Brochures').expectFocused(); + + await page.keyboard.press('ArrowUp'); + await appointmentTooltip.getListItem('Approve New Online Marketing Strategy').expectFocused(); + + await page.keyboard.press('Enter'); + await appointmentTooltip.expectVisible(false); + await expect.poll(() => appointmentPopup.popup.isVisible()).toBe(true); + }); + }); + + test('Navigate between toolbar items', async ({ page }) => { + await createScheduler(page, { + views: ['day', 'week'], + currentView: 'day', + }); + + const { toolbar } = new Scheduler(page, '#container'); + const { navigator, viewSwitcher } = toolbar; + + const prevDuration = new Button(page, navigator.prevButton); + const caption = new Button(page, navigator.caption); + const nextDuration = new Button(page, navigator.nextButton); + + await toolbar.element.click(); + await page.keyboard.press('Tab'); + await prevDuration.expectFocused(); + + await page.keyboard.press('ArrowRight'); + await nextDuration.expectFocused(); + + await page.keyboard.press('ArrowRight'); + await caption.expectFocused(); + + await page.keyboard.press('Tab'); + await viewSwitcher.getButton('Day').expectFocused(); + + await page.keyboard.press('Enter'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + await viewSwitcher.getButton('Week').expectFocused(); + }); + + test('Navigate between custom toolbar items', async ({ page }) => { + await createScheduler(page, { + views: ['day', 'week'], + currentView: 'day', + toolbar: { + items: [ + { + location: 'before', + name: 'viewSwitcher', + }, + { + location: 'before', + widget: 'dxButton', + options: { + text: 'Today', + }, + }, + { + location: 'after', + name: 'dateNavigator', + }, + ], + }, + }); + + const { toolbar } = new Scheduler(page, '#container'); + const { navigator, viewSwitcher } = toolbar; + + const prevDuration = new Button(page, navigator.prevButton); + const caption = new Button(page, navigator.caption); + const nextDuration = new Button(page, navigator.nextButton); + const todayButton = new Button( + page, + toolbar.element.locator('.dx-button').filter({ hasText: textMatcher('Today') }), + ); + + await toolbar.element.click(); + await page.keyboard.press('Tab'); + await viewSwitcher.getButton('Day').expectFocused(); + + await page.keyboard.press('ArrowRight'); + await page.keyboard.press('Enter'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('ArrowDown'); + await page.keyboard.press('Enter'); + await viewSwitcher.getButton('Week').expectFocused(); + + await page.keyboard.press('Tab'); + await todayButton.expectFocused(); + + await page.keyboard.press('Tab'); + await prevDuration.expectFocused(); + + await page.keyboard.press('ArrowRight'); + await nextDuration.expectFocused(); + + await page.keyboard.press('ArrowRight'); + await caption.expectFocused(); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/hotkeysBehaviour/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts new file mode 100644 index 000000000000..78f2400804e9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts @@ -0,0 +1,15 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +export default async (page: Page, options: Record = {}): Promise => createWidget(page, 'dxScheduler', { + views: ['month'], + dataSource: [], + width: 1402, + height: 833, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'month', + currentDate: new Date(2019, 3, 1), + ...options, +}); diff --git a/e2e/playwright/tests/scheduler/common/keyboardNavigation/appointments.spec.ts b/e2e/playwright/tests/scheduler/common/keyboardNavigation/appointments.spec.ts new file mode 100644 index 000000000000..da46cb336f86 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/keyboardNavigation/appointments.spec.ts @@ -0,0 +1,325 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { textMatcher } from '../../../../models/internal/textMatcher'; +import Scheduler from '../../../../models/scheduler'; +import { generateAppointmentsWithResources, resources } from '../../helpers/generateAppointmentsWithResources'; + +const SCHEDULER_SELECTOR = '#container'; + +const resourceCount = 30; + +const dataSource = generateAppointmentsWithResources({ + startDay: new Date(2021, 1, 1), + endDay: new Date(2021, 1, 6), + startDayHour: 8, + endDayHour: 20, + resourceCount, +}); + +const appointmentCount = dataSource.length; + +const getConfig = () => ({ + views: [ + { + type: 'timelineWorkWeek', + name: 'Timeline', + groupOrientation: 'vertical', + }, + 'week', + ], + dataSource, + resources: [ + { fieldExpr: 'resourceId', label: 'Resource', dataSource: resources }, + ], + groups: ['resourceId'], + scrolling: { + mode: 'virtual', + }, + height: 600, + cellDuration: 60, + startDayHour: 8, + endDayHour: 20, + showAllDayPanel: false, + currentView: 'Timeline', + currentDate: new Date(2021, 1, 2), +}); + +const cellStyles = '#container .dx-scheduler-cell-sizes-vertical { height: 100px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'; + +const createScheduler = async (page: Page, scrollingMode: string): Promise => { + await insertStylesheetRulesToPage(page, cellStyles); + await createWidget(page, 'dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); +}; + +const scrollWorkSpace = async (scheduler: Scheduler, x: number, y: number): Promise => { + await scheduler.workspaceScrollable.evaluate((element, [left, top]) => { + element.scrollTo(left, top); + }, [x, y]); +}; + +test.describe('KeyboardNavigation.Appointments', () => { + ['virtual', 'standard'].forEach((scrollingMode) => { + test(`focus next appointment on single tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 2]').expectState('focused'); + }); + + test(`focus next appointment on 5 tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('Tab'); + await page.keyboard.press('Tab'); + await page.keyboard.press('Tab'); + await page.keyboard.press('Tab'); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 6]').expectState('focused'); + }); + + test(`focus prev appointment on single shift+tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const lastAppointmentText = `[Appointment ${appointmentCount}]`; + const prevAppointmentText = `[Appointment ${appointmentCount - 1}]`; + + await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); + + await scheduler.getAppointment(lastAppointmentText).element.click(); + await page.keyboard.press('Shift+Tab'); + + await scheduler.getAppointment(prevAppointmentText).expectState('focused'); + }); + + test(`focus prev appointment on 5 shift+tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const lastAppointmentText = `[Appointment ${appointmentCount}]`; + const prevAppointmentText = `[Appointment ${appointmentCount - 5}]`; + + await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); + + await scheduler.getAppointment(lastAppointmentText).element.click(); + await page.keyboard.press('Shift+Tab'); + await page.keyboard.press('Shift+Tab'); + await page.keyboard.press('Shift+Tab'); + await page.keyboard.press('Shift+Tab'); + await page.keyboard.press('Shift+Tab'); + + await scheduler.getAppointment(prevAppointmentText).expectState('focused'); + }); + + test(`focus last appointment on End (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('End'); + + await scheduler.getAppointment(`[Appointment ${appointmentCount}]`).expectState('focused'); + }); + + test(`focus first appointment on Home (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); + + await scheduler.getAppointment(`[Appointment ${appointmentCount}]`).element.click(); + await page.keyboard.press('Home'); + + await scheduler.getAppointment('[Appointment 1]').expectState('focused'); + }); + + test(`focus first appointment in the next group by tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: 1 }); + + await scheduler.getAppointment('[Appointment 14]').element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 15]').expectState('focused'); + }); + + test(`focus last appointment in the prev group by shift+tab (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 15]').element.click(); + await page.keyboard.press('Shift+Tab'); + + await scheduler.getAppointment('[Appointment 14]').expectState('focused'); + }); + + test(`should focus appointment after close edit popup (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('Tab'); + await page.keyboard.press('Enter'); + await page.keyboard.press('Escape'); + + await scheduler.getAppointment('[Appointment 2]').expectState('focused'); + }); + + test(`first appointment should be focusable when navigating by tab second time (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('Tab'); + await scheduler.toolbar.viewSwitcher.element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 1]').expectState('focused'); + }); + + test(`should not reset scroll after appointment focus and scrolling down (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 1]').element.click(); + await page.keyboard.press('Tab'); + await scrollWorkSpace(scheduler, 0, 1000); + + await expect.poll(async () => (await scheduler.getWorkSpaceScroll()).top).toBe(1000); + }); + + test(`should focus next appointment on tab after any appointment was clicked (${scrollingMode} scrolling)`, async ({ page }) => { + await createScheduler(page, scrollingMode); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('[Appointment 15]').element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 16]').expectState('focused'); + }); + }); + + test('should focus first visible appointment on tab (virtual scrolling)', async ({ page }) => { + await createScheduler(page, 'virtual'); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scrollWorkSpace(scheduler, 0, 1000); + await scheduler.toolbar.viewSwitcher.element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 135]').expectState('focused'); + }); + + test('should focus first rendered appointment on tab (standard scrolling)', async ({ page }) => { + await createScheduler(page, 'standard'); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scrollWorkSpace(scheduler, 0, 1000); + await scheduler.toolbar.viewSwitcher.element.click(); + await page.keyboard.press('Tab'); + + await scheduler.getAppointment('[Appointment 1]').expectState('focused'); + }); + + const getDeleteFocusConfig = () => ({ + dataSource: [ + { text: 'Appointment 1', startDate: new Date(2021, 1, 2, 9), endDate: new Date(2021, 1, 2, 10) }, + { text: 'Appointment 2', startDate: new Date(2021, 1, 2, 10), endDate: new Date(2021, 1, 2, 11) }, + { text: 'Appointment 3', startDate: new Date(2021, 1, 2, 11), endDate: new Date(2021, 1, 2, 12) }, + ], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 1, 2), + startDayHour: 8, + endDayHour: 20, + height: 600, + }); + + test('should focus next appointment after deleting appointment by Delete key', async ({ page }) => { + await createWidget(page, 'dxScheduler', getDeleteFocusConfig()); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Appointment 2').element.click(); + await page.keyboard.press('Delete'); + + await expect(scheduler.appointments).toHaveCount(2); + await scheduler.getAppointment('Appointment 3').expectState('focused'); + }); + + test('should focus previous appointment after deleting the last appointment by Delete key', async ({ page }) => { + await createWidget(page, 'dxScheduler', getDeleteFocusConfig()); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Appointment 3').element.click(); + await page.keyboard.press('Delete'); + + await expect(scheduler.appointments).toHaveCount(2); + await scheduler.getAppointment('Appointment 2').expectState('focused'); + }); + + test('should focus toolbar element when no appointments remain after deleting by Delete key', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...getDeleteFocusConfig(), + dataSource: [ + { text: 'Appointment 1', startDate: new Date(2021, 1, 2, 9), endDate: new Date(2021, 1, 2, 10) }, + ], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Appointment 1').element.click(); + await page.keyboard.press('Delete'); + + await expect(scheduler.appointments).toHaveCount(0); + await expect(scheduler.toolbar.element.locator(':focus')).toBeAttached(); + }); + + test('should focus next occurrence after deleting recurring occurrence via dialog', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...getDeleteFocusConfig(), + views: ['week'], + currentView: 'week', + dataSource: [{ + text: 'Recurring Appointment', + startDate: new Date(2021, 1, 1, 9), + endDate: new Date(2021, 1, 1, 10), + recurrenceRule: 'FREQ=DAILY;COUNT=5', + }], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Recurring Appointment', 2).element.click(); + await page.keyboard.press('Delete'); + await page.locator('.dx-dialog-button').filter({ hasText: textMatcher('Delete appointment') }).click(); + + await expect(scheduler.appointments).toHaveCount(4); + await scheduler.getAppointment('Recurring Appointment', 2).expectState('focused'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/keyboardNavigation/dateTable.spec.ts b/e2e/playwright/tests/scheduler/common/keyboardNavigation/dateTable.spec.ts new file mode 100644 index 000000000000..d106e71b0bb9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/keyboardNavigation/dateTable.spec.ts @@ -0,0 +1,62 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { appendElementTo } from '../../../../helpers/domUtils'; +import Scheduler from '../../../../models/scheduler'; + +const PARENT_SELECTOR = '#parentContainer'; +const SCHEDULER_SELECTOR = '#container'; +const BOTTOM_BTN_ID = 'bottom-btn'; +const BOTTOM_BTN_SELECTOR = `#${BOTTOM_BTN_ID}`; + +const setMacOsScrollableOptions = async (page: Page): Promise => page.evaluate( + (selector) => { + ($(selector) as any) + .dxScheduler('instance') + .getWorkSpaceScrollable() + .option('useNative', true); + }, + SCHEDULER_SELECTOR, +); + +test.describe('KeyboardNavigation.DateTable', () => { + [ + 'day', + 'week', + ].forEach((currentView) => { + test(`Should pass focus to the next elements after date table on Mac devices (view: ${currentView})`, async ({ page }) => { + await appendElementTo(page, PARENT_SELECTOR, 'button', BOTTOM_BTN_ID); + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2024-01-01T01:00:00', + endDate: '2024-01-01T02:00:00', + text: 'Usual', + }, + // NOTE: This case is reproduced only if view has allDay appointment + { + startDate: '2024-01-01T01:00:00', + endDate: '2024-01-01T02:00:00', + text: 'All-day', + allDay: true, + }, + ], + // NOTE: Scheduler should have a height limit for enabling native scroll container + height: 300, + currentDate: '2024-01-01', + currentView, + }); + await setMacOsScrollableOptions(page); + + const bottomBtn = page.locator(BOTTOM_BTN_SELECTOR); + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const usualAppointment = scheduler.getAppointment('All-day'); + + await usualAppointment.element.click(); + await page.keyboard.press('Tab'); + await page.keyboard.press('Tab'); + + await expect(bottomBtn).toBeFocused(); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.spec.ts b/e2e/playwright/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.spec.ts new file mode 100644 index 000000000000..3a1d71446943 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.spec.ts @@ -0,0 +1,60 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { getDocumentScrollTop } from '../../../../helpers/domUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('KeyboardNavigation.DocumentScrollPrevented', () => { + test.beforeEach(async ({ page }) => { + await page.evaluate(() => { + document.body.style.height = '2000px'; + }); + + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + text: 'Appointment 1', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 9, 9), + }, + { + text: 'Appointment 2', + startDate: new Date(2015, 1, 9, 10), + endDate: new Date(2015, 1, 9, 11), + }, + { + text: 'Appointment 3', + startDate: new Date(2015, 1, 9, 12), + endDate: new Date(2015, 1, 9, 13), + }, + ], + height: 300, + currentView: 'day', + currentDate: new Date(2015, 1, 9), + }); + }); + + test('Document should not scroll on \'End\' press when appointment is focused', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.getAppointment('Appointment 1').element.click(); + + const expectedScrollTop = await getDocumentScrollTop(page); + + await page.keyboard.press('End'); + await expect.poll(() => getDocumentScrollTop(page)).toBe(expectedScrollTop); + }); + + test('Document should not scroll on \'Home\' press when appointment is focused', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await page.evaluate(([x, y]) => window.scrollTo(x, y), [0, 100]); + await scheduler.getAppointment('Appointment 1').element.click(); + + const expectedScrollTop = await getDocumentScrollTop(page); + + await page.keyboard.press('Home'); + await expect.poll(() => getDocumentScrollTop(page)).toBe(expectedScrollTop); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/adaptive.spec.ts b/e2e/playwright/tests/scheduler/common/layout/adaptive/adaptive.spec.ts new file mode 100644 index 000000000000..ad83fe2e6179 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/adaptive/adaptive.spec.ts @@ -0,0 +1,104 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; +import { + createDataSetForScreenShotTests, + resourceDataSource, + views, + verticalViews, + horizontalViews, +} from '../utils'; + +const ADAPTIVE_SIZE: [width: number, height: number] = [400, 600]; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: createDataSetForScreenShotTests(), + currentDate: new Date(2020, 6, 15), + height: 600, + ...additionalProps, + }); +}; + +test.describe('Scheduler: Adaptive layout in themes', () => { + test.use({ browserSize: ADAPTIVE_SIZE }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + [false, true].forEach((rtlEnabled) => { + [false, true].forEach((crossScrollingEnabled) => { + test(`Adaptive views layout test, crossScrollingEnabled=${crossScrollingEnabled}${rtlEnabled ? 'in RTL' : ''}`, async ({ page }) => { + await createScheduler(page, { + views, + currentView: 'day', + crossScrollingEnabled, + rtlEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `view=${view}-crossScrolling=${crossScrollingEnabled}${rtlEnabled ? '-rtl' : ''}.png`, + { element: scheduler.workSpace }, + ); + } + }); + + test(`Adaptive views layout test crossScrollingEnabled=${crossScrollingEnabled} when horizontal grouping${rtlEnabled ? ' and RTL are' : ' is'} used`, async ({ page }) => { + await createScheduler(page, { + views: horizontalViews, + currentView: 'day', + crossScrollingEnabled, + rtlEnabled, + groups: ['priorityId'], + resources: resourceDataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `view=${view}-crossScrolling=${crossScrollingEnabled}-horizontal${rtlEnabled ? '-rtl' : ''}.png`, + { element: scheduler.workSpace }, + ); + } + }); + + test(`Adaptive views layout test, crossScrollingEnabled=${crossScrollingEnabled} when vertical grouping${rtlEnabled ? ' and RTL are' : ' is'} used`, async ({ page }) => { + await createScheduler(page, { + views: verticalViews, + currentView: 'day', + crossScrollingEnabled, + rtlEnabled, + groups: ['priorityId'], + resources: resourceDataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `view=${view}-crossScrolling=${crossScrollingEnabled}-vertical${rtlEnabled ? '-rtl' : ''}.png`, + { element: scheduler.workSpace }, + ); + } + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..327ae1340383 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..5c20a6ef7f4d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..e68ec09d4423 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..f1e2e429239f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..d838f8ca9f4e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..7d00b2ea976c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..327ae1340383 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..32a976f1e9de Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..59b336408cd1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..4e9cd460088b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..a8f9125003ad Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..f01a1de45367 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..49b0b3dd1172 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..6edb233dbbe8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..2814debb488b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..29ee23b89602 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..560b0ced9722 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9b1d703af8e0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..04cf8eb20710 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..225389827b66 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fe96c9284467 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..78f69e6dae08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..795215dac91a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..c1cc54329f77 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..5265e6cb1fbe Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..1035832bd806 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..de7076649751 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..685ce6326807 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..cdc8306217d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..25dbd7b58f66 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..5265e6cb1fbe Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..1035832bd806 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..de7076649751 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..685ce6326807 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..cdc8306217d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..25dbd7b58f66 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..1d78b4abeb43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..1ede1c3c0315 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..160c770c940a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..7cc05736da64 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..1e7538bc34ed Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..4f9eea1e7fca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..1d78b4abeb43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..1ede1c3c0315 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..160c770c940a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..7cc05736da64 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..1e7538bc34ed Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..4f9eea1e7fca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..4b4a52bc8660 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..3f5203cfab43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1625ccd2df87 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..c08be123cd28 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..0a10158e4b1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..77359322f162 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..4b4a52bc8660 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..3f5203cfab43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1625ccd2df87 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..c08be123cd28 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..0a10158e4b1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..77359322f162 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..b18883ae978e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..1bb17ac37849 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..4e7a6fd1dbfe Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..6af0b1038693 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..5a583afc2dcf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9e6e5067c179 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..46a077dcc650 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png new file mode 100644 index 000000000000..14103d181207 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..39f666ed3a79 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..02e46ef18976 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png new file mode 100644 index 000000000000..0ba95bb2fae4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png new file mode 100644 index 000000000000..f4bc4caf0979 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/browserResize.spec.ts b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/browserResize.spec.ts new file mode 100644 index 000000000000..9de5b90156fb --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/browserResize.spec.ts @@ -0,0 +1,145 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +const data = [{ + text: 'Website Re-Design Plan', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + roomId: 1, +}, { + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date(2017, 4, 22, 12, 0), + endDate: new Date(2017, 4, 22, 13, 0), + allDay: true, + roomId: 2, +}, { + text: 'Install New Router in Dev Room', + startDate: new Date(2017, 4, 22, 14, 30), + endDate: new Date(2017, 4, 22, 15, 30), + roomId: 3, +}, { + text: 'Approve Personal Computer Upgrade Plan', + startDate: new Date(2017, 4, 23, 10, 0), + endDate: new Date(2017, 4, 23, 11, 0), +}, { + text: 'Final Budget Review', + startDate: new Date(2017, 4, 23, 12, 0), + endDate: new Date(2017, 4, 23, 13, 35), + roomId: 1, +}, { + text: 'New Brochures', + startDate: new Date(2017, 4, 23, 14, 30), + endDate: new Date(2017, 4, 23, 15, 45), + roomId: 2, +}, { + text: 'Install New Database', + startDate: new Date(2017, 4, 24, 9, 45), + endDate: new Date(2017, 4, 24, 11, 15), + roomId: 1, +}, { + text: 'Approve New Online Marketing Strategy', + startDate: new Date(2017, 4, 24, 12, 0), + endDate: new Date(2017, 4, 24, 14, 0), +}, { + text: 'Upgrade Personal Computers', + startDate: new Date(2017, 4, 24, 15, 15), + endDate: new Date(2017, 4, 24, 16, 30), + roomId: 1, +}, { + text: 'Customer Workshop', + startDate: new Date(2017, 4, 25, 11, 0), + endDate: new Date(2017, 4, 25, 12, 0), + allDay: true, +}, { + text: 'Prepare 2015 Marketing Plan', + startDate: new Date(2017, 4, 25, 11, 0), + endDate: new Date(2017, 4, 25, 13, 30), +}, { + text: 'Brochure Design Review', + startDate: new Date(2017, 4, 25, 14, 0), + endDate: new Date(2017, 4, 25, 15, 30), + roomId: 3, +}, { + text: 'Create Icons for Website', + startDate: new Date(2017, 4, 26, 10, 0), + endDate: new Date(2017, 4, 26, 11, 30), + roomId: 2, +}, { + text: 'Upgrade Server Hardware', + startDate: new Date(2017, 4, 26, 14, 30), + endDate: new Date(2017, 4, 26, 16, 0), +}, { + text: 'Submit New Website Design', + startDate: new Date(2017, 4, 26, 16, 30), + endDate: new Date(2017, 4, 26, 18, 0), +}, { + text: 'Launch New Website', + startDate: new Date(2017, 4, 26, 12, 20), + endDate: new Date(2017, 4, 26, 14, 0), +}]; + +const resourceDataSource = [{ + text: 'Room 1', + id: 1, + color: '#00af2c', +}, { + text: 'Room 2', + id: 2, + color: '#56ca85', +}, { + text: 'Room 3', + id: 3, + color: '#8ecd3c', +}]; + +test.describe('Layout:BrowserResize', () => { + [{ + currentView: 'agenda', + currentDate: new Date(2017, 4, 25), + }, { + currentView: 'day', + currentDate: new Date(2017, 4, 25), + }, { + currentView: 'week', + currentDate: new Date(2017, 4, 25), + }, { + currentView: 'month', + currentDate: new Date(2017, 4, 25), + }, { + currentView: 'timelineDay', + currentDate: new Date(2017, 4, 26), + }].forEach(({ currentView, currentDate }) => { + test(`Appointment layout after resize should be rendered right in '${currentView}'`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: data, + views: [currentView], + currentView, + currentDate, + resources: [{ + fieldExpr: 'roomId', + dataSource: resourceDataSource, + }], + startDayHour: 9, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `browser-resize-currentView=${currentView}-before-resize.png`, + { element: scheduler.workSpace }, + ); + + await page.setViewportSize({ width: 600, height: 600 }); + + await testScreenshot( + page, + `browser-resize-currentView=${currentView}-after-resize.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png new file mode 100644 index 000000000000..bd9bbdfde927 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png new file mode 100644 index 000000000000..db7ea8cc781d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png new file mode 100644 index 000000000000..70a34dc08d48 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png new file mode 100644 index 000000000000..f95a532b642b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png new file mode 100644 index 000000000000..c10ebb67e51d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png new file mode 100644 index 000000000000..89b3bc13ff62 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png new file mode 100644 index 000000000000..52205597ab81 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png new file mode 100644 index 000000000000..1c704ccdce61 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png new file mode 100644 index 000000000000..bc92590a2fac Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png new file mode 100644 index 000000000000..a36ea2259b5c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.spec.ts b/e2e/playwright/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.spec.ts new file mode 100644 index 000000000000..e38d87108e54 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.spec.ts @@ -0,0 +1,94 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { classMatcher } from '../../../../../models/internal/classMatcher'; +import Scheduler, { CLASS } from '../../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const ALL_DAY_PANEL_OPTION_NAME = 'allDayPanelMode'; + +test.describe('Layout:AllDayPanelMode', () => { + [ + { + testCaseName: 'Usual appointment', + dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T10:00:00', text: 'Usual appt' }], + modesOrder: ['all', 'allDay', 'hidden'], + expectedCollapsed: [true, true, false], + expectedVisible: [true, true, false], + }, + { + testCaseName: 'Usual appointment reverse', + dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T10:00:00', text: 'Usual appt' }], + modesOrder: ['hidden', 'allDay', 'all'], + expectedCollapsed: [false, true, true], + expectedVisible: [false, true, true], + }, + { + testCaseName: 'Long appointment', + dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2024-01-01T00:00:00', text: 'Long appt' }], + modesOrder: ['all', 'allDay', 'hidden'], + expectedCollapsed: [false, true, false], + expectedVisible: [true, true, false], + }, + { + testCaseName: 'Long appointment reverse', + dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2024-01-01T00:00:00', text: 'Long appt' }], + modesOrder: ['hidden', 'allDay', 'all'], + expectedCollapsed: [false, true, false], + expectedVisible: [false, true, true], + }, + { + testCaseName: 'All-day appointment', + dataSource: [{ + startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T00:00:00', text: 'All-day appt', allDay: true, + }], + modesOrder: ['all', 'allDay', 'hidden'], + expectedCollapsed: [false, false, false], + expectedVisible: [true, true, false], + }, + { + testCaseName: 'All-day appointment reverse', + dataSource: [{ + startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T00:00:00', text: 'All-day appt', allDay: true, + }], + modesOrder: ['hidden', 'allDay', 'all'], + expectedCollapsed: [false, false, false], + expectedVisible: [false, true, true], + }, + ].forEach(({ + testCaseName, + dataSource, + modesOrder, + expectedCollapsed, + expectedVisible, + }) => { + test( + `${testCaseName}: AllDayPanel visibility and collapsed state should be correct in runtime`, + async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentView: 'week', + currentDate: '2023-12-01', + dataSource, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + for (const [idx, mode] of modesOrder.entries()) { + await scheduler.option(ALL_DAY_PANEL_OPTION_NAME, mode); + + const collapsedAssertion = expect( + scheduler.workSpace, + `allDayPanel (mode: ${mode}) should be ${expectedCollapsed[idx] ? 'collapsed' : 'extended'}`, + ); + const visibleAssertion = expect( + scheduler.allDayRow, + `allDayPanel (mode: ${mode}) should be ${expectedVisible[idx] ? 'visible' : 'hidden'}`, + ); + + await (expectedCollapsed[idx] ? collapsedAssertion : collapsedAssertion.not) + .toHaveClass(classMatcher(CLASS.allDayCollapsed)); + await (expectedVisible[idx] ? visibleAssertion : visibleAssertion.not).toBeAttached(); + } + }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/allDayExpr.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/allDayExpr.spec.ts new file mode 100644 index 000000000000..0ff94bf2516a --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/allDayExpr.spec.ts @@ -0,0 +1,56 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Layout:Appointments:allDayExpr', () => { + test.use({ theme: 'generic.light' }); + + [{ + config: { + allDayExpr: 'AllDay', + }, + data: { + AllDay: true, + }, + }, { + config: { + }, + data: { + allDay: true, + }, + }].forEach(({ config, data }) => { + test(`All day appointment should be render valid in case without endDate property with allDayExpr=${config.allDayExpr}(T1155630)`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'MY EVENT', + startDate: new Date(2023, 2, 19, 23, 45), + ...data, + }], + views: ['week', 'timelineWeek'], + currentView: 'week', + cellDuration: 360, + startDayHour: 18, + currentDate: new Date(2023, 2, 21), + height: 600, + ...config, + }); + + const { toolbar, workSpace } = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `week-all-day-expr-${config.allDayExpr}.png`, + { element: workSpace }, + ); + + await toolbar.viewSwitcher.getButton('Timeline Week').element.click(); + + await testScreenshot( + page, + `timelineWeek-all-day-expr-${config.allDayExpr}.png`, + { element: workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png new file mode 100644 index 000000000000..39cdc601dfec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png new file mode 100644 index 000000000000..0bb6b4f1bbe4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png new file mode 100644 index 000000000000..cf4b72f340a5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png new file mode 100644 index 000000000000..8cd2248c0bc5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png new file mode 100644 index 000000000000..f835354f3194 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png new file mode 100644 index 000000000000..0bb6b4f1bbe4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png new file mode 100644 index 000000000000..e967276705ee Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png new file mode 100644 index 000000000000..9ce3fde70d8c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png new file mode 100644 index 000000000000..9ce3fde70d8c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png new file mode 100644 index 000000000000..598040f2b2ec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png new file mode 100644 index 000000000000..598040f2b2ec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/longAppointment.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/longAppointment.spec.ts new file mode 100644 index 000000000000..a25a648f1857 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/allDay/longAppointment.spec.ts @@ -0,0 +1,70 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Layout:Appointments:AllDay', () => { + test('Long all day appointment should be render, if him ended on next view day in currentView: \'day\'(T1021963)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: true, + startDate: new Date(2021, 2, 28), + endDate: new Date(2021, 2, 29), + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 28), + startDayHour: 9, + width: 400, + height: 600, + }); + + const { workSpace, toolbar } = new Scheduler(page, '#container'); + + await toolbar.navigator.prevButton.click(); + + await testScreenshot(page, '27-march-day-view.png', { element: workSpace }); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot(page, '28-march-day-view.png', { element: workSpace }); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot(page, '29-march-day-view.png', { element: workSpace }); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot(page, '30-march-day-view.png', { element: workSpace }); + }); + + test('Long all day appointment should be render, if him ended on next view day in currentView:', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: true, + startDate: new Date(2021, 2, 27), + endDate: new Date(2021, 3, 4), + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + startDayHour: 9, + width: 600, + height: 600, + }); + + const { workSpace, toolbar } = new Scheduler(page, '#container'); + + await toolbar.navigator.prevButton.click(); + + await testScreenshot(page, '21-27-march-week-view.png', { element: workSpace }); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot(page, '28-march-3-apr-week-view.png', { element: workSpace }); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot(page, '4-10-apr-week-view.png', { element: workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/collector.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/collector.spec.ts new file mode 100644 index 000000000000..5e06c847881b --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/collector.spec.ts @@ -0,0 +1,120 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { generateOptionMatrix } from '../../../../../helpers/generateOptionMatrix'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const getSchedulerBaseOptions = (view: string) => { + const count = 20; + const day = 1; + const allDayAppointments = Array(Math.round(count / 4)).fill({ + allDay: true, + text: 'text', + startDate: new Date(2021, 7, day, 0), + endDate: new Date(2021, 7, day, 2), + }); + const regularAppointments = Array(Math.round((count * 3) / 4)).fill({ + text: 'text', + startDate: new Date(2021, 7, day, 0), + endDate: new Date(2021, 7, day, 2), + }); + const width = ['month', 'week'].includes(view) ? 800 : 500; + const height = ['month'].includes(view) ? 500 : 300; + + return { + currentDate: new Date(2021, 7, day), + views: [view], + currentView: view, + dataSource: [...allDayAppointments, ...regularAppointments], + height, + width, + }; +}; + +test.describe('Appointments collector', () => { + test('Appointment collector has correct offset when adaptivityEnabled=true (T1024299)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + adaptivityEnabled: true, + currentDate: new Date(2021, 7, 1), + views: ['timelineMonth'], + currentView: 'timelineMonth', + dataSource: [{ + text: 'text', + startDate: new Date(2021, 7, 1), + endDate: new Date(2021, 7, 2), + }], + height: 300, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + 'appointment-collector-adaptability-timelineMonth.png', + { element: scheduler.workSpace }, + ); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + generateOptionMatrix({ + view: ['week', 'month', 'timelineWeek'], + adaptivityEnabled: [true, false], + }).forEach(({ view, adaptivityEnabled }) => { + test(`Appointment collector has correct offset when view=${view} adaptivityEnabled=${adaptivityEnabled}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + adaptivityEnabled, + ...getSchedulerBaseOptions(view), + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `appointment-collector-${view}-adapt(${adaptivityEnabled}).png`, + { element: scheduler.workSpace }, + ); + }); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + test('Appointment collector has correct offset when month view with double interval', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...getSchedulerBaseOptions('month'), + views: [{ type: 'month', intervalCount: 2 }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + 'appointment-collector-month-double-interval.png', + { element: scheduler.workSpace }, + ); + }); + + generateOptionMatrix({ + view: ['week', 'month', 'timelineWeek'], + rtlEnabled: [false, true], + }).forEach(({ + view, rtlEnabled, + }) => { + test(`Appointment collector has correct offset when view=${view} rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + ...getSchedulerBaseOptions(view), + rtlEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `appointment-collector-${view}-rtl(${rtlEnabled}).png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/dataSource.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/dataSource.spec.ts new file mode 100644 index 000000000000..2420793631f8 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/dataSource.spec.ts @@ -0,0 +1,44 @@ +import { test } from '../../../../../fixtures'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('DataSource', () => { + test('Appointment key should be deleted when removing an appointment from series (T1024213)', async ({ page }) => { + await page.evaluate(() => { + const devExpress = (window as any).DevExpress; + + ($('#container') as any).dxScheduler({ + dataSource: new devExpress.data.DataSource({ + store: { + type: 'array', + key: 'appointmentId', + data: [{ + startDate: new Date(2021, 6, 12, 10), + endDate: new Date(2021, 6, 12, 11), + text: 'Test Appointment', + recurrenceRule: 'FREQ=DAILY;COUNT=3', + appointmentId: 0, + }], + }, + }), + recurrenceEditMode: 'occurrence', + views: ['week'], + currentView: 'week', + startDayHour: 9, + currentDate: new Date(2021, 6, 12, 10), + height: 600, + }); + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.getAppointmentByIndex(1).element.dblclick(); + await scheduler.appointmentPopup.saveButton.element.click(); + + await testScreenshot( + page, + 'exclude-appointment-from-series-via-form-editing.png', + { element: scheduler.workSpace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/disable.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/disable.spec.ts new file mode 100644 index 000000000000..f90e2530ac65 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/disable.spec.ts @@ -0,0 +1,82 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Appointments:disable', () => { + test('Appointment popup should be readOnly if appointment is disabled', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => { + const dailyRecurrenceRule = 'FREQ=DAILY;UNTIL=20210615T205959Z'; + const weeklyRecurrenceRule = 'FREQ=WEEKLY;UNTIL=20210615T205959Z'; + + return { + dataSource: [{ + disabled: true, + text: 'A', + startDate: new Date(2021, 4, 27, 0, 30), + endDate: new Date(2021, 4, 27, 1), + recurrenceRule: dailyRecurrenceRule, + }, { + disabled: false, + text: 'B', + startDate: new Date(2021, 4, 27, 1), + endDate: new Date(2021, 4, 27, 1, 30), + recurrenceRule: dailyRecurrenceRule, + }, { + disabled: () => true, + text: 'C', + startDate: new Date(2021, 4, 27, 1, 30), + endDate: new Date(2021, 4, 27, 2), + recurrenceRule: weeklyRecurrenceRule, + }, { + disabled: () => false, + text: 'D', + startDate: new Date(2021, 4, 27, 2), + endDate: new Date(2021, 4, 27, 2, 30), + recurrenceRule: weeklyRecurrenceRule, + }], + recurrenceEditMode: 'series', + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 4, 27), + }; + }); + + const scheduler = new Scheduler(page, '#container'); + const { appointmentPopup } = scheduler; + + await testScreenshot(page, 'disabled-appointments-in-grid.png'); + + await scheduler.getAppointment('A', 0).element.click({ force: true }); + await scheduler.appointmentTooltip.getListItem('A').element.click(); + + await testScreenshot(page, 'disabled-appointment.png', { element: appointmentPopup.contentElement }); + + await appointmentPopup.cancelButton.element.click(); + + await scheduler.getAppointment('B').element.click(); + await scheduler.appointmentTooltip.getListItem('B').element.click(); + + await testScreenshot(page, 'enabled-appointment.png', { element: appointmentPopup.contentElement }); + + await appointmentPopup.cancelButton.element.click(); + + await scheduler.getAppointment('C').element.click({ force: true }); + await scheduler.appointmentTooltip.getListItem('C').element.click(); + + await testScreenshot(page, 'disabled-by-function-appointment.png', { + element: appointmentPopup.contentElement, + }); + + await appointmentPopup.cancelButton.element.click(); + + await scheduler.getAppointment('D').element.click({ force: true }); + await scheduler.appointmentTooltip.getListItem('D').element.click(); + + await testScreenshot(page, 'enabled-by-function-appointment.png', { + element: appointmentPopup.contentElement, + }); + + await appointmentPopup.cancelButton.element.click(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png new file mode 100644 index 000000000000..a8362fe7b09c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..e9bed6e07e8a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png new file mode 100644 index 000000000000..f8460b72e483 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png new file mode 100644 index 000000000000..b5ed55f727db Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png new file mode 100644 index 000000000000..63933917a70f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png new file mode 100644 index 000000000000..f8460b72e483 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png new file mode 100644 index 000000000000..d686fc67d454 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png new file mode 100644 index 000000000000..8e84999e9991 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png new file mode 100644 index 000000000000..e1521f73b1af Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png new file mode 100644 index 000000000000..8e84999e9991 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png new file mode 100644 index 000000000000..0588b6304cff Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png new file mode 100644 index 000000000000..25cab71c53c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png new file mode 100644 index 000000000000..302029331c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png new file mode 100644 index 000000000000..25cab71c53c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png new file mode 100644 index 000000000000..c0211a0b839a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png new file mode 100644 index 000000000000..e5cc94ec8f42 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png new file mode 100644 index 000000000000..d669fd759683 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png new file mode 100644 index 000000000000..e8e683f6e9c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png new file mode 100644 index 000000000000..34b0df18beec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..2c1cc5ae92bf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png new file mode 100644 index 000000000000..bdd3656bad05 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png new file mode 100644 index 000000000000..bdd3656bad05 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png new file mode 100644 index 000000000000..191cfbcd23dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png new file mode 100644 index 000000000000..eea297f25510 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png new file mode 100644 index 000000000000..9c8966e27186 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..2c8b89189206 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png new file mode 100644 index 000000000000..a814205aa4bf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..2d75b67fbb95 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..1c26fdd9bf2e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..4007c4b72e3b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png new file mode 100644 index 000000000000..e310605bf4d1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png new file mode 100644 index 000000000000..c64d47ec90d2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..c64d47ec90d2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png new file mode 100644 index 000000000000..55b2acdc6481 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..a612ef822465 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png new file mode 100644 index 000000000000..55b2acdc6481 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png new file mode 100644 index 000000000000..a612ef822465 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png new file mode 100644 index 000000000000..3a37b99a9322 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png new file mode 100644 index 000000000000..f44514172d5a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..8e5256bb1515 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..c1f9d2027194 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..8536a7ba327f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..80c6f699b064 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..2821e518bf64 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..166cbdb4515e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..8b88065e5a92 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..55d64b33ed22 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..34a1bed7b9d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..b72dff170802 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..9df14ad0b318 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..480083fbc48b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..7b225f803768 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..c0fd34b52fb2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..a8a61d7f4ae7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..c9196b056114 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..49cad223a55e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png new file mode 100644 index 000000000000..597c59904075 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/longAppointments.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/longAppointments.spec.ts new file mode 100644 index 000000000000..16524220a877 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/longAppointments.spec.ts @@ -0,0 +1,82 @@ +// T1086079 +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const dataSource = [{ + text: 'Website Re-Design Plan', + startDate: new Date('2021-02-29T01:30:00.000Z'), + endDate: new Date('2021-02-29T14:30:00.000Z'), + recurrenceRule: 'FREQ=DAILY', +}]; + +const appointmentName = 'Website Re-Design Plan'; + +test.describe('Layout:Appointments:longAppointments(T1086079)', () => { + test('Control should be render top part of recurrent long appointment in day view(T1086079)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource, + cellDuration: 120, + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 30), + startDayHour: 2, + endDayHour: 22, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'long-appointment-day-view-T1086079.png', { + element: scheduler.workSpace, + }); + + await scheduler.getAppointment(appointmentName, 0).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 29 5:30 PM - March 30 6:30 AM'); + + await scheduler.getAppointment(appointmentName, 1).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 30 5:30 PM - March 31 6:30 AM'); + + await scheduler.toolbar.navigator.nextButton.click(); + + await scheduler.getAppointment(appointmentName, 0).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 30 5:30 PM - March 31 6:30 AM'); + + await scheduler.getAppointment(appointmentName, 1).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 31 5:30 PM - April 1 6:30 AM'); + }); + + test('Control should be render top part of recurrent long appointment in week view(T1086079)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource, + cellDuration: 120, + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 30), + startDayHour: 2, + endDayHour: 22, + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'long-appointment-week-view-T1086079.png', { + element: scheduler.workSpace, + }); + + await scheduler.getAppointment(appointmentName, 0).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 27 5:30 PM - March 28 6:30 AM'); + + await scheduler.getAppointment(appointmentName, 1).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 28 5:30 PM - March 29 6:30 AM'); + + await scheduler.getAppointment(appointmentName, 2).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 28 5:30 PM - March 29 6:30 AM'); + + await scheduler.getAppointment(appointmentName, 3).element.click(); + await expect(scheduler.appointmentTooltip.getListItem(appointmentName).date).toHaveText('March 29 5:30 PM - March 30 6:30 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.spec.ts new file mode 100644 index 000000000000..8928f03bc42f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.spec.ts @@ -0,0 +1,35 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Appointments:narrowAppointmentFluent', () => { + test('Very narrow appointment in horizontal timeline should hide the appointment strip in Fluent theme', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2016, 1, 2), + dataSource: [ + { + text: 'short', + startDate: new Date(2016, 1, 2, 12, 0), + endDate: new Date(2016, 1, 2, 12, 1), + }, + ], + views: ['timelineWeek'], + currentView: 'timelineWeek', + maxAppointmentsPerCell: 'unlimited', + height: 505, + width: 800, + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + firstDayOfWeek: 0, + }); + + const scheduler = new Scheduler(page, '#container'); + const strip = scheduler + .getAppointment('short') + .element.locator('.dx-scheduler-appointment-strip'); + + await expect(strip).toBeAttached(); + await expect(strip).toHaveCSS('display', 'none'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/noSubject.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/noSubject.spec.ts new file mode 100644 index 000000000000..d0b43239c03f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/noSubject.spec.ts @@ -0,0 +1,46 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +// visual: generic.light +// visual: fluent.blue.light +// visual: material.blue.light +const views = ['day', 'week', 'workWeek', 'month', 'timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth', 'agenda']; +const timelineViews = ['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth']; + +test.describe('Layout:Appointments:noSubject', () => { + views.forEach((currentView) => { + test(`Appointment without text should display "(No subject)" in ${currentView} view`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + startDate: new Date(2021, 0, 1, 10, 30), + endDate: new Date(2021, 0, 1, 12, 0), + text: '', + }], + views, + currentView, + currentDate: new Date(2021, 0, 1), + startDayHour: 9, + endDayHour: 18, + height: 600, + width: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + const appointmentDate = new Date(2021, 0, 1, 10, 30); + + if (timelineViews.includes(currentView)) { + await scheduler.scrollTo(appointmentDate); + await expect(scheduler.getAppointmentByIndex(0).element).toBeInViewport(); + } + + await testScreenshot( + page, + `appointment-no-subject-${currentView}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/recurrence.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/recurrence.spec.ts new file mode 100644 index 000000000000..db84c042b240 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/recurrence.spec.ts @@ -0,0 +1,36 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('AppointmentForm screenshot tests', () => { + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + ['day', 'week', 'workWeek', 'month', 'timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth', 'agenda'].forEach((currentView) => { + [true, false].forEach((rtlEnabled) => { + test(`Appointemt form tests (currentView: ${currentView}, rtlEnabled: ${rtlEnabled})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Long Long Long Long Long Long Long Long Long Description', + startDate: new Date(2021, 0, 1, 1, 30), + endDate: new Date(2021, 0, 1, 3, 0), + recurrenceRule: 'FREQ=DAILY;COUNT=30', + }], + currentDate: new Date(2021, 0, 4), + height: 600, + currentView, + rtlEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `recurrent-appointment-in-${currentView}_view-and-${rtlEnabled ? 'rtl' : 'non-rtl'}_mode.png`, + { element: scheduler.element }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/two-schedulers.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/two-schedulers.spec.ts new file mode 100644 index 000000000000..dec858dfd2f8 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/two-schedulers.spec.ts @@ -0,0 +1,66 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Appointments:two-schedulers', () => { + test('Appointment\'s dragging should be work properly, if on page placed two dxSchedulers(T1020820)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + maxAppointmentsPerCell: 'unlimited', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date('2021-03-29T16:30:00.000Z'), + endDate: new Date('2021-03-29T18:30:00.000Z'), + }, { + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date('2021-03-29T19:00:00.000Z'), + endDate: new Date('2021-03-29T20:00:00.000Z'), + allDay: true, + }, { + text: 'Approve Personal Computer Upgrade Plan', + startDate: new Date('2021-03-30T17:00:00.000Z'), + endDate: new Date('2021-03-30T18:00:00.000Z'), + }, { + text: 'Final Budget Review', + startDate: new Date('2021-03-30T19:00:00.000Z'), + endDate: new Date('2021-03-30T20:35:00.000Z'), + }, { + text: 'Install New Database', + startDate: new Date('2021-03-31T16:45:00.000Z'), + endDate: new Date('2021-03-31T18:15:00.000Z'), + }], + views: ['month'], + currentView: 'month', + currentDate: new Date(2021, 2, 29), + startDayHour: 9, + height: 400, + }); + + await createWidget(page, 'dxScheduler', { + maxAppointmentsPerCell: 'unlimited', + dataSource: [{ + text: 'Helen', + startDate: new Date('2021-03-29T16:30:00.000Z'), + endDate: new Date('2021-04-29T18:30:00.000Z'), + }, { + text: 'Alex', + startDate: new Date('2021-03-29T19:00:00.000Z'), + endDate: new Date('2021-04-29T20:00:00.000Z'), + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 29), + startDayHour: 9, + height: 400, + }, '#otherContainer'); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'before-dragging(T1020820).png'); + + await dragToOffset(page, scheduler.getAppointment('Install New Database').element, -100, -100); + + await testScreenshot(page, 'after-dragging(T1020820).png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/appointments/visible.spec.ts b/e2e/playwright/tests/scheduler/common/layout/appointments/visible.spec.ts new file mode 100644 index 000000000000..f17693f5175a --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/appointments/visible.spec.ts @@ -0,0 +1,45 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Appointments:visible', () => { + [1, 0].forEach((maxAppointmentsPerCell) => { + [true, false, undefined].forEach((visible) => { + test(`Appointments should be filtered by visible property(visible='${visible}', maxAppointmentsPerCell='${maxAppointmentsPerCell}'`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Recurrence app', + roomId: [1], + startDate: new Date(2021, 3, 13, 1, 30), + endDate: new Date(2021, 3, 13, 2, 30), + recurrenceRule: 'FREQ=DAILY', + visible, + }, { + text: 'Simple app', + roomId: [1], + startDate: new Date(2021, 3, 12, 3), + endDate: new Date(2021, 3, 12, 4), + visible, + }], + views: [{ + type: 'week', + name: 'Numeric Mode', + maxAppointmentsPerCell, + }], + currentView: 'Numeric Mode', + currentDate: new Date(2021, 3, 15), + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `filtering-visible=${visible}-maxAppointmentsPerCell=${maxAppointmentsPerCell}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/cellSizes.spec.ts b/e2e/playwright/tests/scheduler/common/layout/customization/cellSizes.spec.ts new file mode 100644 index 000000000000..c79f362b7b77 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/customization/cellSizes.spec.ts @@ -0,0 +1,107 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const SELECTOR = '#container'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 4, 11), + height: 500, + width: 700, + startDayHour: 9, + showAllDayPanel: false, + dataSource: [], + crossScrollingEnabled: true, + groups: ['priorityId'], + resources: [{ + fieldExpr: 'priorityId', + dataSource: [{ + text: 'Low Priority 1', + id: 0, + color: '#24ff50', + }, { + text: 'Low Priority 2', + id: 1, + color: '#ff9747', + }, { + text: 'Low Priority 3', + id: 2, + color: '#24ff50', + }, { + text: 'High Priority 1', + id: 3, + color: '#ff9747', + }, { + text: 'High Priority 2', + id: 4, + color: '#24ff50', + }, { + text: 'High Priority 3', + id: 5, + color: '#ff9747', + }], + label: 'Priority', + }], + ...additionalProps, + }); +}; + +const views = [{ + type: 'week', + groupOrientation: 'horizontal', +}, { + type: 'month', + groupOrientation: 'horizontal', +}, { + type: 'timelineWeek', + groupOrientation: 'vertical', +}, { + type: 'timelineMonth', + groupOrientation: 'vertical', +}]; + +test.describe('Scheduler: Layout Customization: Cell Sizes', () => { + test('Cell sizes customization should work', async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-cell-sizes-vertical { height: 150px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'); + await createScheduler(page, { + views, + }); + + const scheduler = new Scheduler(page, SELECTOR); + + for (const { type } of views) { + await scheduler.option('currentView', type); + + await testScreenshot( + page, + `custom-cell-sizes-in-${type}.png`, + { element: scheduler.workSpace }, + ); + } + }); + + test('Cell sizes customization should work when all-day panel is enabled', async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-cell-sizes-vertical { height: 150px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'); + + await createScheduler(page, { + views, + showAllDayPanel: true, + currentView: 'week', + }); + + const scheduler = new Scheduler(page, SELECTOR); + + await testScreenshot( + page, + 'custom-cell-sizes-with-all-day-panel-in-week.png', + { element: scheduler.workSpace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/cellSizesCss.spec.ts b/e2e/playwright/tests/scheduler/common/layout/customization/cellSizesCss.spec.ts new file mode 100644 index 000000000000..387ad270c4a0 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/customization/cellSizesCss.spec.ts @@ -0,0 +1,134 @@ +import { expect, test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { classMatcher } from '../../../../../models/internal/classMatcher'; +import Scheduler from '../../../../../models/scheduler'; + +const SELECTOR = '#container'; + +const HORIZONTAL_SIZE_CLASSNAME = 'dx-scheduler-cell-sizes-horizontal'; +const VERTICAL_SIZE_CLASSNAME = 'dx-scheduler-cell-sizes-vertical'; +const CELL_SIZE_CSS = ` +#container .${HORIZONTAL_SIZE_CLASSNAME} { + width: 300px; +} + +#container .${VERTICAL_SIZE_CLASSNAME} { + height: 300px; +} +`; + +const DAY_VIEW_CASE = { + views: ['day'], + crossScrollingEnabled: false, + expect: { + width: 'skipCheck', + height: 300, + hasHorizontalClass: false, + hasVerticalClass: true, + }, +}; + +const DAY_VIEW_CROSS_SCROLLING_CASE = { + views: ['day'], + crossScrollingEnabled: true, + expect: { + width: 'skipCheck', + height: 300, + hasHorizontalClass: true, + hasVerticalClass: true, + }, +}; + +const VERTICAL_VIEW_CASES = { + views: ['week', 'workWeek', 'month'], + crossScrollingEnabled: false, + expect: { + width: 'skipCheck', + height: 300, + hasHorizontalClass: false, + hasVerticalClass: true, + }, +}; + +const VERTICAL_VIEW_CROSS_SCROLLING_CASES = { + views: ['week', 'workWeek', 'month'], + crossScrollingEnabled: true, + expect: { + width: 300, + height: 300, + hasHorizontalClass: true, + hasVerticalClass: true, + }, +}; + +const HORIZONTAL_VIEW_CASES = { + views: ['timelineDay', 'timelineWeek', 'timelineMonth'], + crossScrollingEnabled: false, + expect: { + width: 300, + height: 300, + hasHorizontalClass: true, + hasVerticalClass: true, + }, +}; + +const HORIZONTAL_VIEW_CROSS_SCROLLING_CASES = { + views: ['timelineDay', 'timelineWeek', 'timelineMonth'], + crossScrollingEnabled: true, + expect: { + width: 300, + height: 300, + hasHorizontalClass: true, + hasVerticalClass: true, + }, +}; + +test.describe('Scheduler: Layout Customization: Cell Sizes CSS classes', () => { + [ + DAY_VIEW_CASE, + DAY_VIEW_CROSS_SCROLLING_CASE, + VERTICAL_VIEW_CASES, + VERTICAL_VIEW_CROSS_SCROLLING_CASES, + HORIZONTAL_VIEW_CASES, + HORIZONTAL_VIEW_CROSS_SCROLLING_CASES, + ].forEach(({ views, expect: expected, crossScrollingEnabled }) => { + views.forEach((view) => { + test( + `Cells should have correct sizes and css classes (view:${view}, crossScrolling:${crossScrollingEnabled})`, + async ({ page }) => { + await insertStylesheetRulesToPage(page, CELL_SIZE_CSS); + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: view, + currentDate: '2024-01-01', + crossScrollingEnabled, + }); + + const scheduler = new Scheduler(page, SELECTOR); + + const cell = scheduler.getDateTableCell(0, 0); + const getCellSize = () => cell.evaluate((element) => { + const { width, height } = element.getBoundingClientRect(); + + return { width, height }; + }); + + if (typeof expected.width === 'number') { + await expect.poll(async () => (await getCellSize()).width, { message: 'Date table cell has incorrect width' }).toBe(expected.width); + } + + await expect.poll(async () => (await getCellSize()).height, { message: 'Date table cell has incorrect height' }).toBe(expected.height); + + const horizontalAssertion = expect(cell, 'Cell should has horizontal css class'); + const verticalAssertion = expect(cell, 'Cell should has vertical css class'); + + await (expected.hasHorizontalClass ? horizontalAssertion : horizontalAssertion.not) + .toHaveClass(classMatcher(HORIZONTAL_SIZE_CLASSNAME)); + await (expected.hasVerticalClass ? verticalAssertion : verticalAssertion.not) + .toHaveClass(classMatcher(VERTICAL_SIZE_CLASSNAME)); + }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png new file mode 100644 index 000000000000..20adc4a7b6dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..9e07ccda54a9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png new file mode 100644 index 000000000000..32d0902d097f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..b8ffeb56d079 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..ae91f1be22ae Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..cb9fcdf225d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..344ac91396c8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..dd118f4d9711 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..dd118f4d9711 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..91003b2620bf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..91003b2620bf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..6f038c6abcf4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..050200a19e75 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..2a13167657ab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..0be496b28126 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..c67a7a8d5f9a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..c67a7a8d5f9a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..fca6d43d646a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..fca6d43d646a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..8f1dfe01d78d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..8f6944daa9de Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..03eeac9fb47b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..03eeac9fb47b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..02af6c5d1ec9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..02af6c5d1ec9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/groupPanel.spec.ts b/e2e/playwright/tests/scheduler/common/layout/customization/groupPanel.spec.ts new file mode 100644 index 000000000000..43024af76480 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/customization/groupPanel.spec.ts @@ -0,0 +1,86 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 4, 11), + height: 500, + width: 700, + startDayHour: 9, + showAllDayPanel: false, + dataSource: [{ + text: 'Create Report on Customer Feedback', + startDate: new Date(2021, 4, 1, 14), + endDate: new Date(2021, 4, 1, 15), + priorityId: 0, + }, { + text: 'Review Customer Feedback Report', + startDate: new Date(2021, 4, 9, 9, 30), + endDate: new Date(2021, 4, 9, 11), + priorityId: 0, + }], + groups: ['priorityId'], + resources: [{ + fieldExpr: 'priorityId', + dataSource: [ + { + text: 'Low Priority', + id: 0, + color: '#24ff50', + }, { + text: 'High Priority', + id: 1, + color: '#ff9747', + }, + ], + label: 'Priority', + }], + ...additionalProps, + }); +}; + +const views = [{ + type: 'week', + groupOrientation: 'vertical', +}, { + type: 'month', + groupOrientation: 'vertical', +}, { + type: 'timelineWeek', + groupOrientation: 'vertical', +}, { + type: 'timelineMonth', + groupOrientation: 'vertical', +}]; + +test.describe('Scheduler: Layout Customization: Group Panel', () => { + [false, true].forEach((crossScrollingEnabled) => { + test(`Group panel customization should work (crossScrollingEnabled: ${crossScrollingEnabled})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-group-header { width: 200px;}'); + + await createScheduler(page, { + views, + crossScrollingEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view.type); + + await testScreenshot( + page, + `custom-group-panel-in-${view.type}-cross-scrolling=${crossScrollingEnabled}.png`, + { element: scheduler.element }, + ); + } + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/headerPanel.spec.ts b/e2e/playwright/tests/scheduler/common/layout/customization/headerPanel.spec.ts new file mode 100644 index 000000000000..9f3df240880c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/customization/headerPanel.spec.ts @@ -0,0 +1,86 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 4, 11), + height: 500, + width: 700, + startDayHour: 9, + showAllDayPanel: false, + dataSource: [{ + text: 'Create Report on Customer Feedback', + startDate: new Date(2021, 4, 11, 14), + endDate: new Date(2021, 4, 11, 15), + priorityId: 0, + }, { + text: 'Review Customer Feedback Report', + startDate: new Date(2021, 4, 9, 9, 30), + endDate: new Date(2021, 4, 9, 11), + priorityId: 0, + }], + groups: ['priorityId'], + resources: [{ + fieldExpr: 'priorityId', + dataSource: [ + { + text: 'Low Priority', + id: 0, + color: '#24ff50', + }, { + text: 'High Priority', + id: 1, + color: '#ff9747', + }, + ], + label: 'Priority', + }], + ...additionalProps, + }); +}; + +const views = [{ + type: 'week', + groupOrientation: 'horizontal', +}, { + type: 'month', + groupOrientation: 'horizontal', +}, { + type: 'timelineWeek', + groupOrientation: 'horizontal', +}, { + type: 'timelineMonth', + groupOrientation: 'horizontal', +}]; + +test.describe('Scheduler: Layout Customization: Header Panel', () => { + [false, true].forEach((crossScrollingEnabled) => { + test(`Header panel customization should work (crossScrollingEnabled: ${crossScrollingEnabled})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-group-header, #container .dx-scheduler-header-panel-cell { height: 100px; }'); + + await createScheduler(page, { + views, + crossScrollingEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view.type); + + await testScreenshot( + page, + `custom-header-panel-in-${view.type}-cross-scrolling=${crossScrollingEnabled}.png`, + { element: scheduler.element }, + ); + } + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/customization/timePanel.spec.ts b/e2e/playwright/tests/scheduler/common/layout/customization/timePanel.spec.ts new file mode 100644 index 000000000000..96d39eda58aa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/customization/timePanel.spec.ts @@ -0,0 +1,81 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + currentDate: new Date(2021, 4, 11), + height: 500, + width: 700, + startDayHour: 9, + showAllDayPanel: false, + dataSource: [{ + text: 'Create Report on Customer Feedback', + startDate: new Date('2021-05-11T22:15:00.000Z'), + endDate: new Date('2021-05-12T00:30:00.000Z'), + }, { + text: 'Review Customer Feedback Report', + startDate: new Date('2021-05-11T23:15:00.000Z'), + endDate: new Date('2021-05-12T01:30:00.000Z'), + }, { + text: 'Customer Feedback Report Analysis', + startDate: new Date('2021-05-12T16:30:00.000Z'), + endDate: new Date('2021-05-12T17:30:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY', + }, { + text: 'Prepare Shipping Cost Analysis Report', + startDate: new Date('2021-05-12T19:30:00.000Z'), + endDate: new Date('2021-05-12T20:30:00.000Z'), + }, { + text: 'Provide Feedback on Shippers', + startDate: new Date('2021-05-12T21:15:00.000Z'), + endDate: new Date('2021-05-12T23:00:00.000Z'), + }, { + text: 'Select Preferred Shipper', + startDate: new Date('2021-05-13T00:30:00.000Z'), + endDate: new Date('2021-05-13T03:00:00.000Z'), + }, { + text: 'Complete Shipper Selection Form', + startDate: new Date('2021-05-13T15:30:00.000Z'), + endDate: new Date('2021-05-13T17:00:00.000Z'), + }, { + text: 'Upgrade Server Hardware', + startDate: new Date('2021-05-13T19:00:00.000Z'), + endDate: new Date('2021-05-13T21:15:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY', + }, { + text: 'Upgrade Personal Computers', + startDate: new Date('2021-05-13T21:45:00.000Z'), + endDate: new Date('2021-05-13T23:30:00.000Z'), + }], + ...additionalProps, + }); +}; + +test.describe('Scheduler: Layout Customization: Time Panel', () => { + [false, true].forEach((crossScrollingEnabled) => { + ['week', 'agenda'].forEach((view) => { + test(`Time panel customization should work in ${view} view (crossScrollingEnabled: ${crossScrollingEnabled})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, '#container .dx-scheduler-time-panel { width: 150px;}'); + + await createScheduler(page, { + views: [view], + currentView: view, + crossScrollingEnabled, + }); + + await testScreenshot( + page, + `custom-time-panel-in-${view}-cross-scrolling=${crossScrollingEnabled}.png`, + { element: '#container' }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..43d0624b0ab1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..f165f890d0b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..a75a5eb26457 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..3fe737674739 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..a467f1c19d28 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..9c74013655b4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..ebe17d78dc25 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..3201396bff9b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..bcf067a14ecb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..1e5bfc7252eb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..904f541bfb16 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..7e491a4f58d5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..cdfb1ff859b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..92b8630a140e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..05e2a1a0befa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..284fb66095d8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png new file mode 100644 index 000000000000..52368dd2b05c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png new file mode 100644 index 000000000000..712eb07d6cab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/base/resources.spec.ts b/e2e/playwright/tests/scheduler/common/layout/resources/base/resources.spec.ts new file mode 100644 index 000000000000..f55c10277b6d --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/resources/base/resources.spec.ts @@ -0,0 +1,91 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; +import { createDataSetForScreenShotTests, resourceDataSource } from '../../utils'; + +const createScheduler = async ( + page: Page, + view: string, + resourcesValue?: unknown[], +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: createDataSetForScreenShotTests(), + currentDate: new Date(2020, 6, 15), + views: [view], + currentView: view, + resources: resourcesValue, + height: 600, + }); +}; + +test.describe('Scheduler: Resources layout', () => { + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + [undefined, resourceDataSource].forEach((resourcesValue) => { + ['agenda', 'day', 'week', 'month', 'workWeek'].forEach((view) => { + test(`Base views layout test with resources(view='${view})', resource=${!!resourcesValue}`, async ({ page }) => { + await createScheduler(page, view, resourcesValue); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.toolbar.element.click(); + await scheduler.getAppointment('1 appointment', 0).element.click(); + await scheduler.appointmentTooltip.expectVisible(); + + await testScreenshot(page, `resource(view=${view}-resource=${!!resourcesValue}).png`); + }); + }); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + [undefined, resourceDataSource].forEach((resourcesValue) => { + ['timelineDay', 'timelineWeek', 'timelineMonth', 'timelineWorkWeek'].forEach((view) => { + test(`Timeline views layout test with resources(view='${view})', resource=${!!resourcesValue}`, async ({ page }) => { + await createScheduler(page, view, resourcesValue); + + const scheduler = new Scheduler(page, '#container'); + + /* + * If appointment position is the same in the next view,then mouse doesn't change + * their position and doesn't trigger hover effect. This is the reason for the instability + * of the tests. The following operation ensures that the mouse position is changed. + */ + await scheduler.toolbar.element.click(); + await scheduler.getAppointment('1 appointment', 0).element.click(); + await scheduler.appointmentTooltip.expectVisible(); + + await testScreenshot(page, `resource(view=${view}-resource=${!!resourcesValue}).png`); + }); + }); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + test('Scheduler should have correct height in month view (T927862)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['month'], + currentView: 'month', + height: 800, + }); + + const scheduler = new Scheduler(page, '#container'); + + const getBottom = (element: Element): number => element.getBoundingClientRect().bottom; + + await expect.poll(async () => { + const [dataTableBottom, workspaceBottom] = await Promise.all([ + scheduler.dateTable.evaluate(getBottom), + scheduler.workspaceScrollable.evaluate(getBottom), + ]); + + return dataTableBottom - workspaceBottom; + }).toBe(0); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..35c4707554ca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..35c4707554ca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..d731d093ebca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..cf110883bcfe Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..003a658a3f1c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..6135104188f5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..15644eb9547d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..650cf31345bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..2ad62d784740 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..e8e7dd6d9e3d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..db5cde859a60 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..18eb61ba65de Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..59775997c754 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..53e83f458e3b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..7fc52855a820 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..1a4d253c21cb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png new file mode 100644 index 000000000000..db719940f6e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png new file mode 100644 index 000000000000..663a5000f8c8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/resources/groups/groups.spec.ts b/e2e/playwright/tests/scheduler/common/layout/resources/groups/groups.spec.ts new file mode 100644 index 000000000000..0032016e4db8 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/resources/groups/groups.spec.ts @@ -0,0 +1,56 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import { createDataSetForScreenShotTests, resourceDataSource } from '../../utils'; + +const createScheduler = async ( + page: Page, + view: string, + groupOrientation: string, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: createDataSetForScreenShotTests(), + currentDate: new Date(2020, 6, 15), + startDayHour: 0, + endDayHour: 4, + views: [{ + type: view, + name: view, + groupOrientation, + }], + currentView: view, + crossScrollingEnabled: true, + resources: resourceDataSource, + groups: ['priorityId'], + height: 700, + }); +}; + +test.describe('Scheduler: Groups layout', () => { + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + ['vertical', 'horizontal'].forEach((groupOrientation) => { + ['agenda', 'day', 'week', 'workWeek', 'month'].forEach((view) => { + test(`Base views layout test with groups(view='${view}', groupOrientation=${groupOrientation})`, async ({ page }) => { + await createScheduler(page, view, groupOrientation); + + await testScreenshot(page, `groups(view=${view}-orientation=${groupOrientation}).png`); + }); + }); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + ['vertical', 'horizontal'].forEach((groupOrientation) => { + ['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth'].forEach((view) => { + test(`Timeline views layout test with groups(view='${view}', groupOrientation=${groupOrientation})`, async ({ page }) => { + await createScheduler(page, view, groupOrientation); + + await testScreenshot(page, `groups(view=${view}-orientation=${groupOrientation}).png`); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplate.spec.ts b/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplate.spec.ts new file mode 100644 index 000000000000..9a174847e9d4 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplate.spec.ts @@ -0,0 +1,64 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Templates:appointmentTemplate', () => { + ['day', 'workWeek', 'month', 'timelineDay', 'timelineWorkWeek', 'agenda'].forEach((currentView) => { + test(`appointmentTemplate layout should be rendered right in '${currentView}'`, async ({ page }) => { + await createWidget(page, 'dxScheduler', (view: string) => ({ + dataSource: [{ + startDate: new Date(2017, 4, 21, 0, 30), + endDate: new Date(2017, 4, 21, 2, 30), + }, { + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 2, 30), + }, { + startDate: new Date(2017, 4, 23, 0, 30), + endDate: new Date(2017, 4, 23, 2, 30), + }, { + startDate: new Date(2017, 4, 24, 0, 30), + endDate: new Date(2017, 4, 24, 2, 30), + }, { + startDate: new Date(2017, 4, 25, 0, 30), + endDate: new Date(2017, 4, 25, 2, 30), + }, { + startDate: new Date(2017, 4, 26, 0, 30), + endDate: new Date(2017, 4, 26, 2, 30), + }, { + startDate: new Date(2017, 4, 27, 0, 30), + endDate: new Date(2017, 4, 27, 2, 30), + }], + views: [view], + currentView: view, + currentDate: new Date(2017, 4, 25), + appointmentTemplate: (appointment) => { + const result = $('
'); + + const startDateBox = ($('
') as any).dxDateBox({ + type: 'datetime', + value: appointment.appointmentData.startDate, + }); + + const endDateBox = ($('
') as any).dxDateBox({ + type: 'datetime', + value: appointment.appointmentData.endDate, + }); + + result.append(startDateBox, endDateBox); + + return result; + }, + height: 600, + }), '#container', { arg: currentView }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + `appointment-template-currentView=${currentView}.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.spec.ts b/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.spec.ts new file mode 100644 index 000000000000..d0d21f43ff9f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.spec.ts @@ -0,0 +1,273 @@ +import type { + Appointment, + Orientation, + ScrollMode, + ViewType, +} from 'devextreme/ui/scheduler'; +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; + +import { generateOptionMatrix } from '../../../../../helpers/generateOptionMatrix'; +import { scrollToDate } from '../../../helpers/utils'; + +const getResourceCount = ( + viewType: ViewType, + scrollMode: ScrollMode, + groupOrientation: Orientation, +): number => { + if ( + (viewType === 'workWeek' + || viewType === 'timelineWorkWeek' + || viewType === 'week' + || viewType === 'timelineWeek') + && (scrollMode === 'standard' && groupOrientation === 'horizontal') + ) { + return 2; + } + + if (scrollMode === 'standard') { + return 10; + } + + return 30; +}; + +const getGroupAppointmentDates = (viewType: ViewType): Date[] => { + const isWorkWeek = viewType === 'workWeek' || viewType === 'timelineWorkWeek'; + + if (isWorkWeek || viewType === 'week' || viewType === 'timelineWeek') { + const [ + dayCount, + startDate, + ] = isWorkWeek + ? [5, new Date(2024, 0, 1, 8)] + : [7, new Date(2023, 11, 31, 8)]; + + return Array.from( + { length: 12 * dayCount }, + (_, index) => { + const result = new Date(startDate); + result.setDate(result.getDate() + Math.floor(index / 12)); + result.setHours(result.getHours() + (index % 12)); + return result; + }, + ); + } + + if (viewType === 'month' || viewType === 'timelineMonth') { + return Array.from( + { length: 31 }, + (_, index) => { + const result = new Date(2024, 0, 1, 8); + result.setDate(result.getDate() + index); + return result; + }, + ); + } + + const startDate = viewType === 'agenda' + ? new Date(2024, 0, 1, 8) + : new Date(2024, 0, 2, 8); + + return Array.from( + { length: 12 }, + (_, index) => { + const result = new Date(startDate); + result.setHours(result.getHours() + index); + return result; + }, + ); +}; + +const viewTypes: ViewType[] = [ + 'agenda', + 'day', + 'week', + 'workWeek', + 'month', + 'timelineDay', + 'timelineWeek', + 'timelineWorkWeek', + 'timelineMonth', +]; + +const groupOrientations: Orientation[] = ['horizontal', 'vertical']; +const scrollModes: ScrollMode[] = ['standard', 'virtual']; +const rtlEnabledOptions: boolean[] = [false, true]; + +const testOptions = generateOptionMatrix({ + viewType: viewTypes, + groupOrientation: groupOrientations, + scrollMode: scrollModes, + rtlEnabled: rtlEnabledOptions, +}, [ + // Not supported + { + viewType: 'agenda', + scrollMode: 'virtual', + }, + // Not supported + { + viewType: 'agenda', + groupOrientation: 'horizontal', + }, + { + viewType: 'day', + groupOrientation: 'vertical', + scrollMode: 'standard', + }, + { + viewType: 'week', + groupOrientation: 'vertical', + scrollMode: 'standard', + }, + { + viewType: 'workWeek', + groupOrientation: 'vertical', + scrollMode: 'standard', + }, + { + viewType: 'day', + groupOrientation: 'horizontal', + rtlEnabled: true, + }, + { + viewType: 'week', + groupOrientation: 'horizontal', + rtlEnabled: true, + }, + { + viewType: 'workWeek', + groupOrientation: 'horizontal', + rtlEnabled: true, + }, + { + viewType: 'month', + groupOrientation: 'horizontal', + rtlEnabled: true, + }, + { + viewType: 'timelineDay', + groupOrientation: 'vertical', + rtlEnabled: true, + }, + { + viewType: 'timelineWeek', + groupOrientation: 'vertical', + rtlEnabled: true, + }, + { + viewType: 'timelineWorkWeek', + groupOrientation: 'vertical', + rtlEnabled: true, + }, + { + viewType: 'timelineMonth', + groupOrientation: 'vertical', + rtlEnabled: true, + }, +]); + +test.describe('Layout:Templates:appointmentTemplate:targetedData', () => { + // NOTE: no assertions are present, checking but not throwing an error in a template function + testOptions.forEach(({ + viewType, + groupOrientation, + scrollMode, + rtlEnabled, + }) => { + test(`targetedAppointmentData should be correct with groups (viewType="${viewType}", groupOrientation="${groupOrientation}", scrollMode="${scrollMode}", rtlEnabled="${rtlEnabled}") (T1205120)`, async ({ page }) => { + const currentDate = new Date(2024, 0, 2); + const HOUR = 1000 * 60 * 60; + const resourceCount = getResourceCount(viewType, scrollMode, groupOrientation); + const appointmentDates = getGroupAppointmentDates(viewType); + + const datesToCheck = [ + appointmentDates[0], + appointmentDates[Math.floor(appointmentDates.length / 3)], + appointmentDates[appointmentDates.length - 1], + ]; + + const groupsToCheck = [ + { groupId: 0 }, + { groupId: Math.floor(resourceCount / 3) }, + { groupId: resourceCount - 1 }, + ]; + + const resourceDataSource = Array.from({ length: resourceCount }, (_, index) => ({ + id: index, + text: `Resource ${index}`, + })); + + const appointments = resourceDataSource.reduce((acc, resource) => acc.concat( + appointmentDates + .map((date) => ({ + text: resource.text, + startDate: date, + endDate: new Date(date.getTime() + HOUR / 2), + groupId: resource.id, + })), + ), []); + + await createWidget(page, 'dxScheduler', (options: Record) => ({ + ...options, + appointmentTemplate(model, _, element) { + const { groupId: targetedId } = model.targetedAppointmentData; + const { groupId } = model.appointmentData; + + if (groupId !== targetedId[0]) { + throw new Error('Group ID and targeted ID are mismatched'); + } + + element.append(`tid[${targetedId}] gid[${groupId}]`); + return element; + }, + }), '#container', { + arg: { + rtlEnabled, + height: 600, + width: 800, + currentDate, + startDayHour: 8, + endDayHour: 20, + scrolling: { + mode: scrollMode, + }, + groups: ['groupId'], + views: [ + { + type: viewType, + groupOrientation, + }, + ], + currentView: viewType, + dataSource: appointments, + resources: [ + { + fieldExpr: 'groupId', + allowMultiple: true, + dataSource: resourceDataSource, + label: 'Employees', + displayExpr: 'id', + }, + ], + }, + }); + + if (scrollMode !== 'virtual') { + return; + } + + const scrollOptions = generateOptionMatrix({ + date: datesToCheck, + group: groupsToCheck, + }); + + for (const { date, group } of scrollOptions) { + await scrollToDate(page, date, group); + // Virtual scrolling renders the new cells asynchronously; nothing marks the end. + await page.waitForTimeout(50); + } + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/cellTemplate.spec.ts b/e2e/playwright/tests/scheduler/common/layout/templates/cellTemplate.spec.ts new file mode 100644 index 000000000000..d3a7589a58f3 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/templates/cellTemplate.spec.ts @@ -0,0 +1,100 @@ +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Layout:Templates:CellTemplate', () => { + ['day', 'workWeek', 'month', 'timelineDay', 'timelineWorkWeek', 'timelineMonth'].forEach((currentView) => { + test(`dataCellTemplate and dateCellTemplate layout should be rendered right in '${currentView}'`, async ({ page }) => { + await createWidget(page, 'dxScheduler', (view: string) => ({ + dataSource: [], + views: [view], + currentView: view, + currentDate: new Date(2017, 4, 25), + showAllDayPanel: false, + dataCellTemplate: (itemData) => ($('
') as any).dxDateBox({ + type: 'time', + value: itemData.startDate, + }), + dateCellTemplate: (itemData) => ($('
') as any).dxTextBox({ + value: new Intl.DateTimeFormat('en-US').format(itemData.date), + }), + height: 600, + }), SCHEDULER_SELECTOR, { arg: currentView }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `data-cell-template-currentView=${currentView}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + + test('[T1251590] Async dateCellTemplate should be rendered only once', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + dataSource: [ + { + startDate: '2024-01-01T01:00:00', + endDate: '2024-01-01T02:00:00', + allDay: true, + }, + ], + dateCellTemplate: (_, __, itemElement) => { + setTimeout(() => { + itemElement.append('TEST'); + }, 0); + }, + currentDate: '2024-01-01', + currentView: 'week', + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const firstTableCell = scheduler.headerPanel.headerCells.nth(0); + + await expect(firstTableCell).toHaveText('TEST'); + }); + + test('[T1251590] Async dateCellTemplate should be rendered only once if has reference props (grouping)', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + dataSource: [ + { + startDate: '2024-01-01T01:00:00', + endDate: '2024-01-01T02:00:00', + allDay: true, + }, + ], + groups: ['groupId'], + resources: [ + { + label: 'group', + fieldExpr: 'groupId', + dataSource: [ + { + text: 'A', + id: 0, + color: '#00af2c', + }, + ], + }, + ], + dateCellTemplate: (_, __, itemElement) => { + setTimeout(() => { + itemElement.append('TEST'); + }, 0); + }, + currentDate: '2024-01-01', + currentView: 'week', + })); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const firstTableCell = scheduler.headerPanel.headerCells.nth(0); + + await expect(firstTableCell).toHaveText('TEST'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png new file mode 100644 index 000000000000..f963715728a0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png new file mode 100644 index 000000000000..9212888f2c16 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png new file mode 100644 index 000000000000..b12e4166be7f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png new file mode 100644 index 000000000000..5d72e93a7f43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png new file mode 100644 index 000000000000..82c490230a22 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png new file mode 100644 index 000000000000..f5297de9cb20 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png new file mode 100644 index 000000000000..256701ff68da Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png new file mode 100644 index 000000000000..c3d8d971d8ed Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png new file mode 100644 index 000000000000..505628682326 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png new file mode 100644 index 000000000000..36917ee4fa16 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..8aa4bacfadec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png new file mode 100644 index 000000000000..1a9ac6507365 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png new file mode 100644 index 000000000000..731abc6ee359 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/templates/tooltipTemplate.spec.ts b/e2e/playwright/tests/scheduler/common/layout/templates/tooltipTemplate.spec.ts new file mode 100644 index 000000000000..2f416dbe0d6c --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/templates/tooltipTemplate.spec.ts @@ -0,0 +1,46 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Layout:Templates:appointmentTooltipTemplate', () => { + test('appointmentTooltipTemplate layout should be rendered right', async ({ page }) => { + await createWidget(page, 'dxScheduler', () => ({ + dataSource: [{ + startDate: new Date(2017, 4, 25, 0, 30), + endDate: new Date(2017, 4, 25, 2, 30), + }], + views: ['workWeek'], + currentView: 'workWeek', + currentDate: new Date(2017, 4, 25), + appointmentTooltipTemplate: (appointment) => { + const result = $('
'); + + const startDateBox = ($('
') as any).dxDateBox({ + type: 'datetime', + value: appointment.appointmentData.startDate, + }); + + const endDateBox = ($('
') as any).dxDateBox({ + type: 'datetime', + value: appointment.appointmentData.endDate, + }); + + result.append(startDateBox, endDateBox); + + return result; + }, + height: 600, + })); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.getAppointmentByIndex().element.click(); + + await testScreenshot( + page, + 'appointment-tooltip-template.png', + { element: scheduler.element }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.spec.ts b/e2e/playwright/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.spec.ts new file mode 100644 index 000000000000..89f170c25381 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.spec.ts @@ -0,0 +1,138 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const TIMELINE_VIEWS = ['timelineDay', 'timelineWeek', 'timelineMonth']; + +test.describe('Scheduler: Current Time Indication', () => { + test('Current time indicator should be placed correctly when there are many groups and orientation is horizontal', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentDate: new Date(2021, 7, 1), + height: 400, + width: 700, + startDayHour: 5, + indicatorTime: new Date(2021, 7, 1, 6), + currentView: 'day', + views: ['day', 'week'], + groups: ['groupId'], + resources: [{ + fieldExpr: 'groupId', + label: 'group', + dataSource: [ + { text: 'Group 1', id: 1 }, + { text: 'Group 2', id: 2 }, + { text: 'Group 3', id: 3 }, + { text: 'Group 4', id: 4 }, + { text: 'Group 5', id: 5 }, + { text: 'Group 6', id: 6 }, + ], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of ['day', 'week']) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `current-time-indicator-in-${view}-with-many-groups.png`, + { element: scheduler.workSpace }, + ); + } + }); + + [ + 'none', + 'vertical', + 'horizontal', + ].forEach((grouping) => { + [ + { view: 'day', cellDuration: 240 }, + { view: 'week', cellDuration: 240 }, + { view: 'timelineDay', cellDuration: 360 }, + { view: 'timelineWeek', cellDuration: 360 }, + // NOTE: cellDuration doesn't affect the timelineMonth view. + { view: 'timelineMonth', cellDuration: 60 }, + ].forEach(({ view, cellDuration }) => { + [ + [0, 24], + [6, 18], + ].forEach(([startDayHour, endDayHour]) => { + [ + '2023-12-03T00:00:00', + '2023-12-03T06:30:00', + '2023-12-03T12:00:00', + '2023-12-03T17:30:00', + '2023-12-03T23:59:59', + ].forEach((indicatorTime) => { + // NOTE: Due the technical reasons we cannot test these cases by testcafe here. + if (grouping === 'horizontal' && TIMELINE_VIEWS.includes(view)) { + return; + } + + // NOTE: The indicatorTime options works incorrectly + // in the 'timelineMonth' view with startDayHour/endDayHour. + if (view === 'timelineMonth' && startDayHour !== 0 && endDayHour !== 24) { + return; + } + + test(` +Current time indicator should be rendered correctly ( +view: ${view}, +now: ${indicatorTime}, +grouping: ${grouping}, +startDayHour: ${startDayHour}, +endDayHour: ${endDayHour} +)`, async ({ page }) => { + const additionalOptions = grouping === 'none' + ? { + views: [{ + type: view, + name: 'TEST_VIEW', + }], + } + : { + views: [{ + type: view, + name: 'TEST_VIEW', + groupOrientation: grouping, + }], + groups: ['any'], + resources: [{ + fieldExpr: 'any', + dataSource: [ + { text: 'Group_0', id: 0 }, + { text: 'Group_1', id: 1 }, + ], + }], + }; + + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: 'TEST_VIEW', + shadeUntilCurrentTime: true, + currentDate: indicatorTime, + startDayHour, + endDayHour, + indicatorTime, + cellDuration, + ...additionalOptions, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `current-time-indicator_${view}_${indicatorTime.replace(/:/g, '-')}_g-${grouping}_${startDayHour}_${endDayHour}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png new file mode 100644 index 000000000000..9a936a66c7ee Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png new file mode 100644 index 000000000000..457687208e4c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..34bace6a4bad Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..ed572abb3482 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..77bc4f3c721b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..2fee6b4f5016 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..152f7e46e3dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..2353fdf09381 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..00eeb9b570b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..ddb136bbdc07 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..dc20dc90e0b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..5c5b6282c4d4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..74f9ca3079c3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..38cf3ebb2f08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..9b55934c7db0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..1b8f4d927947 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..3f8b3981353f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..ecd1ee1ea3e5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..84b2a8aaccb1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..21dc2abdd6f0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..17150b0185a3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..d087c9bef02a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..07399f739fb4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..faf089fef72c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..ef212bb30353 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..ca5b67821330 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..f1ec56291747 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..9213cc64c276 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..820e1dbf36b3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..a03d3e42cee2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..210578d3cabc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..5b8ea27ac0e5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..1a0e7e220b7a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..270c61dacc96 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..801a388cef8c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..26cb8cd62efd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..70e36206c2bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..5d4b7198b5f6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..b956437ed0a0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b205aacc89d2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..b775938ea54f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..d156f9a7eaad Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..40d7106c7a1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..977be5c36af7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..bb8d5ebdb4b7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..34b545562caa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..de7cc29ea45a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..d2985f5cf6a8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..fe540005e6dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..58d7087c742e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..d55189ec5c11 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..941c562bc7b6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..30b0c6d2a505 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..16530a78d564 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..f06cf41528f7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..29d31caf8240 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..ca7c12773c09 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..e1ae8026e18f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..2eba8c869aa2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..9dc6eee1a3d8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..75494feb5927 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..fdc16278fc9d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b29ef65fe297 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..152a037f1462 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..cb34868b5fdf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..67d7a1d27eeb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..dc56b2237142 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..4590515ec859 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b919cbaba4c0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..f47f07bdede6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..647b147ab6fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..10c7f15c271d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..4e92a6e01451 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..56192b99eada Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..52e4cb33390f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..ca38f75264e9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..f5efc7853936 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..b4f2fbaaa4fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..f1175a2ad239 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..24ca74afa1a9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..0502ef26e83f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..dcb237ff31b0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..08596bacb69f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..a34a3e61aef9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..c3d224b3f7f8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..40b03e6d9518 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b6b6684366ad Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..c597def31348 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b929d5e09874 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..fcbbbba8d9b7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..2e67caebf0f1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..c456d071ccf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..939f5d71ebb7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..18ccb0df2548 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..5d5285273692 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..dd3b8ee0b780 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..4fcc9fd38f9c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..a1d5f0fa767f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..248fe1a545d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..83b9eb3f0a91 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..b1b9d608203f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..07d4923bdfc6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..5d817b7a31c9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..230b80b9ce3c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..7fe80a25f017 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..617fb95cdad2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..9cbcfebbedda Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..519b5a161d35 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..e9acba694ed4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png new file mode 100644 index 000000000000..d76b3991db35 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png new file mode 100644 index 000000000000..0ab83aa34a77 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..0104d654a8a2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..8711360526ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..74101ff2ec09 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..0104d654a8a2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..8711360526ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..54e8dab0b8e1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..aaebd820c26d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d2c9cb2fec61 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d2c9cb2fec61 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..aaebd820c26d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d2c9cb2fec61 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d2c9cb2fec61 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..6775067da57d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..4dd662637103 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..27a144675c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..6775067da57d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..4dd662637103 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..27a144675c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..8c950d5eab0f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d624582e33e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..68fe0da978d4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..8c950d5eab0f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..d624582e33e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..68fe0da978d4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png new file mode 100644 index 000000000000..4d4f3ae569fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..50733e0ecdfd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..578df8c19fc5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png new file mode 100644 index 000000000000..4d4f3ae569fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..07a71628ccc1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..7f05d0630584 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png new file mode 100644 index 000000000000..6089b6a73b0a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png new file mode 100644 index 000000000000..9357b1333621 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png new file mode 100644 index 000000000000..dfee3eff2564 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png new file mode 100644 index 000000000000..7f9f8f494ac6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/shader.spec.ts b/e2e/playwright/tests/scheduler/common/layout/timeIndication/shader.spec.ts new file mode 100644 index 000000000000..78114043af46 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/timeIndication/shader.spec.ts @@ -0,0 +1,146 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const views = ['day', 'week', 'timelineDay', 'timelineWeek', 'timelineMonth']; +const style = ` +.dx-scheduler-date-time-shader-top::before, +.dx-scheduler-date-time-shader-bottom::before, +.dx-scheduler-timeline .dx-scheduler-date-time-shader::before, +.dx-scheduler-date-time-shader-all-day { + background-color: red !important; +}`; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentDate: new Date(2021, 7, 1), + height: 400, + width: 700, + startDayHour: 5, + indicatorTime: new Date(2021, 7, 1, 6), + currentView: 'day', + resources: [{ + fieldExpr: 'priorityId', + dataSource: [ + { + text: 'Low Priority', + id: 0, + color: '#24ff50', + }, { + text: 'High Priority', + id: 1, + color: '#ff9747', + }, + ], + label: 'Priority', + }], + shadeUntilCurrentTime: true, + ...additionalProps, + }); +}; + +test.describe('Scheduler: Current Time Indication: Shader', () => { + [false, true].forEach((crossScrollingEnabled) => { + test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled}`, async ({ page }) => { + await insertStylesheetRulesToPage(page, style); + + await createScheduler(page, { + views, + crossScrollingEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `shader-in-${view}-crossScrolling=${crossScrollingEnabled}.png`, + { element: scheduler.workSpace }, + ); + } + }); + + test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled} and horizontal grouping is used`, async ({ page }) => { + await insertStylesheetRulesToPage(page, style); + + await createScheduler(page, { + views: [{ + type: 'day', + groupOrientation: 'horizontal', + }, { + type: 'week', + groupOrientation: 'horizontal', + }, { + type: 'tiemlineDay', + groupOrientation: 'horizontal', + }, { + type: 'timelineWeek', + groupOrientation: 'horizontal', + }, { + type: 'timelineMonth', + groupOrientation: 'horizontal', + }], + crossScrollingEnabled, + groups: ['priorityId'], + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `shader-in-${view}-crossScrolling=${crossScrollingEnabled}-horizontal-grouping.png`, + { element: scheduler.workSpace }, + ); + } + }); + + test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled} and vertical grouping is used`, async ({ page }) => { + await insertStylesheetRulesToPage(page, style); + + await createScheduler(page, { + views: [{ + type: 'day', + groupOrientation: 'vertical', + }, { + type: 'week', + groupOrientation: 'vertical', + }, { + type: 'tiemlineDay', + groupOrientation: 'vertical', + }, { + type: 'timelineWeek', + groupOrientation: 'vertical', + }, { + type: 'timelineMonth', + groupOrientation: 'vertical', + }], + crossScrollingEnabled, + groups: ['priorityId'], + }); + + const scheduler = new Scheduler(page, '#container'); + + for (const view of views) { + await scheduler.option('currentView', view); + + await testScreenshot( + page, + `shader-in-${view}-crossScrolling=${crossScrollingEnabled}-vertical-grouping.png`, + { element: scheduler.workSpace }, + ); + } + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.spec.ts b/e2e/playwright/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.spec.ts new file mode 100644 index 000000000000..e02c3e1191fa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.spec.ts @@ -0,0 +1,89 @@ +import { test } from '../../../../../fixtures'; +import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +const style = ` +.dx-scheduler-date-time-shader-top::before, +.dx-scheduler-date-time-shader-bottom::before, +.dx-scheduler-timeline .dx-scheduler-date-time-shader::before, +.dx-scheduler-date-time-shader-all-day { + background-color: red !important; +}`; + +const resources = [ + { text: 'Room 1', id: 1, color: '#cb6bb2' }, + { text: 'Room 2', id: 2, color: '#56ca85' }, + { text: 'Room 3', id: 3, color: '#1e90ff' }, + { text: 'Room 4', id: 4, color: '#ff9747' }, + { text: 'Room 5', id: 5, color: '#ff6a00' }, + { text: 'Room 6', id: 6, color: '#ffc0cb' }, +]; + +test.describe('Scheduler: Current Time Indication: Shader with Virtual Scrolling', () => { + test('Should render shader correct with virtual scrolling without current time indicator', async ({ page }) => { + await insertStylesheetRulesToPage(page, style); + + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: 'week', + views: ['week'], + groups: ['roomId'], + resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], + startDayHour: 8, + endDayHour: 18, + currentDate: new Date(2025, 9, 15), + height: 400, + shadeUntilCurrentTime: true, + scrolling: { mode: 'virtual' }, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + 'shader-virtual-scrolling-week-start.png', + ); + + await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); + + await testScreenshot( + page, + 'shader-virtual-scrolling-week-end.png', + ); + }); + + test('Should render shader correctly with virtual scrolling and current time indicator', async ({ page }) => { + await insertStylesheetRulesToPage(page, style); + + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: 'week', + views: ['week'], + groups: ['roomId'], + resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], + startDayHour: 8, + endDayHour: 18, + currentDate: new Date(2025, 9, 15), + indicatorTime: new Date(2025, 9, 15, 17, 30), + height: 400, + shadeUntilCurrentTime: true, + scrolling: { mode: 'virtual' }, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot( + page, + 'shader-virtual-scrolling-week-start-with-current-time-indicator.png', + ); + + await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); + + await testScreenshot( + page, + 'shader-virtual-scrolling-week-end-with-current-time-indicator.png', + ); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/utils.ts b/e2e/playwright/tests/scheduler/common/layout/utils.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/layout/utils.ts rename to e2e/playwright/tests/scheduler/common/layout/utils.ts diff --git a/e2e/playwright/tests/scheduler/common/layout/views/crossScrolling.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/crossScrolling.spec.ts new file mode 100644 index 000000000000..d81addba5402 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/crossScrolling.spec.ts @@ -0,0 +1,72 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: View with cross-scrolling', () => { + test('Scrollable synchronization should work after changing current date (T1027231)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: 'week', + name: 'Horizontal Grouping', + groupOrientation: 'horizontal', + cellDuration: 30, + intervalCount: 2, + }], + currentView: 'Horizontal Grouping', + crossScrollingEnabled: true, + currentDate: new Date(2021, 3, 21), + groups: ['priorityId'], + resources: [{ + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, + ], + label: 'Priority', + }], + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.option('currentDate', new Date(2021, 4, 5)); + await scheduler.scrollTo(new Date(2021, 4, 15), { priorityId: 2 }); + + await testScreenshot(page, 'cross-scrolling-sync.png', { + element: scheduler.workSpace, + }); + }); + + test('Scrollable should be prepared correctly after change visibility (T1032171)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + views: ['timelineMonth'], + currentView: 'timelineMonth', + currentDate: new Date(2021, 1, 2), + firstDayOfWeek: 0, + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + visible: false, + height: 400, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.option('visible', true); + await scheduler.scrollTo(new Date(2021, 1, 12)); + + await testScreenshot(page, 'cross-scrolling-sync-visibility.png', { + element: scheduler.workSpace, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/allDay.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/day/allDay.spec.ts new file mode 100644 index 000000000000..f93e17c693a2 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/day/allDay.spec.ts @@ -0,0 +1,56 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +const enableNativeScroll = (page: Page): Promise => page.evaluate(() => { + ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().option('useNative', true); +}); + +test.describe('Layout:Views:Day:AllDay', () => { + [1, 2].forEach((intervalCount) => { + ['horizontal', 'vertical'].forEach((groupOrientation) => { + [true, false].forEach((showAllDayPanel) => { + const testName = `Day view with interval and crossScrollingEnabled(groupOrientation='${groupOrientation}', showAllDayPanel='${showAllDayPanel}', intervalCount='${intervalCount}') + layout test`; + + test(testName, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + resources: [{ + fieldExpr: 'roomId', + dataSource: [{ + text: 'Room 1', + id: 1, + }, { + text: 'Room 2', + id: 2, + }], + label: 'Room', + }], + dataSource: [], + views: [{ + name: 'dayView', + type: 'day', + intervalCount, + groupOrientation, + }], + currentView: 'dayView', + currentDate: new Date(2021, 2, 25), + height: 600, + groups: ['roomId'], + showAllDayPanel, + crossScrollingEnabled: true, + }); + + const scheduler = new Scheduler(page, '#container'); + await enableNativeScroll(page); + + const pngName = `day-orientation=${groupOrientation}-allDay=${showAllDayPanel}-interval=${intervalCount}.png`; + + await testScreenshot(page, pngName, { element: scheduler.element }); + }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png new file mode 100644 index 000000000000..485b5d31c652 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png new file mode 100644 index 000000000000..d1edbbe5cbfb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png new file mode 100644 index 000000000000..8cffbbeb95f5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png new file mode 100644 index 000000000000..a53946dd662d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png new file mode 100644 index 000000000000..ac72647246c8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png new file mode 100644 index 000000000000..342987aa531e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png new file mode 100644 index 000000000000..7bdcc8df88d5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png new file mode 100644 index 000000000000..27e1c1a8e4ae Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png new file mode 100644 index 000000000000..fde41fd2b136 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png new file mode 100644 index 000000000000..bad7ac01c182 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png new file mode 100644 index 000000000000..886dca47f716 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/firstDayOfWeek.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/firstDayOfWeek.spec.ts new file mode 100644 index 000000000000..bfa2a1181174 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/firstDayOfWeek.spec.ts @@ -0,0 +1,22 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; + +test.describe('Scheduler: View with first day of week', () => { + test('WorkWeek should generate correct start view date', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['workWeek'], + currentView: 'workWeek', + firstDayOfWeek: 1, + currentDate: new Date(2021, 11, 12), + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'work-week-first-day-of-week.png', { + element: scheduler.element, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png new file mode 100644 index 000000000000..c8fbaa4fdd90 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png new file mode 100644 index 000000000000..9e99ede044cf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..72477caf5540 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png new file mode 100644 index 000000000000..392b2d7d9f0e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png new file mode 100644 index 000000000000..1f98d623f433 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..78c889e8c3c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png new file mode 100644 index 000000000000..ee40f0e82563 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..7a09659abf6d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png new file mode 100644 index 000000000000..b282948e565d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..b58a38ef85e9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png new file mode 100644 index 000000000000..cd6f0fcb004d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..3b488ea8aeb5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png new file mode 100644 index 000000000000..fb52861aeed8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..1c4b4961ce07 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png new file mode 100644 index 000000000000..7dad864db9f3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..ec44511ff799 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png new file mode 100644 index 000000000000..311dbd8de961 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png new file mode 100644 index 000000000000..4cb7a40269d1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.spec.ts new file mode 100644 index 000000000000..b9a0c92672ee --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.spec.ts @@ -0,0 +1,107 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Layout: Views: IntervalCount with StartDate', () => { + [{ + view: 'timelineDay', + currentDate: new Date(2021, 4, 11), + startDate: new Date(2021, 4, 8), + intervalCount: 6, + }, { + view: 'week', + currentDate: new Date(2021, 4, 11), + startDate: new Date(2021, 3, 12), + intervalCount: 8, + }, { + view: 'timelineWeek', + currentDate: new Date(2021, 4, 11), + startDate: new Date(2021, 3, 12), + intervalCount: 8, + }, { + view: 'workWeek', + currentDate: new Date(2021, 4, 11), + startDate: new Date(2021, 3, 12), + intervalCount: 8, + }, { + view: 'timelineWorkWeek', + currentDate: new Date(2021, 4, 11), + startDate: new Date(2021, 3, 12), + intervalCount: 8, + }, { + view: 'month', + currentDate: new Date(2020, 5, 11), + startDate: new Date(2020, 3, 8), + intervalCount: 6, + }, { + view: 'timelineMonth', + currentDate: new Date(2020, 5, 11), + startDate: new Date(2020, 3, 8), + intervalCount: 6, + }].forEach(({ + view, currentDate, startDate, intervalCount, + }) => { + test(`startDate should work in ${view} view`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: view, + intervalCount, + startDate, + }], + currentView: view, + currentDate, + dataSource: [], + crossScrollingEnabled: true, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, `start-date-in-${view}.png`); + + await scheduler.getDateTableCell(0, 0).dblclick(); + + await testScreenshot(page, `start-date-in-${view}-with-form.png`); + }); + }); + + [{ + view: 'week', + currentDate: new Date(2020, 9, 6), + startDate: new Date(2020, 8, 16), + intervalCount: 3, + }, { + view: 'timelineWeek', + currentDate: new Date(2020, 9, 6), + startDate: new Date(2020, 8, 16), + intervalCount: 3, + }, { + view: 'workWeek', + currentDate: new Date(2020, 9, 6), + startDate: new Date(2020, 8, 16), + intervalCount: 3, + }, { + view: 'timelineWorkWeek', + currentDate: new Date(2020, 9, 6), + startDate: new Date(2020, 8, 16), + intervalCount: 3, + }].forEach(({ + view, currentDate, startDate, intervalCount, + }) => { + test(`startDate should work in ${view} view when it indicates the same week as the start as currentDate`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: view, + intervalCount, + startDate, + }], + currentView: view, + currentDate, + dataSource: [], + crossScrollingEnabled: true, + }); + + await testScreenshot(page, `complex-start-date-in-${view}.png`); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png new file mode 100644 index 000000000000..7e3434a4c4b7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/material/withoutAllDay.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/material/withoutAllDay.spec.ts new file mode 100644 index 000000000000..72990bb76c10 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/material/withoutAllDay.spec.ts @@ -0,0 +1,23 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Scheduler: Material theme without all-day panel', () => { + // visual: material.blue.light + test('Week view without all-day panel should be rendered correctly', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentDate: new Date(2020, 6, 15), + views: ['week'], + currentView: 'week', + height: 500, + }); + + const scheduler = new Scheduler(page, '#container'); + + await testScreenshot(page, 'week-without-all-day-panel.png', { + element: scheduler.workSpace, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/timeline/crossScrolling.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/timeline/crossScrolling.spec.ts new file mode 100644 index 000000000000..098e2c1e8274 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/timeline/crossScrolling.spec.ts @@ -0,0 +1,67 @@ +import { expect, test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { classMatcher } from '../../../../../../models/internal/classMatcher'; +import Scheduler, { CLASS } from '../../../../../../models/scheduler'; + +test.describe('Scheduler Timeline: Cross-Scrolling', () => { + test('Timeline should have Cross-Scrolling enabled', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + height: 400, + width: 800, + currentDate: new Date(2021, 1, 2), + dataSource: [], + views: ['timelineDay'], + currentView: 'timelineDay', + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + showAllDayPanel: false, + groups: ['humanId'], + resources: [{ + fieldExpr: 'humanId', + dataSource: [{ + id: 0, + text: 'David Carter', + color: '#74d57b', + }, { + id: 1, + text: 'Emma Lewis', + color: '#1db2f5', + }, { + id: 2, + text: 'Noah Hill', + color: '#f5564a', + }, { + id: 3, + text: 'William Bell', + color: '#97c95c', + }, { + id: 4, + text: 'Jane Jones', + color: '#ffc720', + }, { + id: 5, + text: 'Violet Young', + color: '#eb3573', + }, { + id: 6, + text: 'Samuel Perry', + color: '#a63db8', + }, { + id: 7, + text: 'Luther Murphy', + color: '#ffaa66', + }, { + id: 8, + text: 'Craig Morris', + color: '#2dcdc4', + }], + label: 'Employee', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.workSpace).toHaveClass(classMatcher(CLASS.workspaceBothScrollbar)); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png new file mode 100644 index 000000000000..50053a6ad4f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/layout/views/timeline/grouping.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/timeline/grouping.spec.ts new file mode 100644 index 000000000000..38952dc73af6 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/timeline/grouping.spec.ts @@ -0,0 +1,34 @@ +import { expect, test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Scheduler Timeline: Grouping', () => { + [ + 'timelineDay', + 'timelineWeek', + 'timelineWorkWeek', + ].forEach((view) => { + test(`${view} view - header panel should contain group rows if horizontal grouping`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + groupOrientation: 'horizontal', + views: [{ + type: 'timelineDay', + groupOrientation: 'horizontal', + }], + currentView: 'timelineDay', + groups: ['one'], + resources: [{ + fieldExpr: 'one', + dataSource: [ + { id: 1, text: 'a' }, + { id: 2, text: 'b' }, + ], + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.headerPanel.groupCells).toHaveCount(2); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/layout/views/timeline/month.spec.ts b/e2e/playwright/tests/scheduler/common/layout/views/timeline/month.spec.ts new file mode 100644 index 000000000000..f666168c694e --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/layout/views/timeline/month.spec.ts @@ -0,0 +1,22 @@ +import { test } from '../../../../../../fixtures'; +import { createWidget } from '../../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../../helpers/screenshots'; +import Scheduler from '../../../../../../models/scheduler'; + +test.describe('Scheduler: Layout Views: Timeline Month', () => { + test('Header cells should be aligned with date-table cells in timeline-month when current date changes', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2020, 10, 1), + currentView: 'timelineMonth', + height: 600, + views: ['timelineMonth'], + crossScrollingEnabled: true, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.option('currentDate', new Date(2020, 11, 1)); + + await testScreenshot(page, 'timeline-month-change-current-date.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/loadingPanel.spec.ts b/e2e/playwright/tests/scheduler/common/loadingPanel.spec.ts new file mode 100644 index 000000000000..33e845a94d88 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/loadingPanel.spec.ts @@ -0,0 +1,41 @@ +import { test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { testScreenshot } from '../../../helpers/screenshots'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const INITIAL_APPOINTMENT_TITLE = 'appointment'; +const ADDITIONAL_TITLE_TEXT = '-updated'; + +test.describe('Scheduler loading panel', () => { + test('Save appointment loading panel screenshot', async ({ page }) => { + await createWidget(page, 'dxScheduler', (title: string) => ({ + dataSource: [{ + id: 1, + text: title, + startDate: new Date(2021, 2, 29, 9, 30), + endDate: new Date(2021, 2, 29, 11, 30), + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 29), + startDayHour: 9, + endDayHour: 14, + height: 600, + onAppointmentUpdating: (e) => { + e.cancel = new Promise(() => {}); + }, + }), SCHEDULER_SELECTOR, { arg: INITIAL_APPOINTMENT_TITLE }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); + const { appointmentPopup } = scheduler; + + await appointment.element.dblclick(); + await appointmentPopup.textEditor.element.click(); + await appointmentPopup.textEditor.input.pressSequentially(ADDITIONAL_TITLE_TEXT); + await appointmentPopup.saveButton.element.click(); + + await testScreenshot(page, 'save-appointment-loading-panel-screenshot.png', { element: scheduler.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/month/diferrentInvtervalCounts.spec.ts b/e2e/playwright/tests/scheduler/common/month/diferrentInvtervalCounts.spec.ts new file mode 100644 index 000000000000..2c6c1328b641 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/month/diferrentInvtervalCounts.spec.ts @@ -0,0 +1,41 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Scheduler: different intervalCount option\'s values', () => { + test('Interval count: 1, February of 2021', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: 'month', + intervalCount: 1, + }], + currentView: 'month', + firstDayOfWeek: 1, + currentDate: new Date(2021, 1, 1), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, 'month-february-2021.png', { element: scheduler.workSpace }); + }); + + test('Interval count: 12', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: 'month', + intervalCount: 12, + }], + height: 600, + currentView: 'month', + currentDate: new Date(2023, 6, 1), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + await scheduler.scrollTo(new Date(2024, 6, 1)); // scroll to last row + + await testScreenshot(page, 'month-interval-count-12.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png new file mode 100644 index 000000000000..d0d521ae0c1c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png new file mode 100644 index 000000000000..af2748b2b17b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png new file mode 100644 index 000000000000..e36652b8895a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png new file mode 100644 index 000000000000..46d12a2bf289 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png new file mode 100644 index 000000000000..83abf0444f56 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png new file mode 100644 index 000000000000..d3e6a04f9018 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png new file mode 100644 index 000000000000..f53b145c8936 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png new file mode 100644 index 000000000000..52f7d2f9fbff Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png new file mode 100644 index 000000000000..a116a91c8238 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png new file mode 100644 index 000000000000..6c5d3f7056bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png new file mode 100644 index 000000000000..8d5aef58ba17 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png new file mode 100644 index 000000000000..15474c86fb0f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png new file mode 100644 index 000000000000..bcf7d3ce1337 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png new file mode 100644 index 000000000000..40fb91975ab7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png new file mode 100644 index 000000000000..277815bb94e7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png new file mode 100644 index 000000000000..a2432ccfc4bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/month/longAppointments.spec.ts b/e2e/playwright/tests/scheduler/common/month/longAppointments.spec.ts new file mode 100644 index 000000000000..cd4a27f4f9b1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/month/longAppointments.spec.ts @@ -0,0 +1,114 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Scheduler: long appointments in month view', () => { + [false, true].forEach((rtlEnabled) => { + [ + { + text: 'Appointment spans 3 rows', + startDate: new Date(2020, 0, 6), + endDate: new Date(2020, 0, 24), + }, { + text: 'Appointment spans all rows', + startDate: new Date(2019, 11, 29), + endDate: new Date(2020, 1, 8, 15), + }, { + text: 'Appointment spans 2 rows', + startDate: new Date(2020, 0, 17), + endDate: new Date(2020, 0, 20), + }, + ].forEach((appointment) => { + test(`Long appointment should display valid on month view(rtl='${rtlEnabled}', text='${appointment.text}')`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [appointment], + views: ['month'], + currentView: 'month', + rtlEnabled, + currentDate: new Date(2020, 0, 1), + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `month-long-appointment(rtl=${rtlEnabled}, text=${appointment.text}).png`, + { element: scheduler.workSpace }, + ); + }); + }); + }); + + [false, true].forEach((rtlEnabled) => { + test(`Long appointment(several months) should display valid on month view(rtl='${rtlEnabled})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Text', + startDate: new Date(2020, 0, 6), + endDate: new Date(2020, 2, 10), + }], + views: ['month'], + currentView: 'month', + rtlEnabled, + currentDate: new Date(2020, 0, 1), + }); + + const { toolbar, workSpace } = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + `month-long-appointment-several-months-january(rtl=${rtlEnabled}).png`, + { element: workSpace }, + ); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot( + page, + `month-long-appointment-several-months-february(rtl=${rtlEnabled}).png`, + { element: workSpace }, + ); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot( + page, + `month-long-appointment-several-months-march(rtl=${rtlEnabled}).png`, + { element: workSpace }, + ); + }); + }); + + test('Long recurrence appointment should display valid on month view', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Text', + startDate: new Date(2020, 0, 6), + endDate: new Date(2020, 0, 10), + recurrenceRule: 'FREQ=DAILY;INTERVAL=5', + }], + views: ['month'], + currentView: 'month', + currentDate: new Date(2020, 0, 1), + }); + + const { toolbar, workSpace } = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + 'month-long-recurrence-appointment-several-months-january.png', + { element: workSpace }, + ); + + await toolbar.navigator.nextButton.click(); + + await testScreenshot( + page, + 'month-long-recurrence-appointment-several-months-february.png', + { element: workSpace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/month/outOfDayHours.spec.ts b/e2e/playwright/tests/scheduler/common/month/outOfDayHours.spec.ts new file mode 100644 index 000000000000..6359236515f1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/month/outOfDayHours.spec.ts @@ -0,0 +1,53 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Scheduler: take into account start and end day hour', () => { + test('Should show appointment in month view', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2024-01-01T11:00:00', + endDate: '2024-01-01T12:00:00', + text: 'test', + }, + ], + startDayHour: 11, + endDayHour: 22, + currentDate: '2024-01-01', + views: [ + 'month', + 'timelineMonth', + ], + currentView: 'month', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + await expect(scheduler.getAppointment('test').element).toBeAttached(); + }); + + test('Shouldn\'t show appointment in month view', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2024-01-01T11:00:00', + endDate: '2024-01-01T12:00:00', + text: 'test', + }, + ], + startDayHour: 13, + endDayHour: 22, + currentDate: '2024-01-01', + views: [ + 'month', + 'timelineMonth', + ], + currentView: 'month', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + await expect(scheduler.getAppointment('test').element).toHaveCount(0); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/navigator.spec.ts b/e2e/playwright/tests/scheduler/common/navigator.spec.ts new file mode 100644 index 000000000000..fc768ed7d327 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/navigator.spec.ts @@ -0,0 +1,93 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { classMatcher } from '../../../models/internal/classMatcher'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const DISABLED_CLASS = 'dx-state-disabled'; + +const createScheduler = async (page: Page, options = {}): Promise => { + await createWidget(page, 'dxScheduler', { + ...options, + dataSource: [], + currentDate: new Date(2017, 4, 18), + firstDayOfWeek: 1, + height: 600, + views: ['week', 'month'], + }); +}; + +test.describe('Scheduler: Navigator', () => { + test('Navigator can change week when current date interval is more than diff between current date and `max` (T830754)', async ({ page }) => { + await createScheduler(page, { + max: new Date(2017, 4, 24), + currentView: 'week', + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + // Navigation `next` must be enabled at default + + await expect(toolbar.navigator.nextButton).not.toHaveClass(classMatcher(DISABLED_CLASS)); + + // Navigation `next` must be disabled after change 1 week earlier + + await toolbar.navigator.nextButton.click(); + await expect(toolbar.navigator.nextButton).toHaveClass(classMatcher(DISABLED_CLASS)); + }); + + test('Navigator can change week when current date interval is more than diff between current date and `min` (T830754)', async ({ page }) => { + await createScheduler(page, { + min: new Date(2017, 4, 13), + currentView: 'week', + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + // Navigation `prev` must be enabled at default + + await expect(toolbar.navigator.prevButton).not.toHaveClass(classMatcher(DISABLED_CLASS)); + + // Navigation `prev` must be disabled after change 1 week later + + await toolbar.navigator.prevButton.click(); + await expect(toolbar.navigator.prevButton).toHaveClass(classMatcher(DISABLED_CLASS)); + }); + + test('Navigator can change month when current date interval is more than diff between current date and `max` (T830754)', async ({ page }) => { + await createScheduler(page, { + max: new Date(2017, 5, 15), + currentView: 'month', + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + // Navigation `next` must be enabled at default + + await expect(toolbar.navigator.nextButton).not.toHaveClass(classMatcher(DISABLED_CLASS)); + + // Navigation `next` must be disabled after change 1 week earlier + + await toolbar.navigator.nextButton.click(); + await expect(toolbar.navigator.nextButton).toHaveClass(classMatcher(DISABLED_CLASS)); + }); + + test('Navigator can change month when current date interval is more than diff between current date and `min` (T830754)', async ({ page }) => { + await createScheduler(page, { + min: new Date(2017, 3, 28), + currentView: 'month', + }); + + const { toolbar } = new Scheduler(page, SCHEDULER_SELECTOR); + + // Navigation `prev` must be enabled at default + + await expect(toolbar.navigator.prevButton).not.toHaveClass(classMatcher(DISABLED_CLASS)); + + // Navigation `prev` must be disabled after change 1 week later + + await toolbar.navigator.prevButton.click(); + await expect(toolbar.navigator.prevButton).toHaveClass(classMatcher(DISABLED_CLASS)); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.spec.ts b/e2e/playwright/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.spec.ts new file mode 100644 index 000000000000..8c2788002acd --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.spec.ts @@ -0,0 +1,62 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Appointment tooltip with recurrence appointment and custom time zone', () => { + test('Time in appointment tooltip should has valid value in case with recurrence appointment and custom time zone(T848058)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Stand-up meeting', + startDate: '2017-05-22T15:30:00.000Z', + endDate: '2017-05-22T15:45:00.000Z', + recurrenceRule: 'FREQ=DAILY', + startDateTimeZone: 'America/Los_Angeles', + endDateTimeZone: 'America/Los_Angeles', + }], + views: ['week'], + currentView: 'week', + currentDate: new Date(2017, 4, 25), + startDayHour: 8, + timeZone: 'America/Los_Angeles', + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointmentCount = await scheduler.appointments.count(); + + for (let i = 0; i < appointmentCount; i += 1) { + await scheduler.getAppointment('Stand-up meeting', i).element.click(); + await expect(scheduler.appointmentTooltip.getListItem('Stand-up meeting').date) + .toHaveText('8:30 AM - 8:45 AM'); + } + }); + + test('The only one displayed part of recurrence appointment ' + + 'must have correct offset after DST(T1034216)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'Europe/Moscow', + startDateTimeZoneExpr: 'TimeZone', + endDateTimeZoneExpr: 'TimeZone', + views: ['month', 'week'], + currentView: 'month', + currentDate: '2021-12-01', + dataSource: [ + { + text: 'apt', + startDate: '2021-09-01T01:00:00-07:00', + endDate: '2021-09-01T02:00:00-07:00', + recurrenceException: '', + recurrenceRule: 'FREQ=MONTHLY;BYDAY=WE,FR;BYSETPOS=1;UNTIL=20211231T235959Z', + TimeZone: 'America/Los_Angeles', + }, + ], + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.getAppointment('apt').element.click(); + await expect(scheduler.appointmentTooltip.getListItem('apt').date) + .toHaveText('December 2 12:00 PM - 1:00 PM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/recurrences/basic.spec.ts b/e2e/playwright/tests/scheduler/common/recurrences/basic.spec.ts new file mode 100644 index 000000000000..651eac764ed4 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/recurrences/basic.spec.ts @@ -0,0 +1,118 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +// the drop cell is resolved 10px below the top edge of the dragged appointment, +// a grab at the vertical center leaves that point above the all-day panel +const DRAG_OFFSET_Y = 15; + +test.describe('Rendering of the recurrence appointments in Scheduler ', () => { + test('Drag-n-drop recurrence appointment between dateTable and allDay panel', async ({ page }) => { + await createScheduler(page, { + dataSource, + startDayHour: 1, + recurrenceEditMode: 'series', + }); + + const scheduler = new Scheduler(page, '#container'); + const draggableAppointment = scheduler.getAppointment('Simple recurrence appointment'); + + await testScreenshot(page, 'basic-recurrence-appointment-init.png'); + + await dragToElement( + page, + draggableAppointment.element, + scheduler.getAllDayTableCell(0), + { offsetY: DRAG_OFFSET_Y }, + ); + + await expect(scheduler.appointments).toHaveCount(7); + + await testScreenshot(page, 'basic-recurrence-appointment-after-drag.png'); + }); + + test('Appointments in DST should not have offset when ' + + 'recurring appointment timezoine not equal to scheduler timezone', async ({ page }) => { + await createScheduler(page, { + timeZone: 'America/New_York', + dataSource: [ + { + text: 'Recurrence', + startDate: new Date('2021-03-13T19:00:00.000Z'), + endDate: new Date('2021-03-13T19:30:00.000Z'), + recurrenceRule: 'FREQ=DAILY;COUNT=1000', + startDateTimeZone: 'America/New_York', + endDateTimeZone: 'America/New_York', + }, + ], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 13), + firstDayOfWeek: 1, + }); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.getAppointmentByIndex(0).date) + .toHaveText('2:00 PM - 2:30 PM'); + await expect(scheduler.getAppointmentByIndex(1).date) + .toHaveText('2:00 PM - 2:30 PM'); + + await scheduler.option('currentDate', new Date(2021, 10, 1)); + + await expect(scheduler.getAppointmentByIndex(0).date) + .toHaveText('2:00 PM - 2:30 PM'); + await expect(scheduler.getAppointmentByIndex(1).date) + .toHaveText('2:00 PM - 2:30 PM'); + }); + + test('Appointments in end of DST should have correct offset', async ({ page }) => { + await createScheduler(page, { + timeZone: 'America/Phoenix', + dataSource: [ + { + text: 'Recurrence', + startDate: new Date('2021-03-13T19:00:00.000Z'), + endDate: new Date('2021-03-13T19:30:00.000Z'), + recurrenceRule: 'FREQ=DAILY;COUNT=1000', + startDateTimeZone: 'America/New_York', + endDateTimeZone: 'America/New_York', + }, + ], + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 10, 1), + firstDayOfWeek: 1, + }); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.getAppointmentByIndex(5).date) + .toHaveText('11:00 AM - 11:30 AM'); + await expect(scheduler.getAppointmentByIndex(6).date) + .toHaveText('12:00 PM - 12:30 PM'); + }); + + test('Appointment displayed without errors if it was only one DST in year(T1037853)', async ({ page }) => { + await createScheduler(page, { + timeZone: 'America/Los_Angeles', + dataSource: [{ + text: 'Recurrence', + startDate: new Date(1942, 3, 29, 0), + endDate: new Date(1942, 3, 29, 1), + recurrenceRule: 'FREQ=DAILY;COUNT=2', + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(1942, 3, 29), + height: 600, + }); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.getAppointmentByIndex(0).element).toBeAttached(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/recurrences/dialog.spec.ts b/e2e/playwright/tests/scheduler/common/recurrences/dialog.spec.ts new file mode 100644 index 000000000000..7e1627bbb4c3 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/recurrences/dialog.spec.ts @@ -0,0 +1,55 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const INITIAL_APPOINTMENT_TITLE = 'appointment'; + +test.describe('Recurrence dialog', () => { + test.beforeEach(async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + id: 1, + text: INITIAL_APPOINTMENT_TITLE, + startDate: new Date(2021, 2, 29, 9, 30), + endDate: new Date(2021, 2, 29, 11, 30), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + }], + views: ['day'], + currentView: 'day', + currentDate: new Date(2021, 2, 29), + startDayHour: 9, + endDayHour: 14, + height: 600, + }); + }); + + test('Recurrence edit dialog screenshot', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); + + await appointment.element.dblclick(); + + await expect(scheduler.getEditRecurrenceDialog().element).toBeAttached(); + + await testScreenshot(page, 'recurrence-edit-dialog-screenshot.png', { element: scheduler.element }); + }); + + test('Recurrence delete dialog screenshot', async ({ page }) => { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); + + // act + await appointment.element.click(); + // assert + await expect(scheduler.appointmentTooltip.element).toBeAttached(); + // act + await scheduler.appointmentTooltip.deleteButton.click(); + + // assert + await expect(scheduler.getDeleteRecurrenceDialog().element).toBeAttached(); + + await testScreenshot(page, 'recurrence-delete-dialog-screenshot.png', { element: scheduler.element }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png new file mode 100644 index 000000000000..f575ac9fed77 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png new file mode 100644 index 000000000000..2f966711daab Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png new file mode 100644 index 000000000000..337185f2604e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png new file mode 100644 index 000000000000..b6f5a42826ac Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/recurrences/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/recurrences/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/recurrences/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/recurrences/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/recurrences/init/widget.setup.ts new file mode 100644 index 000000000000..7ff2eb0c4406 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/recurrences/init/widget.setup.ts @@ -0,0 +1,12 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +export default async (page: Page, options = {}): Promise => createWidget(page, 'dxScheduler', { + currentDate: new Date(2020, 1, 9), + views: ['week'], + currentView: 'week', + groupByDate: true, + dataSource: [], + width: 900, + ...options, +}); diff --git a/e2e/playwright/tests/scheduler/common/rerenderOnResize.spec.ts b/e2e/playwright/tests/scheduler/common/rerenderOnResize.spec.ts new file mode 100644 index 000000000000..2affc1726204 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/rerenderOnResize.spec.ts @@ -0,0 +1,100 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { getThemeName } from '../../../helpers/themeUtils'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const setStyleAttribute = async (element: Locator, styleValue: string): Promise => { + await element.evaluate((node, value) => { + const styles = node.getAttribute('style') ?? ''; + + node.setAttribute('style', `${styles} ${value}`); + }, styleValue); +}; + +const createScheduler = async (page: Page, container: string, options?): Promise => createWidget(page, 'dxScheduler', { + currentDate: new Date(2020, 8, 7), + startDayHour: 8, + endDayHour: 20, + cellDuration: 60, + scrolling: { + mode: 'virtual', + }, + currentView: 'Timeline', + views: [{ + type: 'timelineWorkWeek', + name: 'Timeline', + groupOrientation: 'vertical', + }], + dataSource: [{ + startDate: new Date(2020, 8, 7, 8), + endDate: new Date(2020, 8, 7, 9), + text: 'test', + }], + ...options, +}, container); + +test.describe('Re-render on resize', () => { + test.describe('800x400', () => { + test.use({ browserSize: [800, 400] }); + + test('Appointment should re-rendered on window resize-up (T1139566)', async ({ page }) => { + await createScheduler(page, '#container', { currentView: 'workWeek' }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { element } = scheduler.getAppointment('test'); + + await setStyleAttribute(element, 'background-color: red;'); + await expect(element).toHaveAttribute('style', /transform: translate\(0px, 0px\); width: \d+\.\d+px; height: \d+px; background-color: red;/); + }); + }); + + test.describe('300x300', () => { + test.use({ browserSize: [300, 300] }); + + test('Appointment should not re-rendered on window resize when width and height not set (T1139566)', async ({ page }) => { + await createScheduler(page, '#container'); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { element } = scheduler.getAppointment('test'); + + await setStyleAttribute(element, 'background-color: red;'); + + await expect(element).toHaveAttribute('style', 'transform: translate(0px, 30px); width: 200px; height: 70px; background-color: red;'); + }); + }); + + test.describe('300x400', () => { + test.use({ browserSize: [300, 400] }); + + test('Appointment should not re-rendered on window resize when width and height have percent value (T1139566)', async ({ page }) => { + await createScheduler(page, '#container', { width: '100%', height: '100%' }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { element } = scheduler.getAppointment('test'); + + await setStyleAttribute(element, 'background-color: red;'); + + await expect(element).toHaveAttribute('style', 'transform: translate(0px, 30px); width: 200px; height: 70px; background-color: red;'); + }); + }); + + test.describe('300x300', () => { + test.use({ browserSize: [300, 300] }); + + test('Appointment should not re-rendered on window resize when width and height have static value (T1139566)', async ({ page, theme }) => { + await createScheduler(page, '#container', { width: 600, height: 400 }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { element } = scheduler.getAppointment('test'); + + await setStyleAttribute(element, 'background-color: red;'); + + const height = getThemeName(theme) === 'fluent-next' ? '61.2539px' : '61.7539px'; + + await expect(element).toHaveAttribute('style', `transform: translate(0px, 30px); width: 200px; height: ${height}; background-color: red;`); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/T1294528.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/T1294528.spec.ts new file mode 100644 index 000000000000..ebf1366bb58e --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/T1294528.spec.ts @@ -0,0 +1,42 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize all day panel appointments', () => { + [true, false].forEach((rtlEnabled) => { + test(`Resize all day appointment rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2015, 1, 9), + currentView: 'week', + firstDayOfWeek: 0, + rtlEnabled, + height: 400, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 9, 10), + allDay: true, + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + const text = 'Appointment: February 9, 2015, All day'; + const startDateExtendedText = 'Appointment: February 8, 2015 - February 9, 2015, All day'; + const endDateExtendedText = 'Appointment: February 9, 2015 - February 10, 2015, All day'; + + await dragToOffset(page, right, 100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', rtlEnabled ? startDateExtendedText : endDateExtendedText); + await dragToOffset(page, right, -100, 0); + await expect(appointment.element).toHaveAttribute('aria-label', text); + await dragToOffset(page, left, -100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', rtlEnabled ? endDateExtendedText : startDateExtendedText); + await dragToOffset(page, left, 100, 0); + await expect(appointment.element).toHaveAttribute('aria-label', text); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/allDay.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/allDay.spec.ts new file mode 100644 index 000000000000..b80c41cd5e42 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/allDay.spec.ts @@ -0,0 +1,59 @@ +import { test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize appointments in All Day Panel', () => { + test('Resize in the workWeek view between weeks', async ({ page }) => { + await createScheduler(page, { + width: 800, + height: 600, + views: [{ + type: 'workWeek', + intervalCount: 2, + startDate: new Date(2021, 5, 29), + }], + currentDate: new Date(2021, 5, 29), + currentView: 'workWeek', + maxAppointmentsPerCell: 'unlimited', + startDayHour: 9, + endDayHour: 13, + dataSource: [ + { + text: '1st', + startDate: new Date(2021, 5, 29), + allDay: true, + }, + { + text: '2nd', + startDate: new Date(2021, 6, 7), + allDay: true, + }, + { + text: '3rd', + startDate: new Date(2021, 6, 1), + endDate: new Date(2021, 6, 5), + allDay: true, + }, + ], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment1 = scheduler.getAppointment('1st'); + const appointment2 = scheduler.getAppointment('2nd'); + const appointment3 = scheduler.getAppointment('3rd'); + + await dragToOffset(page, appointment1.resizableHandle.right, 400, 0); + await dragToOffset(page, appointment2.resizableHandle.left, -400, 0); + await dragToOffset(page, appointment3.resizableHandle.right, -140, 0); + + await testScreenshot(page, 'resize-all-day-workweek-weekend-0.png'); + + await dragToOffset(page, appointment1.resizableHandle.right, -400, 0); + await dragToOffset(page, appointment2.resizableHandle.left, 400, 0); + await dragToOffset(page, appointment3.resizableHandle.right, 140, 0); + + await testScreenshot(page, 'resize-all-day-workweek-weekend-1.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/basic.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/basic.spec.ts new file mode 100644 index 000000000000..f94d2f2cef82 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/basic.spec.ts @@ -0,0 +1,84 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize appointments in the Scheduler basic views', () => { + ['day', 'week', 'workWeek'].forEach((view) => test(`Resize in the "${view}" view`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.bottom, 0, 100); + await expect(resizableAppointment.element).toHaveCSS('height', '190px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:30 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.top, 0, 100); + await expect(resizableAppointment.element).toHaveCSS('height', '76px'); + await expect(resizableAppointment.date).toHaveText('11:30 AM - 12:30 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.top, 0, -100); + await expect(resizableAppointment.element).toHaveCSS('height', '190px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:30 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.bottom, 0, -100); + await expect(resizableAppointment.element).toHaveCSS('height', '76px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + })); + + test('Resize in the "month" view', async ({ page }) => { + await createScheduler(page, { + views: ['month'], + currentView: 'month', + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, 100, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '400px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, 100, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '200px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, -100, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '400px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, -100, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '200px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + }); + + test('Resize should work correctly with startDateExpr (T944693)', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + startDateExpr: 'start', + dataSource: dataSource.map(({ startDate, ...restProps }) => ({ + ...restProps, + start: startDate, + })), + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.bottom, 0, 100); + await expect(resizableAppointment.element).toHaveCSS('height', '190px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:30 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.top, 0, 100); + await expect(resizableAppointment.element).toHaveCSS('height', '76px'); + await expect(resizableAppointment.date).toHaveText('11:30 AM - 12:30 PM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.spec.ts new file mode 100644 index 000000000000..15e79249a533 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.spec.ts @@ -0,0 +1,77 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset, finishDrag, startDragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from '../dragAndDrop/init/widget.setup'; + +const SCHEDULER_OPTIONS = { + timeZone: 'Etc/GMT', + width: 400, + currentDate: '2021-06-01T00:00:00Z', + dataSource: [{ + text: 'Test Resize', + startDate: '2021-06-01T01:00:00Z', + endDate: '2021-06-01T20:00:00Z', + }], + views: [{ + type: 'timelineDay', + intervalCount: 2, + }], + currentView: 'timelineDay', + startDayHour: 0, + cellDuration: 1440, +}; + +test.describe('Cancel appointment Resizing', () => { + test('onAppointmentUpdating - newDate should be correct after cancel appointment resize and cellDuration=24h (T1070565)', async ({ page }) => { + await createScheduler(page, SCHEDULER_OPTIONS, '#container', (options) => ({ + ...options, + onAppointmentUpdating: (e) => { + (window as any).newEndDate = e.newData.endDate; + e.cancel = true; + }, + })); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Test Resize'); + const etalonEndDateIso = '2021-06-03T00:00:00Z'; + const getNewEndDate = (): Promise => page.evaluate(() => (window as any).newEndDate); + + // 1st iteration + await dragToOffset(page, resizableAppointment.resizableHandle.right, 200, 0); + await expect(resizableAppointment.date).toHaveText('1:00 AM - 8:00 PM'); + await expect.poll(getNewEndDate).toBe(etalonEndDateIso); + + // 2nd iteration + await dragToOffset(page, resizableAppointment.resizableHandle.right, 200, 0); + await expect(resizableAppointment.date).toHaveText('1:00 AM - 8:00 PM'); + await expect.poll(getNewEndDate).toBe(etalonEndDateIso); + }); + + test('on escape - date should not changed when it\'s pressed after resize (T1125615)', async ({ page }) => { + await createScheduler(page, SCHEDULER_OPTIONS); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Test Resize'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, 50, 0); + await expect(resizableAppointment.date).toHaveText('1:00 AM - 12:00 AM'); + await resizableAppointment.element.click(); + await page.keyboard.press('Escape'); + await dragToOffset(page, resizableAppointment.resizableHandle.right, 150, 0); + await expect(resizableAppointment.date).toHaveText('1:00 AM - 12:00 AM'); + }); + + test('on escape - date should not changed when it\'s pressed during resize (T1125615)', async ({ page }) => { + await createScheduler(page, SCHEDULER_OPTIONS); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Test Resize'); + + await startDragToOffset(page, resizableAppointment.resizableHandle.right, 150, 0); + await page.keyboard.press('Escape'); + + await finishDrag(page); + + await expect(resizableAppointment.date).toHaveText('1:00 AM - 8:00 PM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ff7970bff446 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png new file mode 100644 index 000000000000..459bffef828a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/resizeAppointments/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/init/widget.setup.ts new file mode 100644 index 000000000000..e059686ad1d1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/init/widget.setup.ts @@ -0,0 +1,31 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +const resources = [ + { id: 0, color: '#e01e38' }, + { id: 1, color: '#f98322' }, + { id: 2, color: '#1e65e8' }, +]; + +export default async ( + page: Page, + options: Record = {}, +): Promise => createWidget(page, 'dxScheduler', { + views: ['day'], + dataSource: [], + resources: [ + { + fieldExpr: 'resourceId', + dataSource: resources, + label: 'Color', + }, + ], + width: 1402, + height: 833, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'day', + currentDate: new Date(2019, 3, 1), + ...options, +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/timeline.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/timeline.spec.ts new file mode 100644 index 000000000000..0473aabcf9c1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/timeline.spec.ts @@ -0,0 +1,201 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize appointments in the Scheduler basic views', () => { + ['timelineDay', 'timelineWeek', 'timelineWorkWeek'].forEach((view) => test(`Resize in the "${view}" view`, async ({ page }) => { + await createScheduler(page, { + views: [view], + currentView: view, + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, 400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '800px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:00 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, 400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '400px'); + await expect(resizableAppointment.date).toHaveText('11:00 AM - 12:00 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, -400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '800px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:00 PM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, -400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '400px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + })); + + test('Resize in the "timelineMonth" view', async ({ page }) => { + await createScheduler(page, { + views: ['timelineMonth'], + currentView: 'timelineMonth', + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, 400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '600px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, 400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '200px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.left, -400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '600px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, -400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '200px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 11:00 AM'); + }); + + test.describe('browser size 1400x800', () => { + test.use({ browserSize: [1400, 800] }); + + test('Resize appointment on timelineWeek view with custom startDayHour & endDayHour (T804779)', async ({ page }) => { + await createScheduler(page, { + views: [{ + type: 'timelineWeek', startDayHour: 10, endDayHour: 16, cellDuration: 60, + }], + currentView: 'timelineWeek', + currentDate: new Date(2019, 8, 1), + firstDayOfWeek: 0, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2019, 8, 1, 14), + endDate: new Date(2019, 8, 2, 11), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + + await dragToOffset(page, appointment.resizableHandle.right, -400, 0); + await expect(appointment.element).toHaveCSS('width', '200px'); + await expect(appointment.date).toHaveText('2:00 PM - 3:00 PM'); + }); + }); + + // T948164 + test('Resize should work correctly when cell\'s width is not an integer', async ({ page }) => { + await createScheduler(page, { + views: [{ + type: 'timelineDay', + cellDuration: 120, + }], + currentView: 'timelineDay', + currentDate: new Date(2020, 10, 13), + dataSource: [{ + text: 'Appointment', + startDate: new Date(2020, 10, 13, 0, 0), + endDate: new Date(2020, 10, 13, 2, 0), + }], + width: 2999, // Cell's width in this case will not be an integer + startDayHour: 0, + endDayHour: 24, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + + await dragToOffset(page, appointment.resizableHandle.right, 100, 0); + await expect(appointment.date).toHaveText('12:00 AM - 4:00 AM'); + }); + + test('Resize in the "timelineDay" view with start and end day hour (T1134583)', async ({ page }) => { + await createScheduler(page, { + dataSource: [{ + text: 'Appointment', + startDate: new Date(2024, 0, 3, 9, 30), + endDate: new Date(2024, 0, 3, 12, 30), + }], + views: [{ + type: 'timelineDay', + intervalCount: 3, + }], + currentView: 'timelineDay', + currentDate: new Date(2024, 0, 2), + cellDuration: 60, + startDayHour: 10, + endDayHour: 12, + width: 1200, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + + await dragToOffset(page, appointment.resizableHandle.right, 200, 0); + await expect(appointment.element).toHaveCSS('width', '600px'); + await expect(appointment.date).toHaveText('9:30 AM - 11:00 AM'); + + await dragToOffset(page, appointment.resizableHandle.left, -200, 0); + await expect(appointment.element).toHaveCSS('width', '800px'); + await expect(appointment.date).toHaveText('11:00 AM - 11:00 AM'); + }); + + ['timelineWeek', 'timelineWorkWeek'].forEach((view) => { + test(`Resize in the "${view}" view with start and end day hour (T1134583)`, async ({ page }) => { + await createScheduler(page, { + dataSource: [{ + text: 'Appointment', + startDate: new Date(2024, 0, 3, 9, 30), + endDate: new Date(2024, 0, 3, 12, 30), + }], + views: [view], + currentView: view, + currentDate: new Date(2024, 0, 2), + cellDuration: 60, + startDayHour: 10, + endDayHour: 12, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + + await dragToOffset(page, appointment.resizableHandle.right, 200, 0); + await expect(appointment.element).toHaveCSS('width', '600px'); + await expect(appointment.date).toHaveText('9:30 AM - 11:00 AM'); + + await dragToOffset(page, appointment.resizableHandle.left, -200, 0); + await expect(appointment.element).toHaveCSS('width', '800px'); + await expect(appointment.date).toHaveText('11:00 AM - 11:00 AM'); + }); + }); + + test('Resize in the "timelineMonth" view with start and end day hour (T1134583)', async ({ page }) => { + await createScheduler(page, { + dataSource: [{ + text: 'Appointment', + startDate: new Date(2024, 0, 3, 9, 30), + endDate: new Date(2024, 0, 3, 12, 30), + }], + views: ['timelineMonth'], + currentView: 'timelineMonth', + currentDate: new Date(2024, 0, 2), + cellDuration: 60, + startDayHour: 10, + endDayHour: 12, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + + await dragToOffset(page, appointment.resizableHandle.right, 200, 0); + await expect(appointment.element).toHaveCSS('width', '400px'); + await expect(appointment.date).toHaveText('9:30 AM - 12:30 PM'); + + await dragToOffset(page, appointment.resizableHandle.left, -200, 0); + await expect(appointment.element).toHaveCSS('width', '600px'); + await expect(appointment.date).toHaveText('9:30 AM - 12:30 PM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/verticalGrouping.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/verticalGrouping.spec.ts new file mode 100644 index 000000000000..1e0ee267ed98 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/verticalGrouping.spec.ts @@ -0,0 +1,111 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize appointments in the Scheduler with vertical groupping', () => { + test('Should correctly calculate group resizing area (T1025952)', async ({ page }) => { + await createScheduler(page, { + dataSource: [ + { + text: 'first', + startDate: new Date(2021, 3, 21, 9, 30), + endDate: new Date(2021, 3, 21, 10), + priorityId: 1, + }, + { + text: 'second', + startDate: new Date(2021, 3, 21, 9, 30), + endDate: new Date(2021, 3, 21, 10), + priorityId: 2, + }, + ], + views: [{ + type: 'workWeek', + groupOrientation: 'vertical', + }], + currentView: 'workWeek', + currentDate: new Date(2021, 3, 21), + startDayHour: 9, + endDayHour: 12, + groups: ['priorityId'], + resources: [ + { + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, + ], + }, + ], + }); + + const scheduler = new Scheduler(page, '#container'); + const firstAppointment = scheduler.getAppointment('first'); + const secondAppointment = scheduler.getAppointment('second'); + + await dragToOffset(page, firstAppointment.resizableHandle.bottom, 0, 100); + await expect(firstAppointment.element).toHaveCSS('height', '140.594px'); + await expect(firstAppointment.date).toHaveText('9:30 AM - 11:21 AM'); + + await dragToOffset(page, secondAppointment.resizableHandle.bottom, 0, 100); + await expect(secondAppointment.element).toHaveCSS('height', '165.922px'); + await expect(secondAppointment.date).toHaveText('9:30 AM - 11:41 AM'); + }); + + test('Should correctly calculate group resizing area after scroll (T1041672)', async ({ page }) => { + await createScheduler(page, { + dataSource: [ + { + text: 'app', + startDate: new Date(2021, 3, 21, 9, 30), + endDate: new Date(2021, 3, 21, 10), + priorityId: 2, + }, + ], + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + currentView: 'week', + currentDate: new Date(2021, 3, 21), + height: 400, + groups: ['priorityId'], + resources: [ + { + fieldExpr: 'priorityId', + allowMultiple: false, + dataSource: [ + { + text: 'Low Priority', + id: 1, + color: '#1e90ff', + }, { + text: 'High Priority', + id: 2, + color: '#ff9747', + }, + ], + }, + ], + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.scrollTo(new Date(2021, 3, 21, 9, 30), { priorityId: 2 }); + + const appointment = scheduler.getAppointment('app'); + + await dragToOffset(page, appointment.resizableHandle.bottom, 0, 100); + await expect(appointment.element).toHaveCSS('height', '165.922px'); + await expect(appointment.date).toHaveText('9:30 AM - 11:41 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/virtualScrolling.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/virtualScrolling.spec.ts new file mode 100644 index 000000000000..8205ffeb9af3 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/virtualScrolling.spec.ts @@ -0,0 +1,27 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize appointments with virtual scrolling', () => { + test('T1325041: Appointment resize works with virtual scrolling enabled', async ({ page }) => { + await createScheduler(page, { + views: [{ + type: 'timelineWorkWeek', + groupOrientation: 'vertical', + }], + currentView: 'timelineWorkWeek', + dataSource, + groups: ['resourceId'], + scrolling: { mode: 'virtual' }, + }); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); + + await dragToOffset(page, resizableAppointment.resizableHandle.right, 400, 0); + await expect(resizableAppointment.element).toHaveCSS('width', '800px'); + await expect(resizableAppointment.date).toHaveText('10:00 AM - 12:00 PM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/resizeAppointments/zooming.spec.ts b/e2e/playwright/tests/scheduler/common/resizeAppointments/zooming.spec.ts new file mode 100644 index 000000000000..89cf05f2e123 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/resizeAppointments/zooming.spec.ts @@ -0,0 +1,43 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +const setZoomLevel = (page: Page, zoomLevel: number): Promise => page.evaluate((level) => { + $('body').css('zoom', `${level}%`); +}, zoomLevel); + +test.describe('Resize appointments - Zooming', () => { + test('Vertical resize with zooming', async ({ page }) => { + await setZoomLevel(page, 110); + await insertStylesheetRulesToPage(page, '.dx-scheduler-cell-sizes-vertical { height: 43px;}'); + + await createWidget( + page, + 'dxScheduler', + { + dataSource: [{ + text: 'Appt-01', + startDate: new Date(2021, 2, 28, 0), + endDate: new Date(2021, 2, 28, 0, 30), + }], + views: ['day'], + currentView: 'day', + cellDuration: 15, + currentDate: new Date(2021, 2, 28), + }, + ); + + const scheduler = new Scheduler(page, '#container'); + const resizableAppointment = scheduler.getAppointment('Appt-01'); + + await dragToOffset(page, resizableAppointment.resizableHandle.bottom, 0, 430, { offsetY: 20 }); + + await expect.poll(async () => parseInt( + await resizableAppointment.element.evaluate((element) => getComputedStyle(element).height), + 10, + )).toBe(94); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/scrollTo.spec.ts b/e2e/playwright/tests/scheduler/common/scrollTo.spec.ts new file mode 100644 index 000000000000..ba0c519cd4c6 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/scrollTo.spec.ts @@ -0,0 +1,344 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const createScheduler = async (page: Page, options): Promise => createWidget(page, 'dxScheduler', options); + +const scrollToDate = (page: Page): Promise => page.evaluate(() => { + const instance = ($('#container') as any).dxScheduler('instance'); + const currentDate = instance.option('currentDate'); + const date = new Date(currentDate.getTime()); + date.setHours(date.getHours() + 6, 30, 0, 0); + instance.scrollTo(date); +}); + +const scrollToDateWithGroups = (page: Page): Promise => page.evaluate(() => { + const instance = ($('#container') as any).dxScheduler('instance'); + const currentDate = instance.option('currentDate'); + const date = new Date(currentDate.getTime()); + date.setHours(date.getHours() + 6, 30, 0, 0); + instance.scrollTo(date, { priority: 1 }); +}); + +const scrollToAllDay = (page: Page): Promise => page.evaluate(() => { + const instance = ($('#container') as any).dxScheduler('instance'); + const currentDate = instance.option('currentDate'); + const date = new Date(currentDate.getTime()); + date.setHours(date.getHours() + 6, 30, 0, 0); + instance.scrollTo(date, undefined, true); +}); + +const getWorkSpaceScrollTop = async (scheduler: Scheduler): Promise => ( + await scheduler.getWorkSpaceScroll() +).top; + +// "+ 0" turns the -0 of a simulated scrollable into 0, which "toBe" tells apart and "eql" did not. +const getWSLeft = async (page: Page): Promise => (await page.evaluate( + () => ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().scrollLeft(), +)) + 0; +const getHeaderLeft = async (page: Page): Promise => (await page.evaluate( + () => $('.dx-scheduler-header-scrollable .dx-scrollable-container').scrollLeft() as number, +)) + 0; + +test.describe('Scheduler: ScrollTo', () => { + test('ScrollTo works correctly with week and day views', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['week', 'day'], + currentView: 'week', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const views = [{ name: 'week', initValue: 0 }, { name: 'day', initValue: 0 }]; + + for (const view of views) { + const { name, initValue } = view; + + await scheduler.option('currentView', name); + await scheduler.option('useNative', true); + + await scrollToDate(page); + + await expect + .poll(() => getWorkSpaceScrollTop(scheduler), { message: `Work space is scrolled in ${name} view` }) + .toBeGreaterThan(initValue); + } + }); + + test('ScrollTo works correctly with grouping in week view', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + groups: ['priority'], + resources: [{ + fieldExpr: 'priority', + dataSource: [ + { id: 1, text: 'High Priority' }, + { id: 2, text: 'Low Priority' }, + ], + }], + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentView', 'week'); + await scheduler.option('useNative', true); + + const initialTop = await getWorkSpaceScrollTop(scheduler); + + await scrollToDateWithGroups(page); + + await expect + .poll(() => getWorkSpaceScrollTop(scheduler), { message: 'Work space is scrolled with groups' }) + .toBeGreaterThan(initialTop); + }); + + test('ScrollTo works correctly with all-day panel', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + showAllDayPanel: true, + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentView', 'week'); + await scheduler.option('useNative', true); + + const initValue = 0; + const expectedTopValue = 0; + + await expect + .poll(() => getWorkSpaceScrollTop(scheduler), { message: 'Work space has init scroll position' }) + .toBe(initValue); + + await scrollToAllDay(page); + + await expect + .poll(() => getWorkSpaceScrollTop(scheduler), { message: 'Work space is scrolled to all-day panel' }) + .toBe(expectedTopValue); + }); + + test('ScrollTo works correctly with RTL mode', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['week'], + currentView: 'week', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentView', 'week'); + await scheduler.option('useNative', true); + await scheduler.option('rtlEnabled', true); + + const initialBrowserTop = await getWorkSpaceScrollTop(scheduler); + + await scrollToDate(page); + + await expect + .poll( + () => page.evaluate(() => ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().scrollTop()), + { message: 'Work space is scrolled in RTL' }, + ) + .toBeGreaterThan(initialBrowserTop); + }); + + test('ScrollTo works correctly with timeline views (native, sync header/workspace) (T749957)', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['timelineDay', 'timelineWeek'], + currentView: 'timelineDay', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const views = [{ name: 'timelineDay' }, { name: 'timelineWeek' }]; + + for (const view of views) { + const { name } = view; + + await scheduler.option('currentView', name); + await scheduler.option('useNative', true); + + const initialLeft = await getWSLeft(page); + + await expect + .poll(() => getHeaderLeft(page), { message: `${name}: header/workspace initial sync` }) + .toBe(initialLeft); + + await scrollToDate(page); + + await expect + .poll(() => getWSLeft(page), { message: `${name}: workspace left changed` }) + .not.toBe(initialLeft); + + const left = await getWSLeft(page); + + await expect + .poll(() => getHeaderLeft(page), { message: `${name}: header synchronized with workspace` }) + .toBe(left); + } + }); + + test('ScrollTo works correctly in timeline RTL (native, sync header/workspace)', async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: ['timelineWeek'], + currentView: 'timelineWeek', + currentDate: new Date(2019, 5, 1, 9, 40), + firstDayOfWeek: 0, + startDayHour: 0, + endDayHour: 20, + height: 580, + rtlEnabled: true, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.option('currentView', 'timelineWeek'); + await scheduler.option('useNative', true); + await scheduler.option('rtlEnabled', true); + + const initialLeft = await getWSLeft(page); + + await expect + .poll(() => getHeaderLeft(page), { message: 'timeline RTL: initial sync' }) + .toBe(initialLeft); + + await scrollToDate(page); + + await expect + .poll(() => getWSLeft(page), { message: 'timeline RTL: workspace left changed' }) + .not.toBe(initialLeft); + + const left = await getWSLeft(page); + + await expect + .poll(() => getHeaderLeft(page), { message: 'timeline RTL: header synchronized' }) + .toBe(left); + }); + + [ + // startDayHour: 6:00, endDayHour: 18:00 + { + offset: 0, + targetDate: new Date(2021, 1, 3, 4, 0), + expectedDate: new Date(2021, 1, 3, 6, 0), + }, + { + offset: 0, + targetDate: new Date(2021, 1, 3, 12, 0), + expectedDate: new Date(2021, 1, 3, 12, 0), + }, + { + offset: 0, + targetDate: new Date(2021, 1, 3, 20, 0), + expectedDate: new Date(2021, 1, 3, 18, 0), + }, + + // startDayHour: 18:00, endDayHour: next day 6:00 + { + offset: 720, + targetDate: new Date(2021, 1, 3, 10, 0), + expectedDate: new Date(2021, 1, 3, 6, 0), + }, + { + offset: 720, + targetDate: new Date(2021, 1, 3, 20, 0), + expectedDate: new Date(2021, 1, 3, 20, 0), + }, + { + offset: 720, + targetDate: new Date(2021, 1, 4, 1, 0), + expectedDate: new Date(2021, 1, 4, 1, 0), + }, + { + offset: 720, + targetDate: new Date(2021, 1, 4, 7, 0), + expectedDate: new Date(2021, 1, 4, 6, 0), + }, + + // startDayHour: prev day 18:00, endDayHour: 6:00 + { + offset: -720, + targetDate: new Date(2021, 1, 3, 16, 0), + expectedDate: new Date(2021, 1, 3, 18, 0), + }, + { + offset: -720, + targetDate: new Date(2021, 1, 3, 21, 0), + expectedDate: new Date(2021, 1, 3, 21, 0), + }, + { + offset: -720, + targetDate: new Date(2021, 1, 4, 3, 0), + expectedDate: new Date(2021, 1, 4, 3, 0), + }, + { + offset: -720, + targetDate: new Date(2021, 1, 3, 7, 0), + expectedDate: new Date(2021, 1, 3, 6, 0), + }, + ].forEach(({ offset, targetDate, expectedDate }) => { + test(`scrollTo should scroll to date with offset=${offset}, targetDate=${targetDate.toString()} (T1310544)`, async ({ page }) => { + await createScheduler(page, { + dataSource: [], + views: [{ + type: 'timelineWeek', + offset, + cellDuration: 60, + }], + currentView: 'timelineWeek', + currentDate: new Date(2021, 1, 2), + startDayHour: 6, + endDayHour: 18, + height: 580, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.scrollTo(targetDate); + + const getCellDate = async (name: 'startDate' | 'endDate'): Promise => { + const cellData = await scheduler.getCellDataAtViewportCenter(); + + return (cellData[name] as Date).getTime(); + }; + + await expect.poll(() => getCellDate('startDate')).toBeLessThanOrEqual(expectedDate.getTime()); + await expect.poll(() => getCellDate('endDate')).toBeGreaterThanOrEqual(expectedDate.getTime()); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png new file mode 100644 index 000000000000..84acd4349896 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png new file mode 100644 index 000000000000..1f187e14ae78 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png new file mode 100644 index 000000000000..a587e1b545b9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png new file mode 100644 index 000000000000..20164ed4705e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png new file mode 100644 index 000000000000..df4007e459fc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png new file mode 100644 index 000000000000..620996d09812 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png new file mode 100644 index 000000000000..11e5224be866 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png new file mode 100644 index 000000000000..a03e066b1998 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png new file mode 100644 index 000000000000..1e357f72238d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png new file mode 100644 index 000000000000..ded4a05c3a27 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.spec.ts b/e2e/playwright/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.spec.ts new file mode 100644 index 000000000000..6a5b69190f67 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.spec.ts @@ -0,0 +1,196 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { dragToElement, dragToOffset } from '../../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; +import type Appointment from '../../../../../models/scheduler/appointment'; +import AppointmentDialog from '../../../../../models/scheduler/appointment/dialog'; + +interface ITestResizeOptions { + direction: keyof Appointment['resizableHandle']; + value: number; +} +interface ITestDragNDropOptions { + rowIdx: number; + cellIdx: number; +} + +const SCREENSHOT_BASE_NAME = 'recurrent-appointment-timezone-dst__editing'; +const SCHEDULER_SELECTOR = '#container'; +const TEST_APPOINTMENT_TEXT = 'Watercolor Landscape'; +const APPOINTMENT_DATETIME = { + winter: { + start: new Date('2020-11-01T17:30:00.000Z'), + end: new Date('2020-11-01T19:00:00.000Z'), + }, + summer: { + start: new Date('2020-03-08T16:30:00.000Z'), + end: new Date('2020-03-08T18:00:00.000Z'), + }, +}; + +async function editingPopupTestFunction(page: Page, screenshotName: string): Promise { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const screenshotZone = scheduler.workSpace; + + const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); + await appointmentToEdit.element.dblclick(); + + const appointmentDialog = new AppointmentDialog(page); + await appointmentDialog.series.click(); + + const { appointmentPopup } = scheduler; + await appointmentPopup.saveButton.element.click(); + + await testScreenshot(page, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); +} + +async function dragAndDropTestFunction( + page: Page, + screenshotName: string, + { rowIdx, cellIdx }: ITestDragNDropOptions, +): Promise { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const screenshotZone = scheduler.workSpace; + + const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); + const cellToMoveElement = scheduler.getDateTableCell(rowIdx, cellIdx); + + await dragToElement(page, appointmentToEdit.element, cellToMoveElement); + + const appointmentDialog = new AppointmentDialog(page); + await appointmentDialog.series.click(); + + await testScreenshot(page, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); +} + +async function resizeTestFunction( + page: Page, + screenshotName: string, + resizeOptions: ITestResizeOptions, +): Promise { + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const screenshotZone = scheduler.workSpace; + + const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); + + await dragToOffset( + page, + appointmentToEdit.resizableHandle[resizeOptions.direction], + 0, + resizeOptions.value, + ); + + const appointmentDialog = new AppointmentDialog(page); + await appointmentDialog.series.click(); + + await testScreenshot(page, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); +} + +async function configureScheduler(page: Page, { start, end }: { start: Date; end: Date }) { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + startDate: start, + endDate: end, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO', + text: TEST_APPOINTMENT_TEXT, + }], + timeZone: 'America/Los_Angeles', + currentView: 'week', + currentDate: start, + startDayHour: 9, + cellDuration: 30, + width: 1000, + height: 585, + }); +} + +test.describe('Editing recurrent appointment in DST time', () => { + // === EDITING POPUP === + test('Editing popup: should have correctly been edited from editing popup. DST - winter time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.winter); + + await editingPopupTestFunction(page, 'popup__winter-time'); + }); + + test('Editing popup: should have correctly been edited from editing popup. DST - summer time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.summer); + + await editingPopupTestFunction(page, 'popup__summer-time'); + }); + + // === DRAG_N_DROP === + test('Drag-n-drop up: should have correctly been edited. DST - winter time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.winter); + + await dragAndDropTestFunction(page, 'drag-n-drop-up__winter-time', { + rowIdx: 1, + cellIdx: 1, + }); + }); + + test('Drag-n-drop down: should have correctly been edited. DST - winter time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.winter); + + await dragAndDropTestFunction(page, 'drag-n-drop-down__winter-time', { + rowIdx: 4, + cellIdx: 1, + }); + }); + + test('Drag-n-drop up: should have correctly been edited. DST - summer time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.summer); + + await dragAndDropTestFunction(page, 'drag-n-drop-up__summer-time', { + rowIdx: 1, + cellIdx: 1, + }); + }); + + test('Drag-n-drop down: should have correctly been edited. DST - summer time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.summer); + + await dragAndDropTestFunction(page, 'drag-n-drop-down__summer-time', { + rowIdx: 4, + cellIdx: 1, + }); + }); + + // === RESIZE === + test('Resize top: should have correctly been edited. DST - winter time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.winter); + + await resizeTestFunction(page, 'resize-top__winter-time', { + direction: 'top', + value: 100, + }); + }); + + test('Resize bottom: should have correctly been edited. DST - winter time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.winter); + + await resizeTestFunction(page, 'resize-bottom__winter-time', { + direction: 'bottom', + value: 100, + }); + }); + + test('Resize top: should have correctly been edited. DST - summer time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.summer); + + await resizeTestFunction(page, 'resize-top__summer-time', { + direction: 'top', + value: 100, + }); + }); + + test('Resize bottom: should have correctly been edited. DST - summer time', async ({ page }) => { + await configureScheduler(page, APPOINTMENT_DATETIME.summer); + + await resizeTestFunction(page, 'resize-bottom__summer-time', { + direction: 'bottom', + value: 100, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.spec.ts b/e2e/playwright/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.spec.ts new file mode 100644 index 000000000000..3a3c4ca0bf1f --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.spec.ts @@ -0,0 +1,264 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect, test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../../helpers/screenshots'; +import Scheduler from '../../../../../models/scheduler'; +import { getScreenshotName } from '../timezoneTestingUtils'; + +const SELECT_SELECTOR = '#container'; +const SCHEDULER_SELECTOR = '#otherContainer'; +const SCREENSHOT_BASE_NAME = 'without-timezone-recurrent'; +const TEST_TIMEZONES = ['Etc/GMT-10', 'Etc/GMT+1', 'Etc/GMT+10']; + +const createTimezoneSelect = async ( + page: Page, + selector: string, + items: string[], + schedulerSelector: string, +): Promise => { + await page.evaluate(({ selectBoxSelector, selectBoxItems, targetSchedulerSelector }) => { + ($(selectBoxSelector) as any).dxSelectBox({ + items: selectBoxItems, + width: 240, + value: selectBoxItems[1], + onValueChanged(data) { + const scheduler = ($(targetSchedulerSelector) as any).dxScheduler('instance'); + scheduler.option('timeZone', data.value); + }, + }); + }, { + selectBoxSelector: selector, + selectBoxItems: items, + targetSchedulerSelector: schedulerSelector, + }); +}; + +const getSelectBoxListItem = async ( + page: Page, + selectBox: Locator, + index: number, +): Promise => { + const input = selectBox.locator('.dx-texteditor-input'); + + await expect(input).toHaveAttribute('aria-owns', /.+/); + + const popupId = await input.getAttribute('aria-owns'); + + return page.locator(`#${popupId} .dx-list .dx-list-item`).nth(index); +}; + +const selectTimezoneInUI = async (page: Page, selectBox: Locator, timezoneIdx: number) => { + await selectBox.click(); + const timezoneItem = await getSelectBoxListItem(page, selectBox, timezoneIdx); + + await timezoneItem.click(); +}; + +test.describe('Recurrent appointments without timezone in scheduler with timezone', () => { + test('Should correctly display the recurrent weekly appointment without timezone', async ({ page }) => { + const schedulerTimezone = TEST_TIMEZONES[1]; + + await createTimezoneSelect(page, SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: new Date('2021-04-28T11:00:00.000Z'), + endDate: new Date('2021-04-28T13:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }, SCHEDULER_SELECTOR); + + const selectBox = page.locator(SELECT_SELECTOR); + const schedulerWorkspace = new Scheduler(page, SCHEDULER_SELECTOR).workSpace; + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__same-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 0); + // expected date: 4/28/2021 9:00 PM - 11:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__greater-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 2); + // expected date: 4/28/2021 1:00 AM - 3:00 AM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__lower-timezone'), + { element: schedulerWorkspace }, + ); + }); + + test('Should correctly display the recurrent monthly appointment without timezone', async ({ page }) => { + const schedulerTimezone = TEST_TIMEZONES[1]; + + await createTimezoneSelect(page, SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: new Date('2021-04-28T11:00:00.000Z'), + endDate: new Date('2021-04-28T13:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }, SCHEDULER_SELECTOR); + + const selectBox = page.locator(SELECT_SELECTOR); + const schedulerWorkspace = new Scheduler(page, SCHEDULER_SELECTOR).workSpace; + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__same-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 0); + // expected date: 4/28/2021 9:00 PM - 11:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__greater-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 2); + // expected date: 4/28/2021 1:00 AM - 3:00 AM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__lower-timezone'), + { element: schedulerWorkspace }, + ); + }); + + test('Should correctly display the recurrent yearly appointment without timezone', async ({ page }) => { + const schedulerTimezone = TEST_TIMEZONES[1]; + + await createTimezoneSelect(page, SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: new Date('2021-04-28T11:00:00.000Z'), + endDate: new Date('2021-04-28T13:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }, SCHEDULER_SELECTOR); + + const selectBox = page.locator(SELECT_SELECTOR); + const schedulerWorkspace = new Scheduler(page, SCHEDULER_SELECTOR).workSpace; + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__same-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 0); + // expected date: 4/28/2021 9:00 PM - 11:00 PM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__greater-timezone'), + { element: schedulerWorkspace }, + ); + + await selectTimezoneInUI(page, selectBox, 2); + // expected date: 4/28/2021 1:00 AM - 3:00 AM + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__lower-timezone'), + { element: schedulerWorkspace }, + ); + }); + + test('Should correctly display morning weekly recurrent appointment in a greater timezone.', async ({ page }) => { + const schedulerTimezone = TEST_TIMEZONES[0]; + + await createTimezoneSelect(page, SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test', + startDate: new Date('2021-04-29T15:00:00.000Z'), + endDate: new Date('2021-04-29T17:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=FR', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }, SCHEDULER_SELECTOR); + + const schedulerWorkspace = new Scheduler(page, SCHEDULER_SELECTOR).workSpace; + + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-morning-appointment__greater-timezone'), + { element: schedulerWorkspace }, + ); + }); + + test('Should correctly display \'corner\' weekly recurrent appointments in a greater timezone.', async ({ page }) => { + const schedulerTimezone = TEST_TIMEZONES[0]; + + await createTimezoneSelect(page, SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'test 1', + startDate: new Date('2021-04-24T14:00:00.000Z'), + endDate: new Date('2021-04-24T16:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', + }, { + text: 'test 2', + startDate: new Date('2021-05-01T12:00:00.000Z'), + endDate: new Date('2021-05-01T14:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }, SCHEDULER_SELECTOR); + + const schedulerWorkspace = new Scheduler(page, SCHEDULER_SELECTOR).workSpace; + + await testScreenshot( + page, + getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-corner-appointments__greater-timezone'), + { element: schedulerWorkspace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..1ddc7f3b1a25 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..9409886b350a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..2c9f455f07bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..8c92ed54cd1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..42f7ed4530ff Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..ea5229d4f3c2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..053ea23f4e15 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..f2e7fd96de22 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..8f905e8c45a1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..20cf07e7e2ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0e2204a72ba0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..5a0a6039756a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..fdaf70cd35dc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..ea5229d4f3c2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..131fcdc4da11 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png new file mode 100644 index 000000000000..fb99143a2784 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png new file mode 100644 index 000000000000..0eae690d2308 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png new file mode 100644 index 000000000000..80fc9de06be5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png new file mode 100644 index 000000000000..d237d48f6bce Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png new file mode 100644 index 000000000000..2764414003d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png new file mode 100644 index 000000000000..08a34f559188 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png new file mode 100644 index 000000000000..021931c9e5ec Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..d6895c3972ae Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..4e117877672e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..3ce0c28b4529 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..d5de05c2a421 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..03aa0185c4be Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..7ee1cde15817 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..ddb1052d0190 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png new file mode 100644 index 000000000000..0dcc63fc169d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..8c92ed54cd1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..42f7ed4530ff Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..8c92ed54cd1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..42f7ed4530ff Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..ab87ecaf8cb6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..4d09fc586df3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..ab87ecaf8cb6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..4d09fc586df3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..334022e67088 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..1a7a4cbea4ca Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..ab87ecaf8cb6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..4d09fc586df3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png new file mode 100644 index 000000000000..0a04c7c04507 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.spec.ts b/e2e/playwright/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.spec.ts new file mode 100644 index 000000000000..5c55255c12ae --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.spec.ts @@ -0,0 +1,340 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; + +const SCREENSHOT_BASE_NAME = 'timezone-monthly-recurrent'; + +test.describe('Monthly recurrent appointments with timezones', () => { + test('Should correctly display the recurrent monthly appointment with the same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__same-timezone'); + }); + + test('Should correctly display the recurrent monthly appointment with a greater time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__greater-timezone'); + }); + + test('Should correctly display the recurrent monthly appointment with a lower time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2021 12:00 PM - 2:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__lower-timezone'); + }); + + test(`Should correctly display the recurrent monthly appointment +if start date lower that recurrent date with the same time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__same-timezone'); + }); + + test(`Should correctly display the recurrent monthly appointment +if start date lower that recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2021 2:00 AM - 4:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__greater-timezone'); + }); + + test(`Should correctly display the recurrent monthly appointment +if start date lower that recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2021 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__lower-timezone'); + }); + + test(`Should correctly display the recurrent monthly appointment at first date +if start date greater that recurrent date with a same time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent monthly appointment at next date +if start date greater that recurrent date with a same time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 4, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/26/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__next-view-date'); + }); + + test(`Should correctly display the recurrent monthly appointment at first date +if start date greater that recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent monthly appointment at next date +if start date greater that recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 4, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/27/2021 2:00 AM - 4:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__next-view-date'); + }); + + test(`Should correctly display the recurrent monthly appointment at first date +if start date greater that recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent monthly appointment at next date +if start date greater that recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 4, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/25/2021 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__next-view-date'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.spec.ts b/e2e/playwright/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.spec.ts new file mode 100644 index 000000000000..0a9343553f32 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.spec.ts @@ -0,0 +1,612 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; + +const SCREENSHOT_BASE_NAME = 'timezone-weekly-recurrent'; + +test.describe('Weekly recurrent appointments with timezones', () => { + // === One day in week tests section === + + test('Should correctly display the recurrent (one day at week) appointment with the same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__same-timezone'); + }); + + test('Should correctly display the recurrent (one day at week) morning appointment with the same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 12:00 AM - 2:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-morning-appointment__same-timezone'); + }); + + test('Should correctly display the recurrent (one day at week) evening appointment with the same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 PM - 12:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-evening-appointment__same-timezone'); + }); + + test(`Should correctly display the recurrent (one day at week) appointment +with a greater time timezone and day shift to the next day`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__day-shift__greater-timezone'); + }); + + test('Should correctly display the recurrent (one day at week) appointment with a lower timezone and day shift to the previous day', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const schedulerTimezone = 'Etc/GMT+2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 8, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2021 6:00 PM - 8:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__day-shift__lower-timezone'); + }); + + test('Should correctly display the recurrent (one day at week) appointment with timezone week shift to the previous week', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 2, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/25/2021 6:00 AM - 8:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__week-shift__lower-timezone'); + }); + + test('Should correctly display the recurrent (one day at week) appointment with timezone week shift to the next week', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 25, 20, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 25, 22, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/25/2021 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__week-shift__greater-timezone'); + }); + + test(`Should correctly display the recurrent (one day at week) appointment +with timezone view period shift to the next view period at the first week`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 4, 1, 20, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 4, 1, 22, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__next-view-shift__first-week'); + }); + + test(`Should correctly display the recurrent (one day at week) appointment +with timezone view period shift to the next view period at the second week`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 4, 1, 20, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 4, 1, 22, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/2/2021 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__next-view-shift__second-week'); + }); + + test(`Should correctly display the recurrent (one day at week) appointment +with timezone view period shift to the previous view period at the first week`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 25, 2, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 25, 4, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/1/2021 6:00 AM - 8:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__previous-view-shift__first-week'); + }); + + test(`Should correctly display the recurrent (one day at week) appointment +with timezone view period shift to the previous view period at the second week`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 25, 2, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 25, 4, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 21), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/24/2021 6:00 AM - 8:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__previous-view-shift__before-week'); + }); + + // === multiple day in week tests section === + + test('Should correctly display recurrent appointment with multiple day in week on the first week in same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 4/28/2021 10:00 AM - 2:00 AM + // 4/29/2021 10:00 AM - 2:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__same-timezone'); + }); + + test('Should correctly display recurrent appointment with multiple day in week on the second week in same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 5/4/2021 10:00 AM - 2:00 AM + // 5/5/2021 10:00 AM - 2:00 AM + // 5/6/2021 10:00 AM - 2:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__same-timezone'); + }); + + test('Should correctly display recurrent appointment with multiple day in week on the first week in a greater time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const timezone = 'Etc/GMT-5'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 4/29/2021 1:00 AM - 5:00 AM + // 4/30/2021 1:00 AM - 5:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__greater-timezone'); + }); + + test('Should correctly display recurrent appointment with multiple day in week on the second week in a greater time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const timezone = 'Etc/GMT-5'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 5/5/2021 1:00 AM - 5:00 AM + // 5/6/2021 1:00 AM - 5:00 AM + // 5/7/2021 1:00 AM - 5:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__greater-timezone'); + }); + + test('Should correctly display recurrent appointment with multiple day in week on the first week in a lower time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const timezone = 'Etc/GMT+5'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 4/27/2021 7:00 PM - 11:00 PM + // 4/28/2021 7:00 PM - 11:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__lower-timezone'); + }); + + test('Should correctly display recurrent appointment with multiple day in week on the second week in a lower time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-10'; + const timezone = 'Etc/GMT+5'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 5/3/2021 7:00 PM - 11:00 PM + // 5/4/2021 7:00 PM - 11:00 PM + // 5/5/2021 7:00 PM - 11:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__lower-timezone'); + }); + + // === maximum timezone offset tests section === + + test(`Should correctly display recurrent appointment with multiple day in week + on the first week with maximum positive timezone offset`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+12'; + const timezone = 'Etc/GMT-14'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 22, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 30, 0, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE,TH, FT', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 5/1/2021 12:00 AM - 2:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__first-week__max-positive-timezone-offset'); + }); + + test(`Should correctly display recurrent appointment with multiple day in week + on the first week with maximum positive timezone offset (second week)`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+12'; + const timezone = 'Etc/GMT-14'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 22, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 30, 0, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 5/6/2021 12:00 AM - 2:00 AM + // 5/7/2021 12:00 AM - 2:00 AM + // 5/8/2021 12:00 AM - 2:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__second-week__max-positive-timezone-offset'); + }); + + test(`Should correctly display recurrent appointment with multiple day in week + on the first week with maximum negative timezone offset`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-14'; + const timezone = 'Etc/GMT+12'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 4/26/2021 10:00 PM - 12:00 AM + // 5/1/2021 10:00 PM - 12:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__first-week__max-negative-timezone-offset'); + }); + + test(`Should correctly display recurrent appointment with multiple day in week + on the first week with maximum negative timezone offset (second week)`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-14'; + const timezone = 'Etc/GMT+12'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE', + text: 'Test', + }], + timeZone: timezone, + currentView: 'week', + currentDate: new Date(2021, 4, 5), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected dates: + // 5/2/2021 10:00 PM - 12:00 AM + // 5/3/2021 10:00 PM - 12:00 AM + // 5/8/2021 10:00 PM - 12:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'one-appointment__second-week__max-negative-timezone-offset'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.spec.ts b/e2e/playwright/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.spec.ts new file mode 100644 index 000000000000..f2620246cfcb --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.spec.ts @@ -0,0 +1,340 @@ +import { test } from '../../../../../fixtures'; +import { createWidget } from '../../../../../helpers/createWidget'; +import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; + +const SCREENSHOT_BASE_NAME = 'timezone-yearly-recurrent'; + +test.describe('Yearly recurrent appointments with timezones', () => { + test('Should correctly display the recurrent yearly appointment with the same timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__same-timezone'); + }); + + test('Should correctly display the recurrent yearly appointment with a greater time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2021 2:00 AM - 4:00 AM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__greater-timezone'); + }); + + test('Should correctly display the recurrent yearly appointment with a lower time timezone', async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2021 2:00 PM - 4:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'same-date__lower-timezone'); + }); + + test(`Should correctly display the recurrent yearly appointment if start date +lower than recurrent date with the same timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2021 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__same-timezone'); + }); + + test(`Should correctly display the recurrent yearly appointment if start date +lower than recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2021 2:00 AM - 4:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__greater-timezone'); + }); + + test(`Should correctly display the recurrent yearly appointment if start date +lower than recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 26, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2021 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'lower-date__lower-timezone'); + }); + + test(`Should correctly display the recurrent yearly appointment at first date if start date +greater than recurrent date with the same timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent yearly appointment at next date if start date +greater than recurrent date with the same timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+1'; + const schedulerTimezone = 'Etc/GMT+1'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 10, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 12, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2022, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/28/2022 10:00 AM - 12:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__next-view-date'); + }); + + test(`Should correctly display the recurrent yearly appointment at first date if start date +greater than recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent yearly appointment at next date if start date +greater than recurrent date with a greater time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT+10'; + const schedulerTimezone = 'Etc/GMT-2'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 14, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 16, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2022, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/29/2022 2:00 AM - 4:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__next-view-date'); + }); + + test(`Should correctly display the recurrent yearly appointment at first date if start date +greater than recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2021, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected no visible date + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__same-view-date'); + }); + + test(`Should correctly display the recurrent yearly appointment at next date if start date +greater than recurrent date with a lower time timezone`, async ({ page }) => { + const appointmentTimezone = 'Etc/GMT-2'; + const schedulerTimezone = 'Etc/GMT+10'; + + await createWidget(page, 'dxScheduler', { + dataSource: [{ + allDay: false, + startDate: getAppointmentTime(new Date(2021, 3, 29, 4, 0, 0), appointmentTimezone), + startDateTimeZone: appointmentTimezone, + endDate: getAppointmentTime(new Date(2021, 3, 29, 6, 0, 0), appointmentTimezone), + endDateTimeZone: appointmentTimezone, + recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', + text: 'Test', + }], + timeZone: schedulerTimezone, + currentView: 'week', + currentDate: new Date(2022, 3, 28), + startDayHour: 0, + cellDuration: 180, + width: 1000, + height: 585, + }); + + // expected date: 4/27/2022 4:00 PM - 6:00 PM + await screenshotTestFunc(page, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__next-view-date'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/timezone/timezoneTestingUtils.ts b/e2e/playwright/tests/scheduler/common/timezone/timezoneTestingUtils.ts new file mode 100644 index 000000000000..a811f5556a84 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/timezone/timezoneTestingUtils.ts @@ -0,0 +1,52 @@ +import type { Page } from '@playwright/test'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const generateTimezoneOffsets = (): Record => { + const result: Record = {}; + + new Array(27).fill(0).forEach((_, idx) => { + const timezoneIdx = idx - 14; + + if (timezoneIdx < 0) { + result[`Etc/GMT${timezoneIdx}`] = timezoneIdx * -1; + } else if (timezoneIdx > 0) { + result[`Etc/GMT+${timezoneIdx}`] = timezoneIdx * -1; + } else { + result['Etc/GMT'] = 0; + } + }); + + return result; +}; + +export const TIMEZONE_OFFSETS: Record = generateTimezoneOffsets(); +const MINUTES_TO_MILLISECONDS = 60000; +const HOURS_TO_MILLISECONDS = MINUTES_TO_MILLISECONDS * 60; +const DEFAULT_SCHEDULER_SELECTOR = '#container'; + +const getAppointmentTime = (desiredDate: Date, timezone: string): Date => { + const localOffset = desiredDate.getTimezoneOffset() * MINUTES_TO_MILLISECONDS; + const timezoneOffset = TIMEZONE_OFFSETS[timezone] * HOURS_TO_MILLISECONDS; + + return new Date(desiredDate.getTime() - localOffset - timezoneOffset); +}; + +const getScreenshotName = (testModuleName: string, screenshotName: string): string => `${testModuleName}__${screenshotName}.png`; + +const screenshotTestFunc = async ( + page: Page, + testModuleName: string, + screenshotName: string, + schedulerSelector = DEFAULT_SCHEDULER_SELECTOR, +): Promise => { + const scheduler = new Scheduler(page, schedulerSelector); + + await testScreenshot( + page, + getScreenshotName(testModuleName, screenshotName), + { element: scheduler.workSpace }, + ); +}; + +export { getAppointmentTime, screenshotTestFunc, getScreenshotName }; diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png new file mode 100644 index 000000000000..0c75e00d9ecb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png new file mode 100644 index 000000000000..6ac7b499631b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png new file mode 100644 index 000000000000..826374debeeb Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png new file mode 100644 index 000000000000..971372ffaf1d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png new file mode 100644 index 000000000000..933141476048 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png new file mode 100644 index 000000000000..efc3f984789e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/hideTooltip.spec.ts b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/hideTooltip.spec.ts new file mode 100644 index 000000000000..10bb5545faa6 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/hideTooltip.spec.ts @@ -0,0 +1,29 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Hide tooltip', () => { + test('Appointment tooltip should be hidden when drag is started', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['day'], + currentDate: new Date(2021, 3, 26), + startDayHour: 9, + height: 600, + dataSource: [{ + text: 'Test', + startDate: new Date(2021, 3, 26, 9), + endDate: new Date(2021, 3, 26, 9, 30), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Test'); + + await appointment.element.click(); + await scheduler.appointmentTooltip.expectVisible(true); + + await dragToElement(page, appointment.element, scheduler.getDateTableCell(4, 0)); + await scheduler.appointmentTooltip.expectVisible(false); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/init/widget.data.ts b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/init/widget.data.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/init/widget.data.ts rename to e2e/playwright/tests/scheduler/common/tooltipBehaviour/init/widget.data.ts diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts new file mode 100644 index 000000000000..8e8c97540888 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts @@ -0,0 +1,24 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +export const createScheduler = async (page: Page, options = {}): Promise => createWidget(page, 'dxScheduler', { + views: ['day'], + dataSource: [], + width: 600, + height: 600, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'day', + currentDate: new Date(2019, 3, 1), + ...options, +}); + +export const scroll = async ( + page: Page, + horizontal: number, + vertical: number, +): Promise => page.evaluate( + ([x, y]) => { window.scroll(x, y); }, + [horizontal, vertical], +); diff --git a/e2e/playwright/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.spec.ts b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.spec.ts new file mode 100644 index 000000000000..2d00ec3f16a4 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.spec.ts @@ -0,0 +1,261 @@ +import { expect, test } from '../../../../fixtures'; +import { DEFAULT_BROWSER_SIZE } from '../../../../helpers/const'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import dataSource from './init/widget.data'; +import { createScheduler, scroll } from './init/widget.setup'; + +test.describe('Appointment tooltip behavior during scrolling in the Scheduler (T755449)', () => { + test.describe(() => { + test.use({ browserSize: [600, 450] }); + + test('The tooltip of collector should not scroll page and immediately hide', async ({ page }) => { + await createScheduler(page, { + views: [{ + type: 'week', + name: 'week', + maxAppointmentsPerCell: '0', + }], + currentDate: new Date(2017, 4, 25), + startDayHour: 9, + currentView: 'week', + dataSource: [{ + text: 'A', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'B', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'C', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'D', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'E', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'F', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }, { + text: 'G', + startDate: new Date(2017, 4, 22, 9, 30), + endDate: new Date(2017, 4, 22, 11, 30), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.collectors.find('7').click(); + + await scheduler.appointmentTooltip.expectVisible(true); + }); + }); + + test.describe(() => { + test.use({ browserSize: [600, 400] }); + + test('The tooltip should not hide after automatic scrolling during an appointment click', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Brochure Design Review'); + + await appointment.element.click(); + await scheduler.appointmentTooltip.expectVisible(true); + }); + + test('The tooltip should hide after manually scrolling in the browser', async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Brochure Design Review'); + + await appointment.element.click(); + await scheduler.appointmentTooltip.expectVisible(true); + await scroll(page, 0, 100); + await scheduler.appointmentTooltip.expectVisible(false); + }); + }); + + [ + false, + true, + ].forEach((adaptivityEnabled) => { + test.describe(() => { + test.use({ browserSize: adaptivityEnabled ? [600, 400] : DEFAULT_BROWSER_SIZE }); + + test(`The tooltip screenshot (adaptivityEnabled: ${adaptivityEnabled})`, async ({ page }) => { + await createScheduler(page, { + views: ['week'], + currentView: 'week', + dataSource, + adaptivityEnabled, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Brochure Design Review'); + const expectedSelector = adaptivityEnabled + ? scheduler.appointmentTooltip.mobileElement + : scheduler.appointmentTooltip.element; + const tooltipNamePrefix = adaptivityEnabled ? 'mobile' : 'desktop'; + + await appointment.element.click(); + + await expect(expectedSelector).toBeAttached(); + + await testScreenshot( + page, + `appointment-${tooltipNamePrefix}-tooltip-screenshot.png`, + { element: scheduler.element }, + ); + }); + }); + }); + + test.describe(() => { + test.use({ browserSize: DEFAULT_BROWSER_SIZE }); + + test('Collector tooltip focused list item screenshot', { + tag: ['@fluent.blue.light', '@generic.light', '@material.blue.light'], + }, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + text: 'Text', + startDate: new Date(2017, 4, 22, 9, 30, 0, 0), + endDate: new Date(2017, 4, 22, 10, 30, 0, 0), + }, { + text: 'Text2', + startDate: new Date(2017, 4, 22, 9, 30, 0, 0), + endDate: new Date(2017, 4, 22, 10, 30, 0, 0), + }, { + text: 'Text3', + startDate: new Date(2017, 4, 22, 9, 30, 0, 0), + endDate: new Date(2017, 4, 22, 10, 30, 0, 0), + }], + views: [{ + type: 'month', + maxAppointmentsPerCell: 1, + }], + currentView: 'month', + currentDate: new Date(2017, 4, 22), + }); + + const scheduler = new Scheduler(page, '#container'); + const collector = scheduler.collectors.find('2 more'); + const { appointmentTooltip } = scheduler; + + await expect(collector.element).toBeAttached(); + await collector.element.click(); + await appointmentTooltip.expectVisible(true); + await page.keyboard.press('Tab'); + + await testScreenshot( + page, + 'collector-tooltip-focused-list-item.png', + { element: scheduler.element }, + ); + }); + }); + + test.describe(() => { + test.use({ browserSize: [600, 1000] }); + + test('Tooltip on mobile devices should have enough hight if there are async templates (React)', async ({ page }) => { + await page.evaluate(() => { + (window as any).deferreds = []; + }); + + await createWidget(page, 'dxScheduler', () => ({ + currentDate: new Date(2017, 4, 25), + currentView: 'month', + adaptivityEnabled: true, + templatesRenderAsynchronously: true, + integrationOptions: { + templates: { + appointmentTooltip: { + render(args) { + const deferred = $.Deferred(); + (window as any).deferreds.push(deferred); + deferred.done(() => { + args.container.append( + $('
') + .height(50) + .text(args.model.appointmentData.text), + ); + args.onRendered(); + }); + }, + }, + }, + }, + dataSource: [{ + text: 'A', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'B', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'C', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'D', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'E', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'F', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }, { + text: 'G', + startDate: new Date(2017, 4, 22, 0, 30), + endDate: new Date(2017, 4, 22, 0, 30), + }], + })); + + const scheduler = new Scheduler(page, '#container'); + + const resolveAllRenderDeferreds = () => page.evaluate(() => { + (window as any).deferreds + .filter((d) => d.state() === 'pending') + .map((d) => d.resolve()); + }); + + await scheduler.headerPanel.element.click(); // just click away + await scheduler.collectors.find('7').element.click(); + await resolveAllRenderDeferreds(); + + await testScreenshot(page, 'tooltip-rendering-with-react.png'); + + // check again after re-doing steps + + await scheduler.headerPanel.element.click(); // just click away + await scheduler.collectors.find('7').element.click(); + await resolveAllRenderDeferreds(); + + await testScreenshot(page, 'tooltip-rendering-with-react.png'); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/twoSchedulers.spec.ts b/e2e/playwright/tests/scheduler/common/twoSchedulers.spec.ts new file mode 100644 index 000000000000..3749db764f05 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/twoSchedulers.spec.ts @@ -0,0 +1,27 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import Scheduler from '../../../models/scheduler'; + +const createScheduler = async (page: Page, container: string): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentDate: new Date(2022, 3, 5), + height: 600, + views: ['day'], + currentView: 'day', + }, container); +}; + +test.describe('Interaction of two schedulers', () => { + test('First scheduler should work after removing second (T1063130)', async ({ page }) => { + await createScheduler(page, '#container'); + await createScheduler(page, '#otherContainer'); + + const scheduler = new Scheduler(page, '#container'); + const { navigator } = scheduler.toolbar; + + await navigator.nextButton.click(); + await expect(navigator.caption).toHaveText('6 April 2022'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/T1091980.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1091980.spec.ts new file mode 100644 index 000000000000..adb34a943987 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1091980.spec.ts @@ -0,0 +1,41 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; +import { waitForViewportRender } from './utils'; + +test.describe('Scheduler: Virtual scrolling', () => { + test('it should correctly render virtual table if scheduler sizes are set in % (T1091980)', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + width: '100%', + height: '100%', + dataSource: [], + views: [{ + type: 'week', + intervalCount: 10, + }], + currentView: 'week', + currentDate: new Date(2021, 3, 5), + startDayHour: 8, + endDayHour: 20, + crossScrollingEnabled: true, + scrolling: { + mode: 'virtual', + }, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await expect(scheduler.allDayTableCells).toHaveCount(24); + await expect(scheduler.dateTableCells).toHaveCount(576); + + await scheduler.scrollTo(new Date(2021, 5, 12, 19)); + await waitForViewportRender(scheduler); + + await expect(scheduler.allDayTableCells).toHaveCount(24); + await expect(scheduler.dateTableCells).toHaveCount(576); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/T1258030.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1258030.spec.ts new file mode 100644 index 000000000000..af7cf5ace820 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1258030.spec.ts @@ -0,0 +1,34 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { scrollTo } from '../../helpers/utils'; +import { waitForViewportRender } from './utils'; + +test.describe('Scheduler: Virtual scrolling', () => { + test('it should render recurrence appointment with correct width in month timeline view for virtual scrolling', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + height: 300, + currentView: 'timelineMonth', + views: ['timelineMonth'], + currentDate: new Date(2024, 9, 1), + dataSource: [{ + text: 'appointment', + startDate: new Date(2024, 9, 1), + endDate: new Date(2024, 9, 2), + recurrenceRule: 'FREQ=DAILY', + }], + scrolling: { mode: 'virtual' }, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + + await scrollTo(page, 3000, 0); + await waitForViewportRender(scheduler); + await testScreenshot(page, 'virtual_scroll_timeline_3000.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/T1287345.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1287345.spec.ts new file mode 100644 index 000000000000..7c9a4cd01589 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/T1287345.spec.ts @@ -0,0 +1,35 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { scrollTo } from '../../helpers/utils'; +import { waitForViewportRender } from './utils'; + +test.describe('Scheduler: Virtual scrolling', () => { + test.use({ browserSize: [600, 800] }); + + test('Cell width set in css should be correct for virtual scrolling after scroll down (T1287345)', async ({ page }) => { + await insertStylesheetRulesToPage(page, ` + #container .dx-scheduler-cell-sizes-horizontal { + width: 200px !important; + }`); + + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: 'week', + scrolling: { + mode: 'virtual', + }, + currentDate: new Date(2021, 2, 28), + height: 300, + }); + + const scheduler = new Scheduler(page, '#container'); + + await scrollTo(page, 0, 3000); + await waitForViewportRender(scheduler); + await scheduler.toolbar.navigator.nextButton.click(); + await testScreenshot(page, 'virtual_scroll_cell_width.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/appointments.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/appointments.spec.ts new file mode 100644 index 000000000000..aec11a1f7121 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/appointments.spec.ts @@ -0,0 +1,87 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { scrollToDate } from '../../helpers/utils'; +import { waitForViewportRender } from './utils'; + +test.describe('Scheduler: Virtual Scrolling', () => { + test('Appointment should not repaint after scrolling if present on viewport', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + height: 600, + width: 800, + currentDate: new Date(2020, 8, 7), + scrolling: { + mode: 'virtual', + }, + currentView: 'week', + views: [{ + type: 'week', + intervalCount: 10, + }], + dataSource: [{ + startDate: new Date(2020, 8, 13, 2), + endDate: new Date(2020, 8, 13, 3), + text: 'test', + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const { element } = scheduler.getAppointment('', 0); + + await element.evaluate((node) => { + node.setAttribute('style', `${node.getAttribute('style') ?? ''} background-color: red;`); + }); + const initialStyle = await element.getAttribute('style'); + + await scrollToDate(page, new Date(2020, 8, 17, 4)); + await waitForViewportRender(scheduler); + // A skipped repaint leaves nothing to wait for; let the delayed appointment render run. + await page.waitForTimeout(300); + + await expect(element).toHaveAttribute('style', initialStyle ?? ''); + }); + + test('The appointment should render correctly when scrolling vertically (T1263428)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + height: 500, + width: 900, + timeZone: 'Europe/Vienna', + dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ssxx', + currentDate: new Date(2024, 10, 11, 20, 54, 23, 361), + cellDuration: 20, + firstDayOfWeek: 1, + startDayHour: 12.0, + endDayHour: 18.0, + allDayPanelMode: 'hidden', + scrolling: { + mode: 'virtual', + }, + crossScrollingEnabled: true, + currentView: 'week', + textExpr: 'Subject', + startDateExpr: 'StartDate', + endDateExpr: 'EndDate', + views: [{ + type: 'week', + groupByDate: true, + startDayHour: 6.0, + endDayHour: 22.0, + }], + dataSource: [{ + Subject: 'Website Re-Design Plan', + StartDate: new Date('2024-11-11T12:10:00+0100'), + EndDate: new Date('2024-11-12T21:00:00+0100'), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + + await scrollToDate(page, new Date('2024-11-12T09:00:00+0100')); + await waitForViewportRender(scheduler); + + await testScreenshot(page, 'T1263428-virtual-scrolling-render-appointment.png', { + element: scheduler.element, + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..b47cbee196c0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png new file mode 100644 index 000000000000..b02cdca6954c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png new file mode 100644 index 000000000000..14721f616ef9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png new file mode 100644 index 000000000000..06c1f4194b24 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png new file mode 100644 index 000000000000..dd4169e30592 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png new file mode 100644 index 000000000000..e07b24e01751 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png new file mode 100644 index 000000000000..6d44134abb02 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png new file mode 100644 index 000000000000..a9ab62974b30 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png new file mode 100644 index 000000000000..89da4958de23 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png new file mode 100644 index 000000000000..ea69a25888bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png new file mode 100644 index 000000000000..fc47040d24cf Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png new file mode 100644 index 000000000000..c0228076312e Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png new file mode 100644 index 000000000000..6b0bdfef8768 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png new file mode 100644 index 000000000000..630d0f65aee2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png new file mode 100644 index 000000000000..70ecfe78b228 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png new file mode 100644 index 000000000000..e8977979dbfd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png new file mode 100644 index 000000000000..570fbd06c646 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png new file mode 100644 index 000000000000..fa6cf65fcbe1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png new file mode 100644 index 000000000000..cf2f48c945fd Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..c6cbc1683fcc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..d7ab03313ae2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..cd4cefba63a7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..95bf7227932f Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..c6cbc1683fcc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..aeaba531158a Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..7be81bb43586 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..068393762eba Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png new file mode 100644 index 000000000000..00f17e9b9697 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..a81cfb75d591 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..4ad44fc43f8d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..a28bbaa19759 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..690b684105b6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..902438080fe9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..eb371c71890d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..b125654546fe Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..d801479b16aa Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..e5360c0e4085 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..9b86e218584d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..c66b68c279a5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..7fc63bf54ae0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..e7b9829c8b74 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..d29fdde8f2e5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..f9cf2c1907b0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..e6612deb5b02 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..f623a379a58b Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..c61c277adf10 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..386f36494367 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..d9b7a7d889d2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..2c9d8bac1317 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..ea0522a8aa52 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..f368e1dfad1d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..718288e637f6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..1dbedfa204cc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..de384a5b567d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..f2889b12876d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..4110342e611d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png new file mode 100644 index 000000000000..1d522c1d7106 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png new file mode 100644 index 000000000000..45bd0794264d Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png new file mode 100644 index 000000000000..4d722a58b3bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png new file mode 100644 index 000000000000..d9bc8bc60343 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png new file mode 100644 index 000000000000..52542ecc0399 Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png new file mode 100644 index 000000000000..4008bea3972c Binary files /dev/null and b/e2e/playwright/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/layout.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/layout.spec.ts new file mode 100644 index 000000000000..09b0d5a4c867 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/layout.spec.ts @@ -0,0 +1,124 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { scrollToDate } from '../../helpers/utils'; +import { + resources, + createDataSetForScreenShotTests, + views, + horizontalViews, + scrollConfig, + groupedByDateViews, + waitForViewportRender, +} from './utils'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + dataSource: createDataSetForScreenShotTests(), + currentDate: new Date(2021, 0, 1), + height: 600, + resources, + views, + currentView: 'day', + scrolling: { mode: 'virtual' }, + startDayHour: 0, + endDayHour: 3, + ...additionalProps, + }); +}; + +test.describe('Scheduler: Virtual Scrolling', () => { + test('Virtual scrolling layout in scheduler views', async ({ page }) => { + await createScheduler(page, {}); + + const scheduler = new Scheduler(page, '#container'); + + // TODO: views[0] is day view and we have a bug in its CSS + // It is not advisable to create screenshots for incorrect layout + for (let i = 1; i < views.length; i += 1) { + const view = views[i]; + + await scheduler.option('currentView', view.type); + await scrollToDate(page, scrollConfig[i].firstDate); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-after-scroll.png`); + + await scrollToDate(page, scrollConfig[i].lastDate); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-before-scroll.png`); + } + }); + + test('Virtual scrolling layout in scheduler views when horizontal grouping is enabled', async ({ page }) => { + await createScheduler(page, { + views: horizontalViews, + groups: ['resourceId'], + }); + + const scheduler = new Scheduler(page, '#container'); + + // TODO: views[0] is day view and we have a bug in its CSS + // It is not advisable to create screenshots for incorrect layout + for (let i = 1; i < views.length; i += 1) { + const view = views[i]; + + await scheduler.option('currentView', view.type); + await scrollToDate(page, scrollConfig[i].firstDate, { resourceId: 6 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-after-scroll-horizontal-grouping.png`); + + await scrollToDate(page, scrollConfig[i].lastDate, { resourceId: 0 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-before-scroll-horizontal-grouping.png`); + } + }); + + test('Virtual scrolling layout in scheduler views when grouping by date is enabled', async ({ page }) => { + await createScheduler(page, { + views: groupedByDateViews, + groups: ['resourceId'], + }); + + const scheduler = new Scheduler(page, '#container'); + + // TODO: views[0] is day view and we have a bug in its CSS + // It is not advisable to create screenshots for incorrect layout + for (let i = 1; i < views.length; i += 1) { + const view = views[i]; + + await scheduler.option('currentView', view.type); + + await scrollToDate(page, scrollConfig[i].firstDate, { resourceId: 3 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-after-scroll-grouping-by-date.png`); + + await scrollToDate(page, scrollConfig[i].lastDate, { resourceId: 0 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, `virtual-scrolling-${view.type}-before-scroll-grouping-by-date.png`); + } + }); + + test('Header cells should be aligned with date-table cells in timeline-month when current date changes and virtual scrolling is used', async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2020, 10, 1), + currentView: 'timelineMonth', + }); + + const scheduler = new Scheduler(page, '#container'); + + await scheduler.option('currentDate', new Date(2020, 11, 1)); + + await testScreenshot(page, 'virtual-scrolling-timeline-month-change-current-date-virtual.png'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/many-cells.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/many-cells.spec.ts new file mode 100644 index 000000000000..88f3586afe09 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/many-cells.spec.ts @@ -0,0 +1,81 @@ +import type { Orientation, ViewType } from 'devextreme/ui/scheduler'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { generateOptionMatrix } from '../../../../helpers/generateOptionMatrix'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { waitForAppointmentsRender, waitForViewportRender } from './utils'; + +const buildScreenshotName = (viewType: ViewType, orientation: Orientation, step: string) => `virtual-scrolling-many-cells-${viewType}-${orientation}-${step}.png`; + +const testCases = generateOptionMatrix<{ viewType: ViewType; groupOrientation: Orientation }>({ + viewType: ['month', 'week', 'workWeek'], + groupOrientation: ['horizontal', 'vertical'], +}); + +test.describe('Scheduler: Virtual scrolling (many cells)', () => { + testCases.forEach(({ viewType, groupOrientation }) => { + const resourceCount = 400; + + test(`it should correctly render virtual table if a lot of resources are presented for ${viewType} view and ${groupOrientation} orientation (T1205597, T1137490)`, async ({ page }) => { + const resources = Array.from({ length: resourceCount }, (_, i) => ({ + id: i, + text: `Resource ${i}`, + })); + + const appointmentDateInfo = Array.from({ length: 29 }) + .map((_, i) => ({ + startDate: new Date(2024, 1, i + 1, 1), + endDate: new Date(2024, 1, i + 1, 4), + })); + + const appointments = Array.from({ length: resourceCount }) + .map((_, resourceIndex) => appointmentDateInfo.map(({ startDate, endDate }) => ({ + text: `Appointment for Resource ${resourceIndex}`, + startDate, + endDate, + groupId: resourceIndex, + }))) + .flat(); + + await createWidget( + page, + 'dxScheduler', + { + height: 600, + currentDate: new Date(2024, 1, 1), + dataSource: appointments, + views: [{ + type: viewType, + groupOrientation, + }], + currentView: viewType, + scrolling: { + mode: 'virtual', + }, + groups: ['groupId'], + resources: [{ + fieldExpr: 'groupId', + dataSource: resources, + label: 'Group', + }], + }, + ); + + const scheduler = new Scheduler(page, '#container'); + await waitForAppointmentsRender(scheduler); + + await testScreenshot(page, buildScreenshotName(viewType, groupOrientation, 'start'), { element: scheduler.element }); + + await scheduler.scrollTo(new Date(2024, 1, 1, 1), { groupId: resourceCount / 2 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, buildScreenshotName(viewType, groupOrientation, 'middle'), { element: scheduler.element }); + + await scheduler.scrollTo(new Date(2024, 1, 1, 1), { groupId: resourceCount - 1 }); + await waitForViewportRender(scheduler); + + await testScreenshot(page, buildScreenshotName(viewType, groupOrientation, 'end'), { element: scheduler.element }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/resources.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/resources.spec.ts new file mode 100644 index 000000000000..fd0618c4e0fa --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/resources.spec.ts @@ -0,0 +1,50 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import Scheduler from '../../../../models/scheduler'; + +test.describe('Scheduler: Generic theme layout', () => { + test('Should correctly render view if virtual scrolling and groupByDate', async ({ page }) => { + await createWidget( + page, + 'dxScheduler', + { + height: 600, + width: 200, + dataSource: [{ + userId: 1, + startDate: new Date(2022, 0, 16, 14, 30), + endDate: new Date(2022, 0, 16, 15), + }], + currentDate: new Date(2022, 0, 15), + views: ['month'], + currentView: 'month', + groupByDate: true, + groups: [ + 'userId', + ], + resources: [ + { + fieldExpr: 'userId', + allowMultiple: false, + dataSource: [ + { id: 1, text: 'User 1' }, + { id: 2, text: 'User 2' }, + { id: 3, text: 'User 3' }, + { id: 4, text: 'User 4' }, + { id: 5, text: 'User 5' }, + ], + label: 'User', + }, + ], + scrolling: { + mode: 'virtual', + }, + }, + ); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointmentByIndex(0); + + await expect(appointment.element).toBeAttached(); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/utils.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/utils.ts new file mode 100644 index 000000000000..1209d430e83b --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/utils.ts @@ -0,0 +1,153 @@ +import type { Page } from '@playwright/test'; +import { expect } from '../../../../fixtures'; +import type Scheduler from '../../../../models/scheduler'; + +export const resources = [{ + fieldExpr: 'resourceId', + allowMultiple: true, + dataSource: [ + { + text: 'Resource 0', + id: 0, + color: '#20B2AA', + }, { + text: 'Resource 1', + id: 1, + color: '#87CEEB', + }, { + text: 'Resource 2', + id: 2, + color: '#228B22', + }, { + text: 'Resource 3', + id: 3, + color: '#98FB98', + }, { + text: 'Resource 4', + id: 4, + color: '#2E8B57', + }, { + text: 'Resource 5', + id: 5, + color: '#66CDAA', + }, { + text: 'Resource 6', + id: 6, + color: '#008080', + }, { + text: 'Resource 7', + id: 7, + color: '#00FFFF', + }, + ], + label: 'Priority', +}]; + +export const views = [{ + type: 'day', + intervalCount: 7, + endDayHour: 8, +}, { + type: 'week', + intervalCount: 10, + endDayHour: 8, +}, { + type: 'month', +}, { + type: 'timelineDay', + intervalCount: 7, +}, { + type: 'timelineWeek', + intervalCount: 3, +}, { + type: 'timelineMonth', +}]; + +export const verticalViews = views + .map((view) => ({ + ...view, + groupOrientation: 'vertical', + })); +export const horizontalViews = views + .map((view) => ({ + ...view, + groupOrientation: 'horizontal', + })); +export const groupedByDateViews = views + .map((view) => ({ + ...view, + groupOrientation: 'horizontal', + groupByDate: true, + })); + +export const createDataSetForScreenShotTests = (): Record[] => { + const result: { + text: string; + startDate: Date; + endDate: Date; + resourceId: number[]; + allDay?: boolean; + }[] = []; + for (let day = 1; day < 31; day += 1) { + result.push({ + text: '1 appointment', + startDate: new Date(2021, 0, day, 0), + endDate: new Date(2021, 0, day, 1), + resourceId: [0, 1, 2, 3, 4, 5, 6, 7], + }); + + result.push({ + text: '2 appointment', + startDate: new Date(2021, 0, day, 2), + endDate: new Date(2021, 0, day, 3), + resourceId: [0, 1, 2, 3, 4, 5, 6, 7], + }); + } + + return result; +}; + +export const scrollConfig = [{ + firstDate: new Date(2021, 0, 7), + lastDate: new Date(2021, 0, 1), +}, { + firstDate: new Date(2021, 0, 15), + lastDate: new Date(2020, 11, 27), +}, { + firstDate: new Date(2021, 0, 1), + lastDate: new Date(2020, 11, 27), +}, { + firstDate: new Date(2021, 0, 7), + lastDate: new Date(2021, 0, 1), +}, { + firstDate: new Date(2021, 0, 15), + lastDate: new Date(2020, 11, 27), +}, { + firstDate: new Date(2021, 0, 30), + lastDate: new Date(2021, 0, 1), +}]; + +export const setZoomLevel = async (page: Page, zoomLevel: number): Promise => page.evaluate( + (level) => { + $('body').css('zoom', `${level}%`); + }, + zoomLevel, +); + +// Rendering thousands of appointments can block the page longer than the default expect timeout. +const RENDER_TIMEOUT = 20000; + +export const waitForAppointmentsRender = async (scheduler: Scheduler): Promise => { + await expect(scheduler.appointments.first()).toBeAttached({ timeout: RENDER_TIMEOUT }); +}; + +export const waitForViewportRender = async (scheduler: Scheduler): Promise => { + await expect.poll(() => scheduler.workspaceScrollable.evaluate((container) => { + const { + left, top, width, height, + } = container.getBoundingClientRect(); + + return document.elementsFromPoint(left + width / 2, top + height / 2) + .some((element) => element.classList.contains('dx-scheduler-date-table-cell')); + }), { timeout: RENDER_TIMEOUT }).toBe(true); +}; diff --git a/e2e/playwright/tests/scheduler/common/virtualScrolling/zooming.spec.ts b/e2e/playwright/tests/scheduler/common/virtualScrolling/zooming.spec.ts new file mode 100644 index 000000000000..016217f2db54 --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/virtualScrolling/zooming.spec.ts @@ -0,0 +1,67 @@ +import type { Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { scrollToDate } from '../../helpers/utils'; +import { + resources, + views, + horizontalViews, + setZoomLevel, + scrollConfig, + waitForViewportRender, +} from './utils'; + +const createScheduler = async ( + page: Page, + additionalProps: Record, +): Promise => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 0, 1), + height: 600, + resources, + views, + currentView: 'day', + scrolling: { mode: 'virtual' }, + startDayHour: 0, + endDayHour: 3, + ...additionalProps, + }); +}; + +// We don't support zooming (known limitation) +test.describe('Scheduler: Virtual Scrolling with Zooming', () => { + test('Virtual scrolling layout in scheduler views when horizontal grouping is enabled and zooming is used', async ({ page }) => { + await setZoomLevel(page, 125); + await createScheduler(page, { + views: horizontalViews, + groups: ['resourceId'], + }); + + const scheduler = new Scheduler(page, '#container'); + + // TODO: views[0] is day view and we have a bug in its CSS + // It is not advisable to create screenshots for incorrect layout + for (let i = 1; i < views.length; i += 1) { + const view = views[i]; + + await scheduler.option('currentView', view.type); + + await testScreenshot( + page, + `virtual-scrolling-${view.type}-before-scroll-horizontal-grouping-scaling.png`, + ); + + await scrollToDate(page, scrollConfig[i].firstDate, { resourceId: 7 }); + await waitForViewportRender(scheduler); + + await testScreenshot( + page, + `virtual-scrolling-${view.type}-after-scroll-horizontal-grouping-scaling.png`, + ); + } + + await setZoomLevel(page, 0); + }); +}); diff --git a/e2e/playwright/tests/scheduler/common/workSpace.spec.ts b/e2e/playwright/tests/scheduler/common/workSpace.spec.ts new file mode 100644 index 000000000000..0e2bbe5e2f2e --- /dev/null +++ b/e2e/playwright/tests/scheduler/common/workSpace.spec.ts @@ -0,0 +1,348 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { hasHorizontalScroll, insertStylesheetRulesToPage } from '../../../helpers/domUtils'; +import { dragToElement } from '../../../helpers/dragUtils'; +import { testScreenshot } from '../../../helpers/screenshots'; +import Button from '../../../models/button'; +import { classMatcher } from '../../../models/internal/classMatcher'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const CELL_STATE_CLASS = { + hover: 'dx-state-hover', + active: 'dx-state-active', +}; + +const FIXED_PARENT_CONTAINER_SIZE = ` +#parentContainer { + width: 400px; + height: 500px; +} + +#container { + height: 100%; +} +`; + +const createScheduler = async (page: Page, options = {}): Promise => { + await createWidget(page, 'dxScheduler', { + ...options, + dataSource: [], + startDayHour: 9, + height: 600, + }); +}; + +const getResourcesDataSource = (count: number) => new Array(count) + .fill(null) + .map((_, idx) => ({ + id: idx, + name: idx.toString(), + })); + +const hideShow = (page: Page, container: string): Promise => page.evaluate((selector) => { + const instance = ($(selector) as any).dxScheduler('instance'); + instance.option('visible', !instance.option('visible')); +}, container); + +const resize = (page: Page, container: string): Promise => page.evaluate((selector) => { + const instance = ($(selector) as any).dxScheduler('instance'); + // eslint-disable-next-line no-underscore-dangle + instance._dimensionChanged(); + // eslint-disable-next-line no-underscore-dangle + instance._workSpace._dimensionChanged(); +}, container); + +test.describe('Scheduler: Workspace', () => { + test('Vertical selection between two workspace cells should focus cells between them (T804954)', async ({ page }) => { + await createScheduler(page, { + views: [{ name: '2 Days', type: 'day', intervalCount: 2 }], + currentDate: new Date(2015, 1, 9), + currentView: 'day', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(3, 0)); + await expect(scheduler.getSelectedCells()).toHaveCount(4); + }); + + test('Horizontal selection between two workspace cells should focus cells between them', async ({ page }) => { + await createScheduler(page, { + views: ['timelineWeek'], + currentDate: new Date(2015, 1, 9), + currentView: 'timelineWeek', + groups: ['roomId'], + resources: [{ + fieldExpr: 'roomId', + label: 'Room', + dataSource: [{ + text: '1', id: 1, + }, { + text: '2', id: 2, + }], + }], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await dragToElement(page, scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 3)); + await expect(scheduler.getSelectedCells()).toHaveCount(4); + }); + + test('Vertical grouping should work correctly when there is one group', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: [{ + type: 'week', + groupOrientation: 'vertical', + }], + currentView: 'week', + dataSource: [], + groups: ['priorityId'], + resources: [{ + field: 'priorityId', + dataSource: [{ id: 1, color: 'black' }], + }], + height: 600, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.dateTableCells).toHaveCount(336); + }); + + test('Hidden scheduler should not resize', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + text: 'Google AdWords Strategy', + ownerId: [2], + startDate: new Date('2021-02-01T16:00:00.000Z'), + endDate: new Date('2021-02-01T17:30:00.000Z'), + priority: 1, + }, + ], + resources: [ + { + fieldExpr: 'priority', + dataSource: [ + { + text: 'Priority 1', + id: 1, + color: '#1e90ff', + }, + ], + label: 'Priority', + }, + ], + groups: ['priority'], + views: [ + { + type: 'timelineMonth', + groupOrientation: 'vertical', + }, + ], + crossScrollingEnabled: true, + currentView: 'timelineMonth', + currentDate: new Date(2021, 1, 1), + height: 400, + }); + + await hideShow(page, '#container'); + await resize(page, '#container'); + await hideShow(page, '#container'); + + await testScreenshot(page, 'scheduler-after-hiding-and-resizing.png'); + }); + + test('All day panel should be hidden when allDayPanelMode=hidden by initializing scheduler', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: new Date(2021, 2, 28), + currentView: 'day', + allDayPanelMode: 'hidden', + dataSource: [{ + text: 'Book Flights to San Fran for Sales Trip', + startDate: new Date('2021-03-28T17:00:00.000Z'), + endDate: new Date('2021-03-28T18:00:00.000Z'), + allDay: true, + }, { + text: 'Customer Workshop', + startDate: new Date('2021-03-29T17:30:00.000Z'), + endDate: new Date('2021-04-03T19:00:00.000Z'), + }], + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.allDayTitle).toHaveCount(0); + + await expect(scheduler.allDayRow).toHaveCount(0); + }); + + // visual: generic.light + // visual: fluent.blue.light + // visual: material.blue.light + test('Month workspace should be scrollable to the last row (T1203250)', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['month'], + currentView: 'month', + currentDate: new Date(2019, 4, 1), + height: 250, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await scheduler.scrollTo(new Date(2019, 5, 8, 0, 0)); + + await testScreenshot(page, 'scrollable-month-workspace.png', { element: scheduler.workSpace }); + }); + + // visual: generic.light + // visual: generic.dark + // visual: fluent.blue.light + // visual: fluent.blue.dark + // visual: fluent.saas.light + // visual: fluent.saas.dark + // visual: material.blue.light + // visual: material.blue.dark + test('Check cell hover state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['week'], + currentView: 'week', + currentDate: new Date(2019, 4, 1), + height: 500, + }); + + // arrange + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const firstDateTableCell = scheduler.getDateTableCell(0, 0); + + // act + await firstDateTableCell.hover(); + await expect(firstDateTableCell).toHaveClass(classMatcher(CELL_STATE_CLASS.hover)); + + // assert + await testScreenshot(page, 'scheduler-week-cell-hover-state.png', { element: scheduler.workSpace }); + + await scheduler.getDateTableCell(0, 1).hover(); + await expect(scheduler.getDateTableCell(0, 1)) + .toHaveClass(classMatcher(CELL_STATE_CLASS.hover)); + }); + + test('Check cell active state', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + views: ['week'], + currentView: 'week', + currentDate: new Date(2019, 4, 1), + height: 500, + }); + + // arrange + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const firstDateTableCell = scheduler.getDateTableCell(0, 0); + + // act + await firstDateTableCell.hover(); + await expect(firstDateTableCell).toHaveClass(classMatcher(CELL_STATE_CLASS.hover)); + await firstDateTableCell.dispatchEvent('mousedown'); + await expect(firstDateTableCell).toHaveClass(classMatcher(CELL_STATE_CLASS.active)); + + // assert + await testScreenshot(page, 'scheduler-week-cell-active-state.png', { element: scheduler.workSpace }); + + await firstDateTableCell.dispatchEvent('mouseup'); + await expect(firstDateTableCell).not.toHaveClass(classMatcher(CELL_STATE_CLASS.active)); + await scheduler.getDateTableCell(0, 1).hover(); + await expect(scheduler.getDateTableCell(0, 1)) + .toHaveClass(classMatcher(CELL_STATE_CLASS.hover)); + }); + + [ + 'day', + 'week', + 'workWeek', + 'month', + ].forEach((viewName) => { + test(`[T1225772]: should not have the horizontal scroll in horizontal views when the crossScrollingEnabled: true (view:${viewName})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: viewName, + currentDate: '2024-01-01T00:00:00', + crossScrollingEnabled: true, + height: 300, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect + .poll(() => hasHorizontalScroll(scheduler.workspaceScrollable), { message: 'workspace has the horizontal scrollbar' }) + .toBe(false); + }); + }); + + // NOTE: Moved "as is" from the QUnit integration.resources.tests (see history) + test('[T716993]: should has horizontal scrollbar with multiple resources and fixed height container', async ({ page }) => { + const resourcesDataSource = getResourcesDataSource(10); + + await insertStylesheetRulesToPage(page, FIXED_PARENT_CONTAINER_SIZE); + await createWidget(page, 'dxScheduler', { + dataSource: [], + groups: ['id'], + resources: [{ + dataSource: resourcesDataSource, + displayExpr: 'name', + valueExpr: 'id', + fieldExpr: 'id', + allowMultiple: false, + }], + crossScrollingEnabled: true, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect + .poll(() => hasHorizontalScroll(scheduler.workspaceScrollable), { message: 'workspace hasn\'t the horizontal scrollbar' }) + .toBe(true); + }); + + test('Scheduler appointments should change color on update resources', async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource: [{ + text: 'Website Re-Design Plan', + startDate: new Date('2021-03-29T16:30:00.000Z'), + endDate: new Date('2021-03-29T18:30:00.000Z'), + resource: 1, + }], + views: ['week', 'month'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + startDayHour: 9, + height: 730, + resources: [{ + fieldExpr: 'resource', + dataSource: [{ id: 1, text: 'res 1', color: 'red' }], + }], + }, '#otherContainer'); + await createWidget(page, 'dxButton', () => ({ + text: 'Change resources', + onClick() { + const schedulerWidget = ($('#otherContainer') as any).dxScheduler('instance'); + schedulerWidget.option('resources', [{ + fieldExpr: 'resource', + dataSource: [{ id: 1, text: 'new res 1', color: 'pink' }], + }]); + schedulerWidget.getDataSource().reload(); + }, + }), '#container'); + + const button = new Button(page, '#container'); + const scheduler = new Scheduler(page, '#otherContainer'); + + await button.element.click(); + + await testScreenshot(page, 'scheduler-appointments-should-update-color.png', { element: scheduler.workSpace }); + }); +}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/helpers/generateAppointments.ts b/e2e/playwright/tests/scheduler/helpers/generateAppointments.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/helpers/generateAppointments.ts rename to e2e/playwright/tests/scheduler/helpers/generateAppointments.ts diff --git a/e2e/testcafe-devextreme/tests/scheduler/helpers/generateAppointmentsWithResources.ts b/e2e/playwright/tests/scheduler/helpers/generateAppointmentsWithResources.ts similarity index 100% rename from e2e/testcafe-devextreme/tests/scheduler/helpers/generateAppointmentsWithResources.ts rename to e2e/playwright/tests/scheduler/helpers/generateAppointmentsWithResources.ts diff --git a/e2e/playwright/tests/scheduler/helpers/utils.ts b/e2e/playwright/tests/scheduler/helpers/utils.ts new file mode 100644 index 000000000000..a339adfd5de4 --- /dev/null +++ b/e2e/playwright/tests/scheduler/helpers/utils.ts @@ -0,0 +1,25 @@ +import type { Page } from '@playwright/test'; + +const SCHEDULER_SELECTOR = '#container'; + +export const scrollTo = async (page: Page, x: number, y: number): Promise => page.evaluate( + ({ selector, left, top }) => { + const instance = ($(selector) as any).dxScheduler('instance'); + + instance.getWorkSpaceScrollable().scrollTo({ top, left }); + }, + { selector: SCHEDULER_SELECTOR, left: x, top: y }, +); + +export const scrollToDate = async ( + page: Page, + date: Date, + groups?: Record, +): Promise => page.evaluate( + ({ selector, targetDate, targetGroups }) => { + const instance = ($(selector) as any).dxScheduler('instance'); + + instance.scrollTo(targetDate, targetGroups); + }, + { selector: SCHEDULER_SELECTOR, targetDate: date, targetGroups: groups }, +); diff --git a/e2e/playwright/tests/scheduler/timezones/appointmentCollectorTimezone.spec.ts b/e2e/playwright/tests/scheduler/timezones/appointmentCollectorTimezone.spec.ts new file mode 100644 index 000000000000..0f488799e9d9 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/appointmentCollectorTimezone.spec.ts @@ -0,0 +1,54 @@ +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../helpers/timezones'; +import Scheduler from '../../../models/scheduler'; + +test.describe('Scheduler - Appointment Collector Timezone', () => { + [ + MACHINE_TIMEZONES.EuropeBerlin, + ].forEach((machineTimezone) => { + getTimezoneTest(machineTimezone)( + 'Appointment collector button should have correct date', + async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone: 'America/Los_Angeles', + dataSource: [ + { + text: 'Website Re-Design Plan', + startDate: new Date('2021-03-05T15:30:00.000Z'), + endDate: new Date('2021-03-05T17:00:00.000Z'), + }, + { + text: 'Complete Shipper Selection Form', + startDate: new Date('2021-03-05T15:30:00.000Z'), + endDate: new Date('2021-03-05T17:00:00.000Z'), + }, + { + text: 'Upgrade Server Hardware', + startDate: new Date('2021-03-05T19:00:00.000Z'), + endDate: new Date('2021-03-05T21:15:00.000Z'), + }, + { + text: 'Upgrade Personal Computers', + startDate: new Date('2021-03-05T23:45:00.000Z'), + endDate: new Date('2021-03-06T01:30:00.000Z'), + }, + ], + currentView: 'month', + currentDate: new Date(2021, 2, 1), + maxAppointmentsPerCell: 3, + }); + + const scheduler = new Scheduler(page, '#container'); + const schedulerCollector = scheduler.collectors.get(0); + const expectedDate = 'March 5, 2021'; + + await expect(scheduler.element).toBeAttached(); + await expect( + schedulerCollector.element, + `Collector should display ${expectedDate} after timezone conversion`, + ).toHaveAttribute('aria-roledescription', new RegExp(expectedDate)); + }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/check.spec.ts b/e2e/playwright/tests/scheduler/timezones/check.spec.ts new file mode 100644 index 000000000000..253b3adaa968 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/check.spec.ts @@ -0,0 +1,20 @@ +import { expect, test } from '../../../fixtures'; +import type { MachineTimezone } from '../../../helpers/timezones'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../helpers/timezones'; + +type CheckType = [MachineTimezone, string]; +const checks: CheckType[] = [ + [MACHINE_TIMEZONES.AmericaLosAngeles, 'Mon Jan 01 2024 10:00:00 GMT-0800 (Pacific Standard Time)'], + [MACHINE_TIMEZONES.EuropeBerlin, 'Mon Jan 01 2024 10:00:00 GMT+0100 (Central European Standard Time)'], +]; + +test.describe('Runner machine timezone checks', () => { + checks.forEach(([timezone, expectedResult]) => { + getTimezoneTest(timezone)(`${timezone} check`, async ({ page }) => { + const dateFromBrowser = await page.evaluate(() => new Date(2024, 0, 1, 10).toString()); + + expect(dateFromBrowser).toBe(expectedResult); + expect(new Date(2024, 0, 1, 10).toString()).toBe(expectedResult); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/dragAndDropDst.spec.ts b/e2e/playwright/tests/scheduler/timezones/dragAndDropDst.spec.ts new file mode 100644 index 000000000000..f46dda8e372b --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/dragAndDropDst.spec.ts @@ -0,0 +1,225 @@ +import type { Locator, Page } from '@playwright/test'; +import type { Appointment, Properties } from 'devextreme/ui/scheduler'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; +import { dragToElement } from '../../../helpers/dragUtils'; +import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; +import type { MachineTimezone } from '../../../helpers/timezones'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../helpers/timezones'; +import Scheduler from '../../../models/scheduler'; + +interface TestCase { + timezone: MachineTimezone; + season: 'summer' | 'winter'; + currentDate: string; + startDate: Date; + cellIdxArray: [rowIdx: number, colIdx: number][]; + expectedTopPosition: number[]; +} + +const SCHEDULER_SELECTOR = '#container'; +const APPOINTMENT_TEXT = 'Appointment'; +// TODO remove first two selectors after fix of the currentTimeIndicator option +const CUSTOM_CSS = ` +#container .dx-scheduler-header-panel-cell { + color: rgba(0,0,0,.54); +} + +#container .dx-scheduler-header-panel-cell::before { + display: none; +} + +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +// NOTE: half of an regular (1 hour) appointment size +const DRAG_Y_OFFSET_PX = 12; + +const getAppointmentFromStartDate = (startDate: Date, offset: number): Appointment => { + const minuteMs = 60000; + const appointmentDurationMs = 60 * minuteMs; // one hour + + return { + startDate: new Date(startDate.getTime() + offset * minuteMs), + endDate: new Date(startDate.getTime() + offset * minuteMs + appointmentDurationMs), + text: APPOINTMENT_TEXT, + }; +}; + +const REGULAR_HEIGHT = [25, 25, 25, 25, 25, 25, 25, 25]; +const SUMMER_HEIGHT: Record = { + 0: [25, 50, 50, 25, 25, 25, 25, 25], + [-360]: [25, 25, 25, 25, 25, 25, 25, 50], +}; + +const getExpectedHeight = (season: TestCase['season'], offset: number): number[] => ( + season === 'summer' ? SUMMER_HEIGHT[offset] ?? REGULAR_HEIGHT : REGULAR_HEIGHT +); + +interface Geometry { + top: number; + height: number; +} + +const getGeometry = (element: Locator): Promise => element.evaluate((node) => { + const { top, height } = node.getBoundingClientRect(); + + return { top, height }; +}); + +const getUpdatedCount = (page: Page): Promise => page.evaluate( + () => (window as any).updatedCount, +); + +const BERLIN_SUMMER_CASE: TestCase = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + season: 'summer', + currentDate: '2024-03-31', + startDate: new Date('2024-03-30T23:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + // NOTE: 25 instead of the 50 okay here at the idx = 2 is ok here + // We cannot drag-n-drop appointment to the 02:00 -> 03:00 Berlin time + // Because this time interval doesn't exist in this timezone + // More details here: https://www.timeanddate.com/time/change/germany/berlin (31 Mar 2024) + expectedTopPosition: [0, 25, 25, 75, 100, 125, 150, 175], +}; + +const BERLIN_SUMMER_CASE_OFFSET: TestCase = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + season: 'summer', + currentDate: '2024-03-31', + startDate: new Date('2024-03-30T23:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], +}; + +const BERLIN_WINTER_CASE: TestCase = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + season: 'winter', + currentDate: '2024-10-27', + startDate: new Date('2024-10-26T22:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], +}; + +const LOS_ANGELES_SUMMER_CASE: TestCase = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + season: 'summer', + currentDate: '2024-03-10', + startDate: new Date('2024-03-10T08:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + // NOTE: 25 instead of the 50 okay here at the idx = 2 is ok here + // We cannot drag-n-drop appointment to the 02:00 -> 03:00 Los Angeles time + // Because this time interval doesn't exist in this timezone + // More details here: https://www.timeanddate.com/time/change/usa/los-angeles (10 Mar 2024) + expectedTopPosition: [0, 25, 25, 75, 100, 125, 150, 175], +}; + +const LOS_ANGELES_SUMMER_CASE_OFFSET: TestCase = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + season: 'summer', + currentDate: '2024-03-10', + startDate: new Date('2024-03-10T08:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], +}; + +const LOS_ANGELES_WINTER_CASE: TestCase = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + season: 'winter', + currentDate: '2024-11-03', + startDate: new Date('2024-11-03T07:00:00Z'), + cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), + expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], +}; + +const ZERO_OFFSET_TEST_CASES = generateOptionMatrix({ + offset: [0], + testCase: [ + BERLIN_SUMMER_CASE, + BERLIN_WINTER_CASE, + LOS_ANGELES_SUMMER_CASE, + LOS_ANGELES_WINTER_CASE, + ], +}); + +const OFFSET_TEST_CASES = generateOptionMatrix({ + offset: [-360, 360], + testCase: [ + BERLIN_SUMMER_CASE_OFFSET, + BERLIN_WINTER_CASE, + LOS_ANGELES_SUMMER_CASE_OFFSET, + LOS_ANGELES_WINTER_CASE, + ], +}); + +test.describe('Scheduler render during DST', () => { + [ + ...ZERO_OFFSET_TEST_CASES, + ...OFFSET_TEST_CASES, + ].forEach(({ + offset, + testCase: { + timezone, + season, + currentDate, + startDate, + cellIdxArray, + expectedTopPosition, + }, + }) => { + getTimezoneTest(timezone)(`Should drag-n-drop appointment correctly during around DST (${timezone}, ${season}, ${offset})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, CUSTOM_CSS); + await createWidget(page, 'dxScheduler', (options: Properties) => { + (window as any).updatedCount = 0; + + return { + ...options, + onAppointmentUpdated: () => { + (window as any).updatedCount += 1; + }, + }; + }, SCHEDULER_SELECTOR, { + arg: { + timeZone: timezone, + dataSource: [getAppointmentFromStartDate(startDate, offset)], + currentView: 'week', + currentDate, + offset, + showCurrentTimeIndicator: false, + showAllDayPanel: false, + firstDayOfWeek: 4, + cellDuration: 60, + height: 800, + }, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TEXT); + const [[firstCellRowIdx, firstCellColIdx]] = cellIdxArray; + const firstCell = scheduler.getDateTableCell(firstCellRowIdx, firstCellColIdx); + const { top: firstCellTop } = await getGeometry(firstCell); + const expectedHeight = getExpectedHeight(season, offset); + + for (const [idx, [rowIdx, colIdx]] of cellIdxArray.entries()) { + const cell = scheduler.getDateTableCell(rowIdx, colIdx); + const updatedCount = await getUpdatedCount(page); + + await dragToElement(page, appointment.element, cell, { offsetY: DRAG_Y_OFFSET_PX }); + + if (idx > 0) { + await expect.poll(() => getUpdatedCount(page)).toBeGreaterThan(updatedCount); + } + + await expect + .poll(async () => { + const { top, height } = await getGeometry(appointment.element); + + return { top: top - firstCellTop, height }; + }) + .toEqual({ top: expectedTopPosition[idx], height: expectedHeight[idx] }); + } + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png new file mode 100644 index 000000000000..04076b83be4f Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..35dbb1f71712 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png new file mode 100644 index 000000000000..24417da3520b Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png new file mode 100644 index 000000000000..841c5aea5a9b Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..67f29bb6da86 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png new file mode 100644 index 000000000000..08abf17fc9b8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png new file mode 100644 index 000000000000..04076b83be4f Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..35dbb1f71712 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png new file mode 100644 index 000000000000..24417da3520b Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png new file mode 100644 index 000000000000..bdef53d84ca5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..77477ed342c3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png new file mode 100644 index 000000000000..a3cdfa33d9c4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..6c0a5973cdb2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f3c3bc49a66c Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..45c9371b60e2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..d17a1d6c789a Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..3d5c62340778 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..02742d9d0d1a Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..59e89fb96d76 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6e2153392160 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..826ded0943f0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..7f3cc672bbe1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1f44cba2c297 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..820be3994282 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..1d268e67036d Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..305de3e9934a Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..85ab54dd1d34 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..ac7c0d46be1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8fb62ed0302f Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..37ad1e85520b Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..e699a892cf93 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a2e04b7b8b2e Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..a801e797cbe7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..700b90ea931b Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..01ab5deb93ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..ab6b677140f7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..5db45afb7d7d Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c7a3cf22f4de Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..6e216dc32f75 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..708027766a91 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e2d557fbc7a5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..055ef2508af8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..59e25d8eb5d2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4c45abb8ccfa Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..924d8f6fed3f Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png new file mode 100644 index 000000000000..bb18456040df Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ca564238bc7e Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png new file mode 100644 index 000000000000..b93f659fee27 Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416.spec.ts b/e2e/playwright/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416.spec.ts new file mode 100644 index 000000000000..0b2ede4e65e1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416.spec.ts @@ -0,0 +1,74 @@ +import { expect, test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { generateOptionMatrix } from '../../../../helpers/generateOptionMatrix'; +import type { MachineTimezone } from '../../../../helpers/timezones'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../../helpers/timezones'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const MS_IN_MINUTE = 60000; +const MS_IN_HOUR = MS_IN_MINUTE * 60; +const APPOINTMENT_TEXT = 'TEST_APPT'; + +const getAppointments = ( + startDate: Date, + currentView: string, +) => [ + { + startDate, + endDate: new Date(startDate.getTime() + MS_IN_HOUR), + text: APPOINTMENT_TEXT, + recurrenceRule: currentView === 'week' ? 'FREQ=DAILY' : 'FREQ=WEEKLY;BYDAY=FR', + }, +]; + +const getFirstDayOfWeek = (currentView: string) => (currentView === 'week' ? 4 : 0); +const getAppointmentsCount = (currentView: string) => (currentView === 'week' ? 7 : 6); + +test.describe('Scheduler exclude from recurrence', () => { + generateOptionMatrix({ + timeZone: [undefined, 'America/New_York'], + currentView: ['week', 'month'], + location: [ + [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-01-01T12:00:00Z')], + [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-01-01T12:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-01-01T12:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-01-01T12:00:00Z')], + ] as [MachineTimezone, string, string, Date][], + }).forEach(({ + timeZone, + currentView, + location: [machineTimezone, caseName, currentDate, startDate], + }) => { + const dataSource = getAppointments(startDate, currentView); + const firstDayOfWeek = getFirstDayOfWeek(currentView); + const appointmentsCount = getAppointmentsCount(currentView); + + getTimezoneTest(machineTimezone)( + `Should correctly exclude appointment from recurrence (${currentView}, ${timeZone}, ${machineTimezone}, ${caseName})`, + async ({ page }) => { + await createWidget(page, 'dxScheduler', { + timeZone, + dataSource, + currentDate, + currentView, + firstDayOfWeek, + recurrenceEditMode: 'occurrence', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.appointments).toHaveCount(appointmentsCount); + + for (let idx = 0; idx < appointmentsCount; idx += 1) { + await scheduler.getAppointment(APPOINTMENT_TEXT, 0).element.click(); + await scheduler.appointmentTooltip.deleteButton.click(); + + await expect(scheduler.appointments).toHaveCount(appointmentsCount - (idx + 1)); + } + + await expect(scheduler.appointments).toHaveCount(0); + }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/renderCrossDst.spec.ts b/e2e/playwright/tests/scheduler/timezones/renderCrossDst.spec.ts new file mode 100644 index 000000000000..a1c9d2bdc7d6 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/renderCrossDst.spec.ts @@ -0,0 +1,312 @@ +import { test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; +import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; +import { testScreenshot } from '../../../helpers/screenshots'; +import { getTimezoneTest, MACHINE_TIMEZONES, normalizeTimezoneName } from '../../../helpers/timezones'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +// TODO remove first two selectors after fix of the currentTimeIndicator option +const CUSTOM_CSS = ` +#container .dx-scheduler-header-panel-cell { + color: rgba(0,0,0,.54); +} + +#container .dx-scheduler-header-panel-cell::before { + display: none; +} + +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; + +const SUMMER_BERLIN_LOCAL_DATE_CASE = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + caseName: 'summer-local', + currentDate: '2024-03-31', + dataSource: [ + { + text: '#0', + startDate: '2024-03-30T00:00:00', + endDate: '2024-03-30T05:00:00', + }, + { + text: '#1', + startDate: '2024-03-31T00:00:00', + endDate: '2024-03-31T05:00:00', + }, + { + text: '#2', + startDate: '2024-04-01T00:00:00', + endDate: '2024-04-01T05:00:00', + }, + { + text: 'Recurrent', + startDate: '2020-01-01T00:00', + endDate: '2020-01-01T05:00', + recurrenceRule: 'FREQ=DAILY', + }, + ], +}; + +const SUMMER_BERLIN_UTC_DATE_CASE = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + caseName: 'summer-utc', + currentDate: '2024-03-31', + dataSource: [ + { + text: '#0', + startDate: '2024-03-29T23:00:00Z', + endDate: '2024-03-30T04:00:00Z', + }, + { + text: '#1', + startDate: '2024-03-30T23:00:00Z', + endDate: '2024-03-31T04:00:00Z', + }, + { + text: '#2', + startDate: '2024-03-31T23:00:00Z', + endDate: '2024-04-01T04:00:00Z', + }, + // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) + // { + // text: 'Recurrent', + // startDate: '2020-01-01T23:00Z', + // endDate: '2020-01-02T04:00Z', + // recurrenceRule: 'FREQ=DAILY', + // }, + ], +}; + +const WINTER_BERLIN_LOCAL_DATE_CASE = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + caseName: 'winter-local', + currentDate: '2024-10-27', + dataSource: [ + { + text: '#0', + startDate: '2024-10-26T01:00:00', + endDate: '2024-10-26T04:00:00', + }, + { + text: '#1', + startDate: '2024-10-27T01:00:00', + endDate: '2024-10-27T04:00:00', + }, + { + text: '#2', + startDate: '2024-10-28T01:00:00', + endDate: '2024-10-28T04:00:00', + }, + { + text: 'Recurrent', + startDate: '2020-01-01T01:00', + endDate: '2020-01-01T04:00', + recurrenceRule: 'FREQ=DAILY', + }, + ], +}; + +const WINTER_BERLIN_UTC_DATE_CASE = { + timezone: MACHINE_TIMEZONES.EuropeBerlin, + caseName: 'winter-utc', + currentDate: '2024-10-27', + dataSource: [ + { + text: '#0', + startDate: '2024-10-25T23:00:00Z', + endDate: '2024-10-26T04:00:00Z', + }, + { + text: '#1', + startDate: '2024-10-26T23:00:00Z', + endDate: '2024-10-27T04:00:00Z', + }, + { + text: '#2', + startDate: '2024-10-27T23:00:00Z', + endDate: '2024-10-28T04:00:00Z', + }, + // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) + // { + // text: 'Recurrent', + // startDate: '2020-01-01T23:00Z', + // endDate: '2020-01-02T04:00Z', + // recurrenceRule: 'FREQ=DAILY', + // }, + ], +}; + +const SUMMER_LOS_ANGELES_LOCAL_DATE_CASE = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + caseName: 'summer-local', + currentDate: '2024-03-10', + dataSource: [ + { + text: '#0', + startDate: '2024-03-09T00:00:00', + endDate: '2024-03-09T05:00:00', + }, + { + text: '#1', + startDate: '2024-03-10T00:00:00', + endDate: '2024-03-10T05:00:00', + }, + { + text: '#2', + startDate: '2024-03-11T00:00:00', + endDate: '2024-03-11T05:00:00', + }, + { + text: 'Recurrent', + startDate: '2020-01-01T00:00', + endDate: '2020-01-01T05:00', + recurrenceRule: 'FREQ=DAILY', + }, + ], +}; + +const SUMMER_LOS_ANGELES_UTC_DATE_CASE = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + caseName: 'summer-utc', + currentDate: '2024-03-10', + dataSource: [ + { + text: '#0', + startDate: '2024-03-09T08:00:00Z', + endDate: '2024-03-09T13:00:00Z', + }, + { + text: '#1', + startDate: '2024-03-10T08:00:00Z', + endDate: '2024-03-10T13:00:00Z', + }, + { + text: '#2', + startDate: '2024-03-11T08:00:00Z', + endDate: '2024-03-11T13:00:00Z', + }, + // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) + // { + // text: 'Recurrent', + // startDate: '2020-01-01T08:00Z', + // endDate: '2020-01-01T13:00Z', + // recurrenceRule: 'FREQ=DAILY', + // }, + ], +}; + +const WINTER_LOS_ANGELES_LOCAL_DATE_CASE = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + caseName: 'winter-local', + currentDate: '2024-11-03', + dataSource: [ + { + text: '#0', + startDate: '2024-11-02T00:00:00', + endDate: '2024-11-02T05:00:00', + }, + { + text: '#1', + startDate: '2024-11-03T00:00:00', + endDate: '2024-11-03T05:00:00', + }, + { + text: '#2', + startDate: '2024-11-04T00:00:00', + endDate: '2024-11-04T05:00:00', + }, + { + text: 'Recurrent', + startDate: '2020-01-01T00:00', + endDate: '2020-01-01T05:00', + recurrenceRule: 'FREQ=DAILY', + }, + ], +}; + +const WINTER_LOS_ANGELES_UTC_DATE_CASE = { + timezone: MACHINE_TIMEZONES.AmericaLosAngeles, + caseName: 'winter-utc', + currentDate: '2024-11-03', + dataSource: [ + { + text: '#0', + startDate: '2024-11-02T08:00:00Z', + endDate: '2024-11-02T13:00:00Z', + }, + { + text: '#1', + startDate: '2024-11-03T08:00:00Z', + endDate: '2024-11-03T13:00:00Z', + }, + { + text: '#2', + startDate: '2024-11-04T08:00:00Z', + endDate: '2024-11-04T13:00:00Z', + }, + // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) + // { + // text: 'Recurrent', + // startDate: '2020-01-01T00:00Z', + // endDate: '2020-01-01T05:00Z', + // recurrenceRule: 'FREQ=DAILY', + // }, + ], +}; + +test.describe('Scheduler render during DST', () => { + generateOptionMatrix({ + currentView: ['week'], + offset: [-360, 0, 360], + location: [ + // Europe/Berlin + SUMMER_BERLIN_LOCAL_DATE_CASE, + SUMMER_BERLIN_UTC_DATE_CASE, + WINTER_BERLIN_LOCAL_DATE_CASE, + WINTER_BERLIN_UTC_DATE_CASE, + // America/Los Angeles + SUMMER_LOS_ANGELES_LOCAL_DATE_CASE, + SUMMER_LOS_ANGELES_UTC_DATE_CASE, + WINTER_LOS_ANGELES_LOCAL_DATE_CASE, + WINTER_LOS_ANGELES_UTC_DATE_CASE, + ], + }).forEach(({ + currentView, + offset, + location: { + timezone, + caseName, + currentDate, + dataSource, + }, + }) => { + getTimezoneTest(timezone)( + `Should correctly render appointments with local machine date crossing DST (${timezone}, ${caseName}, ${offset})`, + async ({ page }) => { + await insertStylesheetRulesToPage(page, CUSTOM_CSS); + await createWidget(page, 'dxScheduler', { + dataSource, + currentView, + currentDate, + offset, + showCurrentTimeIndicator: false, + firstDayOfWeek: 4, + cellDuration: 60, + height: 800, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const timezoneName = normalizeTimezoneName(timezone); + + await testScreenshot( + page, + `${currentView}_appts-render-cross-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, + { element: scheduler.workSpace }, + ); + }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/renderDst.spec.ts b/e2e/playwright/tests/scheduler/timezones/renderDst.spec.ts new file mode 100644 index 000000000000..7536e06afdaf --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/renderDst.spec.ts @@ -0,0 +1,134 @@ +import { test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; +import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; +import { testScreenshot } from '../../../helpers/screenshots'; +import type { MachineTimezone } from '../../../helpers/timezones'; +import { getTimezoneTest, MACHINE_TIMEZONES, normalizeTimezoneName } from '../../../helpers/timezones'; +import Scheduler from '../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +// TODO remove first two selectors after fix of the currentTimeIndicator option +const CUSTOM_CSS = ` +#container .dx-scheduler-header-panel-cell { + color: rgba(0,0,0,.54); +} + +#container .dx-scheduler-header-panel-cell::before { + display: none; +} + +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const MS_IN_MINUTE = 60000; + +const generateAppointments = ( + startDate: Date, + durationMin: number, + count: number, + textPrefix = '', +) => new Array(count).fill(null).map((_, idx) => { + const currentStartDate = new Date(startDate.getTime() + durationMin * MS_IN_MINUTE * idx); + const currentEndDate = new Date(currentStartDate.getTime() + durationMin * MS_IN_MINUTE); + + return { + text: `${textPrefix}${idx}`, + startDate: currentStartDate, + endDate: currentEndDate, + }; +}); + +test.describe('Scheduler render during DST', () => { + generateOptionMatrix({ + currentView: ['week'], + offset: [-360, 0, 360], + location: [ + [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-03-28T23:00:00Z')], + [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-10-24T22:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-03-08T08:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-11-01T08:00:00Z')], + ] as [MachineTimezone, string, string, Date][], + }).forEach(({ + currentView, + offset, + location: [timezone, caseName, currentDate, startDate], + }) => { + const dataSource = generateAppointments(startDate, 60, 120); + + getTimezoneTest(timezone)( + `Should correctly render hourly appointments at DST (${timezone}, ${caseName}, ${offset})`, + async ({ page }) => { + await insertStylesheetRulesToPage(page, CUSTOM_CSS); + await createWidget(page, 'dxScheduler', { + timeZone: timezone, + dataSource, + currentView, + currentDate, + offset, + showCurrentTimeIndicator: false, + firstDayOfWeek: 4, + cellDuration: 60, + height: 800, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const timezoneName = normalizeTimezoneName(timezone); + + await testScreenshot( + page, + `${currentView}_usual-appts-render-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, + { element: scheduler.workSpace }, + ); + }, + ); + }); + + generateOptionMatrix({ + currentView: ['day'], + offset: [-60, 0, 60], + location: [ + [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-03-30T23:00:00Z')], + [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-10-26T22:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-03-10T08:00:00Z')], + [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-11-03T07:00:00Z')], + ] as [MachineTimezone, string, string, Date][], + }).forEach(({ + currentView, + offset, + location: [timezone, caseName, currentDate, startDate], + }) => { + const dataSource = [ + ...generateAppointments(startDate, 60, 5, 'A_'), + ...generateAppointments(startDate, 30, 10, 'B_'), + ]; + + getTimezoneTest(timezone)( + `Should resolve appointment start cell correctly during DST (${timezone}, ${caseName}, ${offset})`, + async ({ page }) => { + await insertStylesheetRulesToPage(page, CUSTOM_CSS); + await createWidget(page, 'dxScheduler', { + timeZone: timezone, + dataSource, + currentView, + currentDate, + offset, + showCurrentTimeIndicator: false, + maxAppointmentsPerCell: 'unlimited', + firstDayOfWeek: 4, + cellDuration: 30, + height: 800, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const timezoneName = normalizeTimezoneName(timezone); + + await testScreenshot( + page, + `${currentView}_usual-appts-start-cell-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, + { element: scheduler.workSpace }, + ); + }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1255474.spec.ts b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1255474.spec.ts new file mode 100644 index 000000000000..e648d86b2241 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1255474.spec.ts @@ -0,0 +1,42 @@ +import { test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../../helpers/timezones'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +const appointmentText = 'Book Flights to San Fran for Sales Trip'; + +test.describe('Resize appointment that cross DTC time', () => { + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)('Resize appointment that cross DTC time', async ({ page }) => { + await createScheduler(page, { + timeZone: 'America/Los_Angeles', + views: ['week'], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + allDayPanelMode: 'allDay', + height: 600, + width: 800, + firstDayOfWeek: 7, + dataSource: [{ + text: appointmentText, + startDate: new Date('2021-03-28T17:00:00.000Z'), + endDate: new Date('2021-03-28T18:00:00.000Z'), + TimeZone: 'Europe/Belgrade', + allDay: true, + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment(appointmentText); + + await dragToOffset(page, appointment.resizableHandle.right, 100, 0); + await dragToOffset(page, appointment.resizableHandle.right, -100, 0); + + await testScreenshot( + page, + 'T1255474-resize-all-day-appointment.png', + { element: scheduler.element }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1294528.spec.ts b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1294528.spec.ts new file mode 100644 index 000000000000..b5c30fbabaa5 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/T1294528.spec.ts @@ -0,0 +1,188 @@ +import { expect, test } from '../../../../fixtures'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../../helpers/timezones'; +import Scheduler from '../../../../models/scheduler'; +import createScheduler from './init/widget.setup'; + +test.describe('Resize all day panel appointments', () => { + [true, false].forEach((rtlEnabled) => { + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)(`Shrink long appointment endDate rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2015, 1, 9), + currentView: 'week', + firstDayOfWeek: 0, + rtlEnabled, + height: 400, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 10, 10), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + + if (rtlEnabled) { + await dragToOffset(page, right, -100, 0); + } else { + await dragToOffset(page, left, 100, 0); + } + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 10, 2015, 12:00 AM - 10:00 AM'); + }); + + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)(`Shrink long appointment startDate rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2015, 1, 9), + currentView: 'week', + firstDayOfWeek: 0, + rtlEnabled, + height: 400, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 10, 10), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + + if (rtlEnabled) { + await dragToOffset(page, left, 100, 0); + } else { + await dragToOffset(page, right, -100, 0); + } + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 8:00 AM - February 10, 2015, 12:00 AM'); + }); + + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)(`Resize long appointment endDate with offset rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, { + timeZone: 'Europe/Berlin', + dataSource: [{ + text: 'Appointment', + startDate: new Date('2021-03-30T03:00:00.000Z'), + endDate: new Date('2021-04-01T03:00:00.000Z'), + }], + currentView: 'week', + currentDate: new Date(2021, 2, 28), + height: 400, + offset: 360, + rtlEnabled, + firstDayOfWeek: 0, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + const drag = async (): Promise => (rtlEnabled + ? dragToOffset(page, left, 100, 0) + : dragToOffset(page, right, -100, 0)); + + await drag(); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: March 30, 2021, 5:00 AM - March 31, 2021, 6:00 AM'); + await drag(); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: March 30, 2021, 5:00 AM - 6:00 AM'); + }); + + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)(`Resize long appointment startDate with offset rtlEnabled=${rtlEnabled}`, async ({ page }) => { + await createScheduler(page, { + dataSource: [{ + text: 'Appointment', + startDate: new Date('2021-03-30T03:00:00.000Z'), + endDate: new Date('2021-04-01T03:00:00.000Z'), + }], + currentView: 'week', + currentDate: new Date('2021-03-30T03:00:00.000Z'), + height: 400, + offset: 360, + rtlEnabled, + firstDayOfWeek: 0, + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + const drag = async (): Promise => (rtlEnabled + ? dragToOffset(page, right, -100, 0) + : dragToOffset(page, left, 100, 0)); + + await drag(); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: March 30, 2021, 6:00 AM - April 1, 2021, 5:00 AM'); + await drag(); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: March 31, 2021, 6:00 AM - April 1, 2021, 5:00 AM'); + }); + }); + + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)('Resize long appointment rtlEnabled=true', async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2015, 1, 9), + currentView: 'week', + firstDayOfWeek: 0, + rtlEnabled: true, + height: 400, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 10, 10), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + + await dragToOffset(page, right, 100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 8, 2015, 12:00 AM - February 10, 2015, 10:00 AM'); + await dragToOffset(page, right, -100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 12:00 AM - February 10, 2015, 10:00 AM'); + await dragToOffset(page, left, -100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 12:00 AM - February 12, 2015, 12:00 AM'); + await dragToOffset(page, left, 100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); + }); + + getTimezoneTest(MACHINE_TIMEZONES.EuropeBerlin)('Resize long appointment rtlEnabled=false', async ({ page }) => { + await createScheduler(page, { + currentDate: new Date(2015, 1, 9), + currentView: 'week', + firstDayOfWeek: 0, + rtlEnabled: false, + height: 400, + dataSource: [{ + text: 'Appointment', + startDate: new Date(2015, 1, 9, 8), + endDate: new Date(2015, 1, 10, 10), + }], + }); + + const scheduler = new Scheduler(page, '#container'); + const appointment = scheduler.getAppointment('Appointment'); + const { left, right } = appointment.resizableHandle; + + await dragToOffset(page, right, 100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 8:00 AM - February 12, 2015, 12:00 AM'); + await dragToOffset(page, right, -100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 8:00 AM - February 11, 2015, 12:00 AM'); + await dragToOffset(page, left, -100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 8, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); + await dragToOffset(page, left, 100, 0); + await expect(appointment.element) + .toHaveAttribute('aria-label', 'Appointment: February 9, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); + }); +}); diff --git a/e2e/playwright/tests/scheduler/timezones/resizeAppointments/etalons/T1255474-resize-all-day-appointment (fluent.blue.light).png b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/etalons/T1255474-resize-all-day-appointment (fluent.blue.light).png new file mode 100644 index 000000000000..e12489402f2e Binary files /dev/null and b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/etalons/T1255474-resize-all-day-appointment (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/timezones/resizeAppointments/init/widget.setup.ts b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/init/widget.setup.ts new file mode 100644 index 000000000000..e059686ad1d1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/timezones/resizeAppointments/init/widget.setup.ts @@ -0,0 +1,31 @@ +import type { Page } from '@playwright/test'; +import { createWidget } from '../../../../../helpers/createWidget'; + +const resources = [ + { id: 0, color: '#e01e38' }, + { id: 1, color: '#f98322' }, + { id: 2, color: '#1e65e8' }, +]; + +export default async ( + page: Page, + options: Record = {}, +): Promise => createWidget(page, 'dxScheduler', { + views: ['day'], + dataSource: [], + resources: [ + { + fieldExpr: 'resourceId', + dataSource: resources, + label: 'Color', + }, + ], + width: 1402, + height: 833, + startDayHour: 9, + firstDayOfWeek: 1, + maxAppointmentsPerCell: 5, + currentView: 'day', + currentDate: new Date(2019, 3, 1), + ...options, +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/agenda.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/agenda.spec.ts new file mode 100644 index 000000000000..a4960b47bad2 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/agenda.spec.ts @@ -0,0 +1,44 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Offset: Agenda', () => { + [ + 0, + -240, + 240, + ].forEach((offset) => { + test(`Agenda view should not be affected by root offset option (offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2023-09-04T00:00:00', + endDate: '2023-09-04T02:00:00', + text: '#0 04: 00 -> 02', + }, + { + startDate: '2023-09-04T10:00:00', + endDate: '2023-09-04T12:00:00', + text: '#1 04: 10 -> 12', + }, + { + startDate: '2023-09-04T23:00:00', + endDate: '2023-09-05T01:00:00', + text: '#2 04: 22 -> 01', + }, + ], + currentView: 'agenda', + currentDate: '2023-09-03', + height: 800, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot(page, `offset_agenda-not-affected_offset-${offset}.png`, { element: scheduler.workSpace }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/apiCallbacks.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/apiCallbacks.spec.ts new file mode 100644 index 000000000000..b98fba750a2c --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/apiCallbacks.spec.ts @@ -0,0 +1,483 @@ +import type { Page } from '@playwright/test'; +import type { + AppointmentAddedEvent, + AppointmentAddingEvent, + AppointmentClickEvent, + AppointmentContextMenuEvent, + AppointmentDblClickEvent, + AppointmentDeletedEvent, + AppointmentDeletingEvent, + AppointmentFormOpeningEvent, + AppointmentRenderedEvent, + AppointmentTooltipShowingEvent, + AppointmentUpdatedEvent, + AppointmentUpdatingEvent, +} from 'devextreme/ui/scheduler'; +import { expect, test } from '../../../../fixtures'; +import type { WindowCallbackExtended } from '../../../../helpers/callbackTestHelper'; +import { CallbackTestHelper } from '../../../../helpers/callbackTestHelper'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const MINUTE_MS = 60000; +const APPOINTMENT_TITLE = 'Test'; +const API_CALLBACKS = { + appointmentAdding: 'onAppointmentAdding', + appointmentAdded: 'onAppointmentAdded', + appointmentClick: 'onAppointmentClick', + appointmentDblClick: 'onAppointmentDblClick', + appointmentTooltipShowing: 'onAppointmentTooltipShowing', + appointmentFormOpening: 'onAppointmentFormOpening', + appointmentDeleting: 'onAppointmentDeleting', + appointmentDeleted: 'onAppointmentDeleted', + appointmentUpdating: 'onAppointmentUpdating', + appointmentUpdated: 'onAppointmentUpdated', + appointmentContextMenu: 'onAppointmentContextMenu', + appointmentRendered: 'onAppointmentRendered', +}; + +const getCellDateWithOffset = (initialDateString: string, offset: number): string => { + const initialDate = new Date(initialDateString); + const cellDate = new Date(initialDate.getTime() + (offset * MINUTE_MS)); + const [result] = cellDate.toISOString().split('.'); + return result; +}; + +const getAppointmentAfterUpdate = (offset: number) => { + switch (offset) { + case 700: + return { + startDate: '2023-09-05T12:40:00', + endDate: '2023-09-05T13:10:00', + text: APPOINTMENT_TITLE, + allDay: false, + }; + case -700: + return { + startDate: '2023-09-05T12:20:00', + endDate: '2023-09-05T12:50:00', + text: APPOINTMENT_TITLE, + allDay: false, + }; + default: + return { + startDate: '2023-09-05T12:00:00', + endDate: '2023-09-05T12:30:00', + text: APPOINTMENT_TITLE, + allDay: false, + }; + } +}; + +const EXPECTED = { + appointmentData: { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: APPOINTMENT_TITLE, + }, + targetedAppointmentData: { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + displayStartDate: new Date('2023-09-06T12:30:00'), + displayEndDate: new Date('2023-09-06T13:00:00'), + text: APPOINTMENT_TITLE, + }, +}; + +interface WidgetArg { + offset: number; + title: string; +} + +const getFirstClientResult = async (page: Page, key: string): Promise => { + await expect + .poll(async () => (await CallbackTestHelper.getClientResults(page, key)).length) + .toBeGreaterThan(0); + + const [result] = await CallbackTestHelper.getClientResults(page, key); + + return result; +}; + +test.describe('Offset: Api callbacks', () => { + [ + 0, + -700, + 700, + ].forEach((offset) => { + const arg: WidgetArg = { offset, title: APPOINTMENT_TITLE }; + + test(`onAppointmentRendered (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentRendered, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentRendered: ({ + appointmentData, targetedAppointmentData, + }: AppointmentRenderedEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentRendered', { appointmentData, targetedAppointmentData }); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await expect(scheduler.getAppointment(APPOINTMENT_TITLE).element).toBeAttached(); + + const { appointmentData, targetedAppointmentData } = await getFirstClientResult( + page, + API_CALLBACKS.appointmentRendered, + ); + + expect(appointmentData).toEqual(EXPECTED.appointmentData); + expect(targetedAppointmentData).toEqual(EXPECTED.targetedAppointmentData); + }); + + test(`onAppointmentAdding and onAppointmentAdded (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentAdding, + API_CALLBACKS.appointmentAdded, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentAdding: ({ appointmentData }: AppointmentAddingEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentAdding', appointmentData); + }, + onAppointmentAdded: ({ appointmentData }: AppointmentAddedEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentAdded', appointmentData); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const cell = scheduler.getDateTableCell(1, 2); + + const expectedAppointmentData = { + allDay: false, + startDate: getCellDateWithOffset('2023-09-05T01:00:00Z', offset), + endDate: getCellDateWithOffset('2023-09-05T02:00:00Z', offset), + text: '', + recurrenceRule: '', + }; + + await cell.dblclick(); + await scheduler.appointmentPopup.saveButton.element.click(); + + const appointmentAddingData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentAdding, + ); + const appointmentAddedData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentAdded, + ); + + expect(appointmentAddingData).toEqual(expectedAppointmentData); + expect(appointmentAddedData).toEqual(expectedAppointmentData); + }); + + test(`onAppointmentClick and onAppointmentDbClick (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentClick, + API_CALLBACKS.appointmentDblClick, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentClick: ({ + appointmentData, targetedAppointmentData, + }: AppointmentClickEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentClick', { appointmentData, targetedAppointmentData }); + }, + onAppointmentDblClick: ({ + appointmentData, targetedAppointmentData, + }: AppointmentDblClickEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentDblClick', { appointmentData, targetedAppointmentData }); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + + await appointment.element.click(); + await appointment.element.dblclick(); + + const { + appointmentData: appointmentClickData, + targetedAppointmentData: targetedAppointmentClickData, + } = await getFirstClientResult(page, API_CALLBACKS.appointmentClick); + const { + appointmentData: appointmentDbClickData, + targetedAppointmentData: targetedAppointmentDbClickData, + } = await getFirstClientResult(page, API_CALLBACKS.appointmentDblClick); + + expect(appointmentClickData).toEqual(EXPECTED.appointmentData); + expect(targetedAppointmentClickData).toEqual(EXPECTED.targetedAppointmentData); + expect(appointmentDbClickData).toEqual(EXPECTED.appointmentData); + expect(targetedAppointmentDbClickData).toEqual(EXPECTED.targetedAppointmentData); + }); + + test(`onAppointmentTooltipShowing and onAppointmentFormOpening (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentTooltipShowing, + API_CALLBACKS.appointmentFormOpening, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentTooltipShowing: ({ appointments }: AppointmentTooltipShowingEvent) => { + const tooltipAppointmentData = appointments?.map(( + { appointmentData, currentAppointmentData }, + ) => ({ + appointmentData, + currentAppointmentData, + })); + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentTooltipShowing', tooltipAppointmentData); + }, + onAppointmentFormOpening: ({ appointmentData }: AppointmentFormOpeningEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentFormOpening', appointmentData); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + + await appointment.element.click(); + // NOTE: Tooltip has a delay, so we should wait until it appears here :) + await expect(scheduler.appointmentTooltip.wrapper).toBeAttached(); + await appointment.element.dblclick(); + + const [{ + appointmentData: appointmentTooltipData, + currentAppointmentData: currentAppointmentTooltipData, + }] = await getFirstClientResult(page, API_CALLBACKS.appointmentTooltipShowing); + const appointmentFormData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentFormOpening, + ); + + expect(appointmentTooltipData).toEqual(EXPECTED.appointmentData); + expect(currentAppointmentTooltipData).toEqual(EXPECTED.targetedAppointmentData); + expect(appointmentFormData).toEqual(EXPECTED.appointmentData); + }); + + // NOTE: onAppointmentDeleting event has a targetedAppointmentData field. + // We don't have this event field in docs, so this test case doesn't check it. + // Link to the docs: https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#onAppointmentDeleting + test(`onAppointmentDeleting and onAppointmentDeleted (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentDeleting, + API_CALLBACKS.appointmentDeleted, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentDeleting: ({ appointmentData }: AppointmentDeletingEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentDeleting', appointmentData); + }, + onAppointmentDeleted: ({ appointmentData }: AppointmentDeletedEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentDeleted', appointmentData); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + + await appointment.element.click(); + // NOTE: Tooltip has a delay, so we should wait until it appears here :) + await expect(scheduler.appointmentTooltip.wrapper).toBeAttached(); + await scheduler.appointmentTooltip.deleteButton.click(); + + const appointmentDeletingData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentDeleting, + ); + const appointmentDeletedData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentDeleted, + ); + + expect(appointmentDeletingData).toEqual(EXPECTED.appointmentData); + expect(appointmentDeletedData).toEqual(EXPECTED.appointmentData); + }); + + test(`onAppointmentUpdating and onAppointmentUpdated (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentUpdating, + API_CALLBACKS.appointmentUpdated, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentUpdating: ({ newData, oldData }: AppointmentUpdatingEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentUpdating', { newData, oldData }); + }, + onAppointmentUpdated: ({ appointmentData }: AppointmentUpdatedEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentUpdated', appointmentData); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + + const expectedOldData = { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: APPOINTMENT_TITLE, + }; + const expectedNewData = getAppointmentAfterUpdate(offset); + + await dragToOffset(page, appointment.element, -100, 0); + + const { newData, oldData } = await getFirstClientResult( + page, + API_CALLBACKS.appointmentUpdating, + ); + const appointmentData = await getFirstClientResult( + page, + API_CALLBACKS.appointmentUpdated, + ); + + expect(newData).toEqual(expectedNewData); + expect(oldData).toEqual(expectedOldData); + expect(appointmentData).toEqual(expectedNewData); + }); + + test(`onAppointmentContextMenu (offset: ${offset})`, async ({ page }) => { + await CallbackTestHelper.initClientTesting(page, [ + API_CALLBACKS.appointmentContextMenu, + ]); + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', ({ offset: widgetOffset, title }: WidgetArg) => ({ + currentDate: '2023-09-05', + height: 800, + dataSource: [ + { + startDate: '2023-09-06T12:30:00', + endDate: '2023-09-06T13:00:00', + text: title, + }, + ], + currentView: 'week', + cellDuration: 60, + offset: widgetOffset, + onAppointmentContextMenu: ({ + appointmentData, targetedAppointmentData, + }: AppointmentContextMenuEvent) => { + (window as WindowCallbackExtended) + .clientTesting! + .addCallbackResult('onAppointmentContextMenu', { appointmentData, targetedAppointmentData }); + }, + }), SCHEDULER_SELECTOR, { arg }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + + await appointment.element.click({ button: 'right' }); + + const { appointmentData, targetedAppointmentData } = await getFirstClientResult( + page, + API_CALLBACKS.appointmentContextMenu, + ); + + expect(appointmentData).toEqual(EXPECTED.appointmentData); + expect(targetedAppointmentData).toEqual(EXPECTED.targetedAppointmentData); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/currentTimeIndicator.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/currentTimeIndicator.spec.ts new file mode 100644 index 000000000000..d32462de2f54 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/currentTimeIndicator.spec.ts @@ -0,0 +1,110 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const getScreenshotName = ( + view: string, + indicatorTime: string, + offset: number, + startDayHour: number, + endDayHour: number, +): string => `offset_time-indicator_view-${view}_now-${indicatorTime.replace(/:/g, '-')}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; + +const TEST_CASES: [ + view: string, + indicatorTime: string, + cellDuration: number, + offset: number, + startDayHour: number, + endDayHour: number, +][] = [ + ['day', '2023-12-04T00:00:00', 120, 720, 0, 24], + ['day', '2023-12-04T00:00:00', 120, 720, 6, 18], + ['day', '2023-12-04T12:00:00', 120, 1440, 0, 24], + ['day', '2023-12-04T12:00:00', 120, 1440, 6, 18], + ['day', '2023-12-03T00:00:00', 120, -720, 0, 24], + ['day', '2023-12-03T00:00:00', 120, -720, 6, 18], + ['day', '2023-12-02T12:00:00', 120, -1440, 0, 24], + ['day', '2023-12-02T12:00:00', 120, -1440, 6, 18], + + ['week', '2023-12-06T00:00:00', 120, 720, 0, 24], + ['week', '2023-12-06T00:00:00', 120, 720, 6, 18], + ['week', '2023-12-06T12:00:00', 120, 1440, 0, 24], + ['week', '2023-12-06T12:00:00', 120, 1440, 6, 18], + ['week', '2023-12-05T00:00:00', 120, -720, 0, 24], + ['week', '2023-12-05T00:00:00', 120, -720, 6, 18], + ['week', '2023-12-04T12:00:00', 120, -1440, 0, 24], + ['week', '2023-12-04T12:00:00', 120, -1440, 6, 18], + + ['timelineDay', '2023-12-04T00:00:00', 360, 720, 0, 24], + ['timelineDay', '2023-12-04T00:00:00', 360, 720, 6, 18], + ['timelineDay', '2023-12-04T12:00:00', 360, 1440, 0, 24], + ['timelineDay', '2023-12-04T12:00:00', 360, 1440, 6, 18], + ['timelineDay', '2023-12-03T00:00:00', 360, -720, 0, 24], + ['timelineDay', '2023-12-03T00:00:00', 360, -720, 6, 18], + ['timelineDay', '2023-12-02T12:00:00', 360, -1440, 0, 24], + ['timelineDay', '2023-12-02T12:00:00', 360, -1440, 6, 18], + + ['timelineWeek', '2023-12-04T00:00:00', 360, 720, 0, 24], + ['timelineWeek', '2023-12-04T00:00:00', 360, 720, 6, 18], + ['timelineWeek', '2023-12-04T12:00:00', 360, 1440, 0, 24], + ['timelineWeek', '2023-12-04T12:00:00', 360, 1440, 6, 18], + ['timelineWeek', '2023-12-03T00:00:00', 360, -720, 0, 24], + ['timelineWeek', '2023-12-03T00:00:00', 360, -720, 6, 18], + ['timelineWeek', '2023-12-02T12:00:00', 360, -1440, 0, 24], + ['timelineWeek', '2023-12-02T12:00:00', 360, -1440, 6, 18], + + ['timelineMonth', '2023-12-04T00:00:00', 120, 720, 0, 24], + ['timelineMonth', '2023-12-04T00:00:00', 120, 720, 6, 18], + ['timelineMonth', '2023-12-04T12:00:00', 120, 1440, 0, 24], + ['timelineMonth', '2023-12-04T12:00:00', 120, 1440, 6, 18], + ['timelineMonth', '2023-12-03T00:00:00', 120, -720, 0, 24], + ['timelineMonth', '2023-12-03T00:00:00', 120, -720, 6, 18], + ['timelineMonth', '2023-12-02T12:00:00', 120, -1440, 0, 24], + ['timelineMonth', '2023-12-02T12:00:00', 120, -1440, 6, 18], +]; + +test.describe('Offset: Current time indicator', () => { + TEST_CASES.forEach(([ + view, + indicatorTime, + cellDuration, + offset, + startDayHour, + endDayHour]) => { + test(` +Should correctly render current time indicator ( +${view}, +now: ${indicatorTime}, +offset: ${offset}, +startDayHour: ${startDayHour}, +endDayHour: ${endDayHour} +)`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [], + currentView: view, + shadeUntilCurrentTime: true, + currentDate: '2023-12-03', + indicatorTime, + cellDuration, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const screenshotName = getScreenshotName( + view, + indicatorTime, + offset, + startDayHour, + endDayHour, + ); + await testScreenshot(page, screenshotName, { element: scheduler.workSpace }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/dragAndDrop.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/dragAndDrop.spec.ts new file mode 100644 index 000000000000..f2f5b0d5d26a --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/dragAndDrop.spec.ts @@ -0,0 +1,109 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const APPOINTMENT_TITLE = 'Test'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const APPOINTMENTS = { + week: [{ + startDate: '2023-09-05T05:00:00', + endDate: '2023-09-05T09:00:00', + text: APPOINTMENT_TITLE, + }], + month: [{ + startDate: '2023-09-05T10:00:00', + endDate: '2023-09-06T15:00:00', + text: APPOINTMENT_TITLE, + }], + timelineMonth: [{ + startDate: '2023-09-02T10:00:00', + endDate: '2023-09-03T15:00:00', + text: APPOINTMENT_TITLE, + }], + allDayWeek: [{ + startDate: '2023-09-05T05:00:00', + endDate: '2023-09-05T09:00:00', + text: APPOINTMENT_TITLE, + allDay: true, + }], + allDayMonth: [{ + startDate: '2023-09-05T10:00:00', + endDate: '2023-09-06T15:00:00', + text: APPOINTMENT_TITLE, + allDay: true, + }], + allDayTimelineMonth: [{ + startDate: '2023-09-02T10:00:00', + endDate: '2023-09-03T15:00:00', + text: APPOINTMENT_TITLE, + allDay: true, + }], +}; + +const getDragCoordinatesByView = ( + viewType: string, +): { x: number; y: number } => { + switch (viewType) { + case 'week': + return { x: 150, y: 0 }; + case 'month': + return { x: 300, y: 300 }; + default: + return { x: 300, y: 0 }; + } +}; + +const getScreenshotName = ( + viewType: string, + offset: number, + isAllDay: boolean, +) => `offset_drag-n-drop_${isAllDay ? 'all-day' : 'usual'}-appts_${viewType}_offset-${offset}.png`; + +test.describe('Offset: Drag-n-drop appointments', () => { + [ + { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week, isAllDay: false }, + { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.allDayWeek, isAllDay: true }, + { views: [{ type: 'month' }], dataSource: APPOINTMENTS.month, isAllDay: false }, + { views: [{ type: 'month' }], dataSource: APPOINTMENTS.allDayMonth, isAllDay: true }, + { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth, isAllDay: false }, + { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.allDayTimelineMonth, isAllDay: true }, + ].forEach(({ views, dataSource, isAllDay }) => { + [ + 0, + 735, + -735, + ].forEach((offset) => { + test(`Usual appointments drag-n-drop (view: ${views[0].type}, all-day: ${isAllDay}, offset: ${offset})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource, + views, + currentView: views[0].type, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); + const viewType = views[0].type; + + const { x, y } = getDragCoordinatesByView(viewType); + await dragToOffset(page, appointment.element, x, y); + + await testScreenshot( + page, + getScreenshotName(viewType, offset, isAllDay), + { element: scheduler.workSpace }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png new file mode 100644 index 000000000000..d2e28150364a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d2e28150364a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png new file mode 100644 index 000000000000..d2e28150364a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png new file mode 100644 index 000000000000..fb0805fc9272 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d125610c213d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png new file mode 100644 index 000000000000..922b3fe4d69a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png new file mode 100644 index 000000000000..d92600ecc7ff Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..781e69311709 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png new file mode 100644 index 000000000000..9e7ca5b8e8dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png new file mode 100644 index 000000000000..2291b585e8db Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6e487da7cd4c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png new file mode 100644 index 000000000000..be8a34453be0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..367c30ed4c23 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..db58b01dc63d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..0407b397b90a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..ea9611304c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f6839c6c38ee Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..386c55ceaf65 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..6700e444745a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6e486e198e4d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..d06d22615bd8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..367c30ed4c23 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..db58b01dc63d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..0407b397b90a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..ea9611304c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f6839c6c38ee Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..386c55ceaf65 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..06a6a17f5c96 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..884f2b619420 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..0b4200008dd4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..3898984b7126 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c75e02cc1b97 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..d23a6a04449e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..f14aadc08dc6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f14aadc08dc6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..f14aadc08dc6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..5df276cf8e45 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a62158b1cf15 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..292b32793255 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..4f0dc84572c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4f0dc84572c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..4f0dc84572c7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..82a31685ac45 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4a47d2be6e11 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..fa6061fbab11 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..b297a04c0a99 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d63e812451ea Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..1d447f964a8d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..b03470cee56f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1bdbe35cad30 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..b03470cee56f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1bdbe35cad30 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..61c7d8554adc Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..d0e2d125f340 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png new file mode 100644 index 000000000000..61c7d8554adc Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..d0e2d125f340 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..eccff5558693 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fa4caf1af211 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..eccff5558693 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fa4caf1af211 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..766e7f2eaaf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bf9728dab803 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..c80f81ce2d80 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..f725d1004530 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..a25e1664acac Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..d9c6fbed58bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..b4c25bb19055 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..2aec9444cace Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png new file mode 100644 index 000000000000..b278c38097d6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fdc791903f41 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..2e9aad1eeda5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..7da28b371c3a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..fd4422e6815d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..e1efee490c0b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png new file mode 100644 index 000000000000..59dc35d07c32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..a0502cfc5eca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png new file mode 100644 index 000000000000..f8a0f8cd435d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..f8a0f8cd435d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..9263be796d17 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9263be796d17 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png new file mode 100644 index 000000000000..bbf202ecbb08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..bbf202ecbb08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png new file mode 100644 index 000000000000..b0546f1fa0c5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9c0a1d6ec459 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png new file mode 100644 index 000000000000..acc7e4be0a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fb4952bd1a36 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png new file mode 100644 index 000000000000..095ed3d6f079 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9cc3ebc9e837 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png new file mode 100644 index 000000000000..85c43b77b453 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..2ac76c454300 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png new file mode 100644 index 000000000000..b0546f1fa0c5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9c0a1d6ec459 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png new file mode 100644 index 000000000000..acc7e4be0a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..fb4952bd1a36 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png new file mode 100644 index 000000000000..095ed3d6f079 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9cc3ebc9e837 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png new file mode 100644 index 000000000000..85c43b77b453 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..2ac76c454300 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png new file mode 100644 index 000000000000..d50e4b63530e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..ed6546aae909 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png new file mode 100644 index 000000000000..52b8bd8f0839 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1d17ebf8d2e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png new file mode 100644 index 000000000000..6f43f45cc1fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1d3b8baa7eb9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png new file mode 100644 index 000000000000..69ec7e42b73e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..262916e00f33 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png new file mode 100644 index 000000000000..d50e4b63530e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..ed6546aae909 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png new file mode 100644 index 000000000000..52b8bd8f0839 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1d17ebf8d2e4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png new file mode 100644 index 000000000000..6f43f45cc1fa Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..1d3b8baa7eb9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png new file mode 100644 index 000000000000..69ec7e42b73e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..262916e00f33 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png new file mode 100644 index 000000000000..7fb7aee78fd2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..c4bbf19e02b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png new file mode 100644 index 000000000000..44054dc2b90d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..21eb570f04bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png new file mode 100644 index 000000000000..09f6acb9620e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9b073f32bd82 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png new file mode 100644 index 000000000000..440459da26fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..83b1d0ec098d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png new file mode 100644 index 000000000000..7fb7aee78fd2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..c4bbf19e02b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png new file mode 100644 index 000000000000..44054dc2b90d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..21eb570f04bc Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png new file mode 100644 index 000000000000..09f6acb9620e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..9b073f32bd82 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png new file mode 100644 index 000000000000..440459da26fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png new file mode 100644 index 000000000000..83b1d0ec098d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..b9c2682627a7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..193ab764e152 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..488d4f7012ce Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..ab902cf79184 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ab913a711e48 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..4ce210dc9c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..66aa678f0d92 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a79d3faa4192 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..73e2b14f9388 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..ab902cf79184 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ab913a711e48 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..4ce210dc9c47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png new file mode 100644 index 000000000000..6d6fdc2137cb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png new file mode 100644 index 000000000000..6d6fdc2137cb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..35dcc9c0f0b5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e4508298e159 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..c89480849ea2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..2c7c9a3f67fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5624f9b8ec5b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..6d3ae672a2e2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..56856a865a3c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0816e37ebc4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..c7b9e2648b12 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..2c7c9a3f67fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5624f9b8ec5b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..6d3ae672a2e2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..afb24e96c679 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ff3ee1fc4155 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..abb4efe64ed2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..63326247397d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..0f2cfd61920d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..2d05f8340a6f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png new file mode 100644 index 000000000000..e3c4e7ed00b6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png new file mode 100644 index 000000000000..4ce0756dcaff Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..cc29beafb2d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..932a5b602582 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..77742872cce3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png new file mode 100644 index 000000000000..2a9d88900814 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a4c7cd827038 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png new file mode 100644 index 000000000000..226eb0493fb9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..f6517c527e08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..ceea36503330 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..0d8c0d7e9a5d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..ba9a45ffc0a4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..0d8c0d7e9a5d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..ba9a45ffc0a4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..f6517c527e08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..ceea36503330 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..b775938ea54f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..d156f9a7eaad Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..8b4bb83053da Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..dcfec0a582a4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..8b4bb83053da Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..dcfec0a582a4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..b775938ea54f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..d156f9a7eaad Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..2a45aa80db7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..f47f07bdede6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..647b147ab6fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..276cda477441 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..7ebb634a9d28 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..276cda477441 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..7ebb634a9d28 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..f47f07bdede6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..647b147ab6fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..4079ee85271d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..3e8bc659e05c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..ee266600e64e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..10d1d9ca5da1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..ee266600e64e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..10d1d9ca5da1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..4079ee85271d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png new file mode 100644 index 000000000000..3e8bc659e05c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/expressions.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/expressions.spec.ts new file mode 100644 index 000000000000..58f0085b0670 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/expressions.spec.ts @@ -0,0 +1,70 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const APPOINTMENT_TITLES = { + usual: 'Usual', + allDay: 'All-day', +}; +const APPOINTMENTS = { + week: [ + { + StartDate2: '2023-09-06T04:00:00', + EndDate2: '2023-09-06T06:00:00', + Text2: APPOINTMENT_TITLES.usual, + }, + { + StartDate2: '2023-09-06T00:00:00', + EndDate2: '2023-09-06T00:00:00', + Text2: APPOINTMENT_TITLES.allDay, + AllDay2: true, + }, + ], +}; + +test.describe('Offset: Appointment expressions', () => { + [ + { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 180, + -180, + ].forEach((offset) => { + test(`Appointment with expr common test (offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-05', + height: 800, + dataSource, + views, + currentView: views[0].type, + offset, + startDateExpr: 'StartDate2', + endDateExpr: 'EndDate2', + textExpr: 'Text2', + allDayExpr: 'AllDay2', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); + const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); + const viewType = views[0].type; + + await testScreenshot(page, `offset_appt-expr_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); + + await dragToOffset(page, usualAppointment.element, 100, 100); + await dragToOffset(page, allDayAppointment.element, -100, 0); + + await testScreenshot(page, `offset_appt-expr_drag-n-drop_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); + + await dragToOffset(page, usualAppointment.resizableHandle.bottom, 0, 100); + await dragToOffset(page, allDayAppointment.resizableHandle.left, -100, 0); + + await testScreenshot(page, `offset_appt-expr_resize_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/keyboardNavigation.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/keyboardNavigation.spec.ts new file mode 100644 index 000000000000..8cbc2e329d01 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/keyboardNavigation.spec.ts @@ -0,0 +1,74 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +const KEYBOARD_ACTIONS = { + day: ['ArrowDown', 'ArrowDown', 'ArrowDown', 'ArrowUp'], + week: ['ArrowUp', 'ArrowRight', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowLeft', 'ArrowUp', 'ArrowUp'], + month: ['ArrowUp', 'ArrowRight', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowLeft', 'ArrowUp', 'ArrowUp'], + timelineDay: ['ArrowRight', 'ArrowRight', 'ArrowRight', 'ArrowLeft'], + timelineMonth: ['ArrowRight', 'ArrowRight', 'ArrowRight', 'ArrowLeft'], +}; + +test.describe('Offset: Keyboard navigation', () => { + [ + 0, + -120, + 120, + ].forEach((offset) => { + [ + { view: 'day', startCell: [1, 0], keyboardKeys: KEYBOARD_ACTIONS.day }, + { view: 'week', startCell: [3, 3], keyboardKeys: KEYBOARD_ACTIONS.week }, + { view: 'month', startCell: [3, 3], keyboardKeys: KEYBOARD_ACTIONS.month }, + { view: 'timelineDay', startCell: [0, 1], keyboardKeys: KEYBOARD_ACTIONS.timelineDay }, + { view: 'timelineMonth', startCell: [0, 1], keyboardKeys: KEYBOARD_ACTIONS.timelineMonth }, + ].forEach(({ view, startCell, keyboardKeys }) => { + test(`Keyboard navigation should work (view: ${view}, offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource: [], + currentView: view, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const [rowIdx, cellIdx] = startCell; + const startCellSelector = scheduler.getDateTableCell(rowIdx, cellIdx); + + await startCellSelector.click(); + + for (const key of keyboardKeys) { + await page.keyboard.press(key); + } + + await testScreenshot(page, `offset_keyboard_${view}_offset-${offset}.png`, { element: scheduler.workSpace }); + }); + }); + + test(`Keyboard navigation in the all-day panel should work (view: week, offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource: [], + currentView: 'week', + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const startCellSelector = scheduler.getAllDayTableCell(1); + + await startCellSelector.click(); + await page.keyboard.press('ArrowRight'); + await page.keyboard.press('ArrowRight'); + await page.keyboard.press('ArrowLeft'); + + await testScreenshot(page, `offset_keyboard_week-all-day_offset-${offset}.png`, { element: scheduler.workSpace }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/multiCellSelection.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/multiCellSelection.spec.ts new file mode 100644 index 000000000000..a9436dac541f --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/multiCellSelection.spec.ts @@ -0,0 +1,90 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { dragToElement } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; + +test.describe('Offset: Multi cell selection', () => { + [ + 0, + -120, + 120, + ].forEach((offset) => { + [true, false].forEach((rtlEnabled) => { + [ + { view: 'day', dragOptions: { direction: 'increase', from: [0, 0], to: [7, 0] } }, + { view: 'day', dragOptions: { direction: 'decrease', from: [7, 0], to: [0, 0] } }, + { view: 'week', dragOptions: { direction: 'increase_0', from: [0, 2], to: [7, 2] } }, + { view: 'week', dragOptions: { direction: 'decrease_0', from: [7, 2], to: [0, 2] } }, + { view: 'week', dragOptions: { direction: 'increase_1', from: [1, 3], to: [8, 4] } }, + { view: 'week', dragOptions: { direction: 'decrease_1', from: [8, 4], to: [1, 3] } }, + { view: 'week', dragOptions: { direction: 'increase_2', from: [6, 3], to: [6, 5] } }, + { view: 'week', dragOptions: { direction: 'decrease_2', from: [6, 5], to: [6, 3] } }, + { view: 'week', dragOptions: { direction: 'increase_3', from: [0, 0], to: [11, 6] } }, + { view: 'week', dragOptions: { direction: 'decrease_3', from: [11, 6], to: [0, 0] } }, + { view: 'month', dragOptions: { direction: 'increase', from: [2, 2], to: [3, 1] } }, + { view: 'month', dragOptions: { direction: 'decrease', from: [3, 1], to: [2, 2] } }, + { view: 'timelineDay', dragOptions: { direction: 'increase', from: [0, 0], to: [0, 5] } }, + { view: 'timelineDay', dragOptions: { direction: 'decrease', from: [0, 5], to: [0, 0] } }, + { view: 'timelineMonth', dragOptions: { direction: 'increase', from: [0, 0], to: [0, 3] } }, + { view: 'timelineMonth', dragOptions: { direction: 'decrease', from: [0, 3], to: [0, 0] } }, + ].forEach(({ view, dragOptions }) => { + test(`Multi cell selection should work ( +view: ${view}, +offset: ${offset}, +direction: ${dragOptions.direction}, +rtl: ${rtlEnabled}, +)`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource: [], + currentView: view, + offset, + rtlEnabled, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const { direction, from: [fromRow, fromCell], to: [toRow, toCell] } = dragOptions; + const firstCellSelector = scheduler.getDateTableCell(fromRow, fromCell); + const secondCellSelector = scheduler.getDateTableCell(toRow, toCell); + + await dragToElement(page, firstCellSelector, secondCellSelector); + await testScreenshot( + page, + `offset_multi-cell-select_${view}_offset-${offset}_${direction}${rtlEnabled ? '_rtl' : ''}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + + test(`Multi cell selection in the all-day panel should work ( +view: week, +offset: ${offset}, +rtl: ${rtlEnabled}, +)`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource: [], + currentView: 'week', + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + const firstCellSelector = scheduler.getAllDayTableCell(0); + const secondCellSelector = scheduler.getAllDayTableCell(3); + + await dragToElement(page, firstCellSelector, secondCellSelector); + await testScreenshot( + page, + `offset_multi-cell-select_week-all-day_offset-${offset}${rtlEnabled ? '_rtl' : ''}.png`, + { element: scheduler.workSpace }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/common/resize.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/common/resize.spec.ts new file mode 100644 index 000000000000..f9842eeb5a2a --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/common/resize.spec.ts @@ -0,0 +1,263 @@ +import type { Locator, Page } from '@playwright/test'; +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { dragToOffset } from '../../../../helpers/dragUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import type Appointment from '../../../../models/scheduler/appointment'; + +const SCHEDULER_SELECTOR = '#container'; +const APPOINTMENT_TITLES = { + usual: 'Usual', + allDay: 'All-day', +}; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const APPOINTMENTS = { + week: [ + { + startDate: '2023-09-05T05:00:00', + endDate: '2023-09-05T09:00:00', + text: APPOINTMENT_TITLES.usual, + }, + { + startDate: '2023-09-05T00:00:00', + endDate: '2023-09-06T00:00:00', + text: APPOINTMENT_TITLES.allDay, + allDay: true, + }, + ], + month: [ + { + startDate: '2023-09-05T10:00:00', + endDate: '2023-09-06T15:00:00', + text: APPOINTMENT_TITLES.usual, + }, + { + startDate: '2023-09-05T00:00:00', + endDate: '2023-09-06T00:00:00', + text: APPOINTMENT_TITLES.allDay, + allDay: true, + }, + ], + timelineMonth: [ + { + startDate: '2023-09-02T10:00:00', + endDate: '2023-09-03T15:00:00', + text: APPOINTMENT_TITLES.usual, + }, + { + startDate: '2023-09-02T00:00:00', + endDate: '2023-09-03T00:00:00', + text: APPOINTMENT_TITLES.allDay, + allDay: true, + }, + ], +}; +enum ResizeType { + startPlus = 'start-plus', + startMinus = 'start-minus', + endPlus = 'end-plus', + endMinus = 'end-minus', +} + +const isVerticalView = (viewType: string, isAllDay: boolean): boolean => !isAllDay && viewType === 'week'; +const isStartResize = ( + resizeType: ResizeType, +): boolean => resizeType === ResizeType.startPlus || resizeType === ResizeType.startMinus; + +const getResizableHandle = ( + appointment: Appointment, + viewType: string, + resizeType: ResizeType, + isAllDay: boolean, +): Locator => { + if (isVerticalView(viewType, isAllDay)) { + return isStartResize(resizeType) + ? appointment.resizableHandle.top + : appointment.resizableHandle.bottom; + } + + return isStartResize(resizeType) + ? appointment.resizableHandle.left + : appointment.resizableHandle.right; +}; + +const getResizableValues = ( + viewType: string, + resizeType: ResizeType, + isAllDay: boolean, +): { x: number; y: number } => { + const distance = { + [ResizeType.startPlus]: -100, + [ResizeType.startMinus]: 50, + [ResizeType.endPlus]: 100, + [ResizeType.endMinus]: -50, + }[resizeType]; + + return isVerticalView(viewType, isAllDay) + ? { x: 0, y: distance } + : { x: distance, y: 0 }; +}; + +const doResize = async ( + page: Page, + appointment: Appointment, + viewType: string, + resizeType: ResizeType, + isAllDay: boolean, +): Promise => { + const handle = getResizableHandle(appointment, viewType, resizeType, isAllDay); + const { x, y } = getResizableValues(viewType, resizeType, isAllDay); + + await dragToOffset(page, handle, x, y); +}; + +const getScreenshotName = ( + viewType: string, + resizeType: string, + offset: number, +) => `offset_resize-appts_${viewType}_${resizeType}_offset-${offset}.png`; + +test.describe('Offset: Resize appointments', () => { + [ + { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week }, + { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 735, + -735, + ].forEach((offset) => { + test(`Appointments resize common cases (view: ${views[0].type}, offset: ${offset})`, async ({ page }) => { + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + dataSource, + views, + currentView: views[0].type, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); + const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); + const viewType = views[0].type; + + await doResize(page, usualAppointment, viewType, ResizeType.startMinus, false); + await doResize(page, allDayAppointment, viewType, ResizeType.startMinus, true); + await testScreenshot( + page, + getScreenshotName(viewType, ResizeType.startMinus, offset), + { element: scheduler.workSpace }, + ); + + await doResize(page, usualAppointment, viewType, ResizeType.startPlus, false); + await doResize(page, allDayAppointment, viewType, ResizeType.startPlus, true); + await testScreenshot( + page, + getScreenshotName(viewType, ResizeType.startPlus, offset), + { element: scheduler.workSpace }, + ); + + await doResize(page, usualAppointment, viewType, ResizeType.endMinus, false); + await doResize(page, allDayAppointment, viewType, ResizeType.endMinus, true); + await testScreenshot( + page, + getScreenshotName(viewType, ResizeType.endMinus, offset), + { element: scheduler.workSpace }, + ); + + await doResize(page, usualAppointment, viewType, ResizeType.endPlus, false); + await doResize(page, allDayAppointment, viewType, ResizeType.endPlus, true); + await testScreenshot( + page, + getScreenshotName(viewType, ResizeType.endPlus, offset), + { element: scheduler.workSpace }, + ); + }); + }); + }); + + [ + -720, + 720, + ].forEach((offset) => { + test(`Should resize appointment correctly with startDayHour and endDayHour (view: 'week', offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [ + { + startDate: '2023-09-06T22:00:00', + endDate: '2023-09-07T00:00:00', + text: APPOINTMENT_TITLES.usual, + }, + { + startDate: '2023-09-06T00:00:00', + endDate: '2023-09-06T00:00:00', + allDay: true, + text: APPOINTMENT_TITLES.allDay, + }, + ], + currentView: 'week', + startDayHour: 10, + endDayHour: 12, + currentDate: '2023-09-07', + height: 800, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); + const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); + + await dragToOffset(page, usualAppointment.resizableHandle.bottom, 0, -50); + await dragToOffset(page, usualAppointment.resizableHandle.top, 0, 50); + await dragToOffset(page, allDayAppointment.resizableHandle.left, -100, 0); + await dragToOffset(page, allDayAppointment.resizableHandle.right, 100, 0); + + await testScreenshot( + page, + `offset_resize-appts_week_offset-${offset}_startDayHour-10_endDayHour-12.png`, + { element: scheduler.workSpace }, + ); + }); + }); + + [ + { offset: -720, currentDate: '2023-09-07' }, + { offset: 720, currentDate: '2023-09-06' }, + ].forEach(({ offset, currentDate }) => { + test(`Should resize appointment correctly with startDayHour and endDayHour (view: 'timelineDay', offset: ${offset})`, async ({ page }) => { + await createWidget(page, 'dxScheduler', { + dataSource: [{ + startDate: '2023-09-06T22:00:00', + endDate: '2023-09-07T00:00:00', + text: APPOINTMENT_TITLES.usual, + }], + currentView: 'timelineDay', + startDayHour: 10, + endDayHour: 12, + height: 800, + currentDate, + offset, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); + + await dragToOffset(page, usualAppointment.resizableHandle.left, 200, 0); + await dragToOffset(page, usualAppointment.resizableHandle.right, -200, 0); + + await testScreenshot( + page, + `offset_resize-appts_timelineDay_offset-${offset}_startDayHour-10_endDayHour-12.png`, + { element: scheduler.workSpace }, + ); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/allDayAppointments.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/markup/allDayAppointments.spec.ts new file mode 100644 index 000000000000..38c8b18871d1 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/markup/allDayAppointments.spec.ts @@ -0,0 +1,153 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { generateAppointments } from '../../helpers/generateAppointments'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; + +const ALL_DAY_APPOINTMENTS_DATA = [ + { + startTime: '02:00:00', + endTime: '02:00:00', + allDay: true, + endDateShiftDays: 1, + }, + { startTime: '20:30:00', endTime: '23:30:00', allDay: true }, +]; +const APPOINTMENTS = { + day: [ + ...generateAppointments( + '2023-09-06', + '2023-09-08', + ALL_DAY_APPOINTMENTS_DATA, + ), + { + startDate: '2023-09-05T14:00:00', + endDate: '2023-09-09T16:00:00', + text: 'LONG APPT', + allDay: true, + }, + ], + week: [ + ...generateAppointments( + '2023-09-02', + '2023-09-10', + ALL_DAY_APPOINTMENTS_DATA, + ), + { + startDate: '2023-09-01T14:00:00', + endDate: '2023-09-12T16:00:00', + text: 'LONG APPT', + allDay: true, + }, + ], + workWeekWithFirstDay: [ + ...generateAppointments( + '2023-09-05', + '2023-09-13', + ALL_DAY_APPOINTMENTS_DATA, + ), + { + startDate: '2023-09-03T14:00:00', + endDate: '2023-09-15T16:00:00', + text: 'LONG APPT', + allDay: true, + }, + ], + month: [ + ...generateAppointments( + '2023-08-26', + '2023-10-08', + ALL_DAY_APPOINTMENTS_DATA, + ), + { + startDate: '2023-08-24T14:00:00', + endDate: '2023-10-10T16:00:00', + text: 'LONG APPT', + allDay: true, + }, + ], +}; + +const getScreenshotName = ( + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, + firstDay?: number, +) => `view_markup_all-day_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; + +test.describe('Offset: Markup all-day appointments', () => { + [ + { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, + { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, + { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, + { views: [{ type: 'timelineWeek', cellDuration: 480, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + // NOTE: The timelineWorkWeek view has some existing issues + // Therefore some screenshots is invalid :( + { views: [{ type: 'timelineWorkWeek', cellDuration: 480, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + { + views: [{ type: 'timelineWorkWeek', cellDuration: 480, firstDayOfWeek: 3 }], + dataSource: APPOINTMENTS.workWeekWithFirstDay, + }, + { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 735, + 1440, + -735, + -1440, + ].forEach((offset) => { + [ + { startDayHour: 0, endDayHour: 24 }, + { startDayHour: 9, endDayHour: 17 }, + ].forEach(({ startDayHour, endDayHour }) => { + test(` +All-day appointments and workspaces render ( +view: ${views[0].type}, +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour} +first day: ${views[0].firstDayOfWeek} +)`, async ({ page }) => { + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + maxAppointmentsPerCell: 'unlimited', + dataSource, + views, + currentView: views[0].type, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotName( + views[0].type, + offset, + startDayHour, + endDayHour, + views[0].firstDayOfWeek, + ), + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/appointmentsOrdering.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/markup/appointmentsOrdering.spec.ts new file mode 100644 index 000000000000..3d80daf30971 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/markup/appointmentsOrdering.spec.ts @@ -0,0 +1,198 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { generateAppointments } from '../../helpers/generateAppointments'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; + +const APPOINTMENTS_TIME = [ + { startTime: '10:15:00', endTime: '16:15:00' }, + { startTime: '17:05:00', endTime: '22:05:00' }, +]; +// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). +const APPOINTMENTS_TIMELINE_TIME = [ + { startTime: '04:00:00', endTime: '08:00:00', endDateShiftDays: 1 }, + { startTime: '10:15:00', endTime: '16:15:00', endDateShiftDays: 1 }, + { startTime: '17:05:00', endTime: '22:05:00', endDateShiftDays: 1 }, +]; + +const RECURRENT_APPOINTMENTS_MONTH = [ + { + startDate: '2023-08-01T15:00:00', + endDate: '2023-08-01T19:00:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', + text: 'Daily 15-19', + }, +]; + +const RECURRENT_APPOINTMENTS_MONTH_TIMELINE = [ + { + startDate: '2023-08-01T09:00:00', + endDate: '2023-08-01T13:00:00', + recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', + text: 'Hourly 09-13', + }, + { + startDate: '2023-08-01T15:00:00', + endDate: '2023-08-01T19:00:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', + text: 'Daily 15-19', + }, +]; + +const APPOINTMENTS = { + month: generateAppointments( + '2023-08-26', + '2023-10-08', + APPOINTMENTS_TIME, + ).concat(RECURRENT_APPOINTMENTS_MONTH), + timelineMonth: generateAppointments( + '2023-08-31', + '2023-09-08', + APPOINTMENTS_TIMELINE_TIME, + ).concat(RECURRENT_APPOINTMENTS_MONTH_TIMELINE), +}; + +const getScreenshotName = ( + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, +) => `view_markup_ordering-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; + +test.describe('Offset: Markup appointments ordering', () => { + [ + { views: [{ type: 'month' }], dataSource: APPOINTMENTS.month }, + { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 735, + -735, + 1440, + -1440, + ].forEach((offset) => { + [ + { startDayHour: 0, endDayHour: 24 }, + { startDayHour: 9, endDayHour: 17 }, + ].forEach(({ startDayHour, endDayHour }) => { + test(` +Appointments ordering and workspaces render ( +view: ${views[0].type}, +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour} +)`, async ({ page }) => { + const [view] = views; + + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + maxAppointmentsPerCell: 'unlimited', + dataSource, + views: [view], + currentView: view.type, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotName( + views[0].type, + offset, + startDayHour, + endDayHour, + ), + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); + + test('Appointments are ordered correctly with both recurrent and usual appointments (T1212573)', async ({ page }) => { + const data = [ + { + text: 'Recurr 1', + startDate: new Date('2020-11-01T17:30:00.000Z'), + endDate: new Date('2020-11-01T19:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', + }, { + text: 'Recurr 2', + startDate: new Date('2020-11-01T17:30:00.000Z'), + endDate: new Date('2020-11-01T19:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU,WE;COUNT=10', + }, { + text: 'Recurr 3', + startDate: new Date('2020-11-01T20:00:00.000Z'), + endDate: new Date('2020-11-01T21:00:00.000Z'), + recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU;WKST=TU;INTERVAL=2;COUNT=2', + }, { + text: 'Recurr 4', + startDate: new Date('2020-11-01T17:00:00.000Z'), + endDate: new Date('2020-11-01T17:15:00.000Z'), + recurrenceRule: 'FREQ=DAILY;BYDAY=TU;UNTIL=20201203', + }, { + text: 'Test 1', + startDate: new Date('2020-11-01T15:00:00.000Z'), + endDate: new Date('2020-11-01T15:30:00.000Z'), + }, { + text: 'Test 2', + startDate: new Date('2020-11-01T18:00:00.000Z'), + endDate: new Date('2020-11-01T18:30:00.000Z'), + }, { + text: 'Test 3', + startDate: new Date('2020-11-02T15:00:00.000Z'), + endDate: new Date('2020-11-02T15:30:00.000Z'), + }, { + text: 'Test 4', + startDate: new Date('2020-11-02T18:00:00.000Z'), + endDate: new Date('2020-11-02T18:30:00.000Z'), + }, { + text: 'Test 5', + startDate: new Date('2020-11-03T15:00:00.000Z'), + endDate: new Date('2020-11-03T15:30:00.000Z'), + }, { + text: 'Test 6', + startDate: new Date('2020-11-03T18:00:00.000Z'), + endDate: new Date('2020-11-03T18:30:00.000Z'), + }, { + text: 'Test 7', + startDate: new Date('2020-11-04T15:00:00.000Z'), + endDate: new Date('2020-11-04T15:30:00.000Z'), + }, { + text: 'Test 8', + startDate: new Date('2020-11-04T18:00:00.000Z'), + endDate: new Date('2020-11-04T18:30:00.000Z'), + }, + ]; + + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2020-11-07', + height: 800, + dataSource: data, + views: ['timelineMonth'], + currentView: 'timelineMonth', + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + 'view_markup_ordering-appts_T1212573.png', + { element: scheduler.workSpace }, + ); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a711c6d9220a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..59eaf2eab8e6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5b69183f554b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..52f8a6899c6b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..83eaa54e811d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b121637fcd98 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ea0e2da9fa09 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..adb6e085433a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e96e28975b42 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..320530262a7c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..86e03b698666 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..86e03b698666 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..eecd4c7f9b92 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..92b3215ad6fe Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..013d7d765e6c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..18c042953971 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2c75d6bf6b7f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2c75d6bf6b7f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..49cea1b22a59 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..896064d90c8c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..65c02f384a3f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..24399065e7f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f5ac6d2cde2f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..0776f8b4b86a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f6249539e530 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..33401457dca4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e3f94b321bf8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c1079638a859 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..96c3281fbea6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ce3ed95a2020 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e48a7fefc93d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e48a7fefc93d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ab0a2c2b615f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ab0a2c2b615f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..cb3fd54444d8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d9ff36294d83 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..efcfb1a24cc8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..efcfb1a24cc8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7d1bb46f6e03 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7d1bb46f6e03 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7031ca0ed649 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b2da043ba8b2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c4b89eed5ab9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..50b87c67bbf0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..fa9073ecaa1f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c52b79259973 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..30df0d40d762 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2c3927196e7f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..325b5fb112e0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c8528afd4928 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..488c8472da47 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..fa090cf6dff7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..3e5a476b84d4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..4dd0d27a84f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..22392aaa29f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..39c60ecdb36b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..520622a06e38 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..3c2892193dcd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d4cd99760e88 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..167394e7693a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..9a6a8499a7c0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..4fbca4e99df0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ab8842cac1ac Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..b0c45fc66311 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e41d53c900f1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..89f33568ccf7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..03a1c2a10445 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..24d4978a45c8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c06ddb889e13 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..cedad12d208d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..3a98c22553db Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..61985f0f1252 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1af3c4d650d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8f640c0e997d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ae1ff90a0a3a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..9b1a40baa98a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ea6f2dade688 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0597eb3d24f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..34237f2d434a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..020ac60da209 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7464744d4911 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..fcda1af80e09 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..76d8df076564 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..32d412ef6de2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d34fcd37a9b9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..a44fde774a38 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..242f9354fc51 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..613350dbb5a9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c7388b4839b2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..a1e7d0fd58f4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6ff989c02924 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..711841c71cc7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4b6bf9bad9ae Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..2c2b6d738a0e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6dde13efa225 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..8de60f16a060 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f18ccfeba420 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..1cf5980ffe9d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..11a087b2b585 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..43014a491134 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png new file mode 100644 index 000000000000..9f3d3433a06a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..0dd70f62ebab Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..35af589648b3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..8c016b79df44 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..89d73000917a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..ab9fed416cc4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..258b6d5c9bad Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..5f1e93f8b757 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..3bd6959d9f2e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..3b5fc0f84b32 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..425a70f030c5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..60fb0546a725 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..51f94bef2e5b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..58a39a41feda Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..1d81fe53a7b9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..323ea84b8f23 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..b4a3dcfca701 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..02c52af3924d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..03b7958316bf Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..2fccdb5a27f1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..3458a6ef4b08 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..59da229ce5be Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ec73226a49d6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..da58a3720750 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5ea5e122d391 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d1b0a3469900 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d1479926094b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..62be30108ae0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2819f307da4f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..336dbd4d36a1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..336dbd4d36a1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8820f25a2f35 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6f6342df2c3f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..7f9c1e070b2f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..df4e759a85cd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..6f6b92c4a8fd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..6b1f92ff9149 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..575fe0f2075f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..68a32c97d92e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..34d6d0c60654 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..0e51d871cfe2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8788b0a43102 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..9c8b1a3463ee Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7abaf6886125 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..00f12dd2e66d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..381405144daf Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7dad5b61f1b1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..42a36fc4897c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..87172798f7d1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a15fd390ba9e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a15fd390ba9e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f2b3c5db72b3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..87172798f7d1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..de81e8ddef50 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..afb56b6596d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5597eaa3afc9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..cdfbe04a3230 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..aecd648f58e0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b34ae4ac9916 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f731788d03dd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..2e194d06ca40 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8897a20cd66f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..813b320c82bd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..66816208b378 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..7c2f0d616923 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..8c79e71e0651 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..ff8a712b7c0c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4e9d3fde4c31 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..779ff6ee28bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e75d51a65c22 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..f85ede2e347b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2d80a764608f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c1721744e18d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..21417eb36cdb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ca355ae6cff6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..80b296a32d31 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f08104d119d3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..dede9286dd7b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..2006b792d91d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..312be4c789b4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..339dd8dc9e9c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5fa8096edb22 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..b48a2fa7366b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..bb25d304b062 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..7a39eba87603 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..61d474cc93bb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..8e938ba9eb78 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7a43987bf310 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..df16095b3407 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..86720f838427 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d59f1a10eb7f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d1a09902772c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..829cdadaf124 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6673aab82c6b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f69c0d059879 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b342e7c65350 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..977dcc2474db Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..83c5468360e5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..ca8477f04c33 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5ec00245ff54 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..38396484955a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0e286e30a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..208f0778e81b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0e286e30a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d22f744c506d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0e286e30a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1444ad56dd37 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..a0e286e30a14 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..103792231647 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..0bbd18c34baa Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6b4f1943a4da Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7c61b3a4c259 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..85c1b07aa6e2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..3b2380b7b386 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..05359b84dcea Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7b1e8404b78c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f3fcd94d5971 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e62939d446e0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..13854b7c8290 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..41c7b37369dc Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c56ed45eeef0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d1caa9ce7267 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..c89583ee5ce2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..67626523059a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..36a5f2855d4d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..355ae7dd234c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..35252522045c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2f44517e7c6f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..899aedd7d3b7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d454265e0567 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e1018adb1c1a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5c853753feef Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..be448495c974 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1b1b9dcd840c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..7c5564958a83 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e03088b8702a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..eb1981d66f6e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5d00bf6c74d7 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6e72bc84665f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4bd0e67d2819 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..bd11e7e23b95 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..859fdbc59364 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..a4da9de84233 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..831dddb74a65 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..b4cfb41d090c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..11298ff73561 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..ab6b30f17c8e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1a8006c4e60e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..187b19bbff86 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..1081eb67a152 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..b6ec3f88fb19 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..66a9f2536a8f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..d6b65f5acdd5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2d7781636e04 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..1ebd363e058d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..f0244f34070f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..8f455d28cf4f Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..864afff90095 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..661576fad510 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..489e79a94858 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b18682297781 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..393dc88c19e9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4fd3d7ef5163 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4514c04cd8e1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..121c2ef851b3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..5d6edca74915 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..68fcef7bc96a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..05c0ed1caaa8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d4d9c16dc27e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..b4598ab5dc10 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..a22376da4471 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..e43efae25680 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..9de9acf1bf1a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..6f531edcc747 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..354a6d68fa42 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..92969ed69434 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..3d1da0b3e355 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..cb70e7225d40 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..5e52d9703c43 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..4b88a1d7ed1b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..6d3556c23e3b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..9417fcacf317 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..7683bc505b6a Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..2fd0cc2cd9cf Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..36a28d3e66c9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..3a6717f134f3 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..6ad7a1de621e Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png new file mode 100644 index 000000000000..d57f4456eba2 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png new file mode 100644 index 000000000000..0169abf68562 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..a5cb103fd686 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..06863975d181 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..0cb59a809b31 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..937803779f33 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..0646d67c3230 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..76428ddadbc1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_day_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..fae4fbc35fc0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..fc72507ac627 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..ce4731687f4d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..425035fa6376 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..840a791d68ae Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..74e12db51dfb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..be706df038f5 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..dad46d4e7d02 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..3d2bd0971002 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..33108ba55a07 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..e11f5f55b17c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..d368cf0e2b2c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..8d459569a3a9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..e31027e675a4 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..5f4a36cb9d5d Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..e14d603e32f8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineDay_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..184ce0653ec8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..73b876a0cab0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..4fd486825f1c Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..8cafe1fac472 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..471810f35fa1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..7e85a358ec13 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..907967c78291 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..f1feb4c8331b Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..5296ee056da9 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..55aa9e428622 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..1ed6395f5947 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..41e131b95dca Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..d9a258fc54d1 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..edf1a625a1d0 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..b8de366272fd Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..a49a7e7a32fb Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..8ce8927987a8 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..26718d56d5d6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png new file mode 100644 index 000000000000..16d51b6171c6 Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png new file mode 100644 index 000000000000..a9e8280eb3ef Binary files /dev/null and b/e2e/playwright/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png differ diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/recurrentAppointments.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/markup/recurrentAppointments.spec.ts new file mode 100644 index 000000000000..8b80efa5ca2f --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/markup/recurrentAppointments.spec.ts @@ -0,0 +1,321 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; + +const APPOINTMENTS = [ + { + startDate: '2023-08-01T10:00:00', + endDate: '2023-08-01T14:00:00', + recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', + text: 'Hourly 10-14', + }, + { + startDate: '2023-08-01T16:00:00', + endDate: '2023-08-01T20:00:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', + text: 'Daily 16-20', + }, + { + startDate: '2023-08-01T23:00:00', + endDate: '2023-08-02T05:00:00', + recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=7', + allDay: true, + text: 'All day 01 -> 02', + }, +]; +// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). +const APPOINTMENTS_TIMELINE = [ + { + startDate: '2023-08-01T04:00:00', + endDate: '2023-08-01T18:00:00', + recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', + text: 'Hourly 04-18', + }, + { + startDate: '2023-08-01T20:00:00', + endDate: '2023-08-02T10:00:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', + text: 'Daily 20-10', + }, +]; + +const getScreenshotName = ( + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, + firstDay?: number, +) => `view_markup_recurrent-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; + +const getScreenshotNameForEdgeCase = ( + edgeCaseName: string, + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, +) => `view_markup_recurrent-appts_${edgeCaseName}_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; + +const getViewWithCorrectCellDuration = ( + view: { type: string; cellDuration?: number }, + startDayHour: number, + endDayHour: number, +): { type: string; cellDuration?: number } => { + switch (view.type) { + case 'timelineWeek': + case 'timelineWorkWeek': + return { + ...view, + cellDuration: (endDayHour - startDayHour) * 60, + }; + default: + return view; + } +}; + +// TODO(10): Fix view model. Appointment with offset can crops and doesn't render +test.describe('Offset: Markup recurrent appointments', () => { + [ + { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, + { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS }, + { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, + { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, + { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, + // NOTE: The timelineWorkWeek view has some existing issues + // Therefore some screenshots is invalid :( + { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, + { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS_TIMELINE }, + { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 735, + -735, + ].forEach((offset) => { + [ + { startDayHour: 0, endDayHour: 24 }, + { startDayHour: 9, endDayHour: 17 }, + ].forEach(({ startDayHour, endDayHour }) => { + test(` +Recurrence appointments and workspaces render ( +view: ${views[0].type}, +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour}, +first day: ${views[0].firstDayOfWeek} +)`, async ({ page }) => { + const view = getViewWithCorrectCellDuration( + views[0], + startDayHour, + endDayHour, + ); + + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + maxAppointmentsPerCell: 'unlimited', + dataSource, + views: [view], + currentView: view.type, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotName( + views[0].type, + offset, + startDayHour, + endDayHour, + views[0].firstDayOfWeek, + ), + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); + + [ + { views: [{ type: 'day', cellDuration: 60 }] }, + { views: [{ type: 'timelineDay', cellDuration: 240 }] }, + ].forEach(({ views }) => { + [ + // Positive offset case without limits + { + dataSource: [{ + startDate: '2023-09-01T10:00:00', + endDate: '2023-09-01T14:00:00', + text: '#0 WE 10:00->14:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T20:00:00', + endDate: '2023-09-02T04:00:00', + text: '#1 WE 20:00->04:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T10:00:00', + endDate: '2023-09-01T14:00:00', + text: '#2 TH 10:00->14:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', + }, + { + startDate: '2023-09-01T00:00:00', + endDate: '2023-09-01T00:00:00', + text: '#3 All-day TH', + allDay: true, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', + }], + offset: 720, + startDayHour: 0, + endDayHour: 24, + }, + // Positive offset case with limits + { + dataSource: [{ + startDate: '2023-09-01T20:00:00', + endDate: '2023-09-01T22:00:00', + text: '#0 WE 15:00->19:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T23:00:00', + endDate: '2023-09-02T01:00:00', + text: '#1 WE 23:00->01:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T04:00:00', + endDate: '2023-09-01T06:00:00', + text: '#2 TH 04:00->06:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', + }, + { + startDate: '2023-09-01T00:00:00', + endDate: '2023-09-01T00:00:00', + text: '#3 All-day TH', + allDay: true, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', + }], + offset: 720, + startDayHour: 9, + endDayHour: 17, + }, + // Negative offset case without limits + { + dataSource: [{ + startDate: '2023-09-01T10:00:00', + endDate: '2023-09-01T14:00:00', + text: '#0 TU 10:00->14:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', + }, + { + startDate: '2023-09-01T20:00:00', + endDate: '2023-09-02T04:00:00', + text: '#1 TU 20:00->04:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', + }, + { + startDate: '2023-09-01T10:00:00', + endDate: '2023-09-01T14:00:00', + text: '#2 WE 10:00->14:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T00:00:00', + endDate: '2023-09-01T00:00:00', + text: '#3 All-day WE', + allDay: true, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }], + offset: -720, + startDayHour: 0, + endDayHour: 24, + }, + // Negative offset case with limits + { + dataSource: [{ + startDate: '2023-09-01T20:00:00', + endDate: '2023-09-01T22:00:00', + text: '#0 TU 15:00->19:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', + }, + { + startDate: '2023-09-01T23:00:00', + endDate: '2023-09-02T01:00:00', + text: '#1 TU 23:00->01:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', + }, + { + startDate: '2023-09-01T04:00:00', + endDate: '2023-09-01T06:00:00', + text: '#2 WE 04:00->06:00', + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }, + { + startDate: '2023-09-01T00:00:00', + endDate: '2023-09-01T00:00:00', + text: '#3 All-day WE', + allDay: true, + recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', + }], + offset: -720, + startDayHour: 9, + endDayHour: 17, + }, + ].forEach(({ + dataSource, offset, startDayHour, endDayHour, + }) => { + test(` +Recurrence appointments and workspaces render in short day views ( +view: ${views[0].type}, +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour} +)`, async ({ page }) => { + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-06', + height: 800, + maxAppointmentsPerCell: 'unlimited', + currentView: views[0].type, + dataSource, + views, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotNameForEdgeCase( + 'short-day-views', + views[0].type, + offset, + startDayHour, + endDayHour, + ), + { element: scheduler.workSpace }, + ); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/usualAppointments.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/markup/usualAppointments.spec.ts new file mode 100644 index 000000000000..444e05d19f0b --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/markup/usualAppointments.spec.ts @@ -0,0 +1,164 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; +import { generateAppointments } from '../../helpers/generateAppointments'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const APPOINTMENTS_TIME = [ + { startTime: '04:00:00', endTime: '08:00:00' }, + { startTime: '10:15:00', endTime: '16:15:00' }, + { startTime: '17:05:00', endTime: '22:05:00' }, + { startTime: '23:00:00', endTime: '03:30:00', endDateShiftDays: 1 }, +]; +// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). +const APPOINTMENTS_TIMELINE_TIME = [ + { startTime: '04:00:00', endTime: '08:00:00', endDateShiftDays: 1 }, + { startTime: '10:15:00', endTime: '16:15:00', endDateShiftDays: 1 }, + { startTime: '17:05:00', endTime: '22:05:00', endDateShiftDays: 1 }, + { startTime: '23:00:00', endTime: '03:30:00', endDateShiftDays: 1 }, +]; +const APPOINTMENTS = { + day: generateAppointments( + '2023-09-06', + '2023-09-08', + APPOINTMENTS_TIME, + ), + week: generateAppointments( + '2023-09-02', + '2023-09-10', + APPOINTMENTS_TIME, + ), + workWeekWithFirstDay: generateAppointments( + '2023-09-05', + '2023-09-13', + APPOINTMENTS_TIME, + ), + month: generateAppointments( + '2023-08-26', + '2023-10-08', + APPOINTMENTS_TIME, + ), + timelineDay: generateAppointments( + '2023-09-06', + '2023-09-08', + APPOINTMENTS_TIMELINE_TIME, + ), + timelineWeek: generateAppointments( + '2023-09-02', + '2023-09-10', + APPOINTMENTS_TIMELINE_TIME, + ), + timelineWeekWithFirstDay: generateAppointments( + '2023-09-05', + '2023-09-13', + APPOINTMENTS_TIMELINE_TIME, + ), + timelineMonth: generateAppointments( + '2023-08-31', + '2023-09-08', + APPOINTMENTS_TIMELINE_TIME, + ), +}; + +const getScreenshotName = ( + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, + firstDay?: number, +) => `view_markup_usual-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; + +const getViewWithCorrectCellDuration = ( + view: { type: string; cellDuration?: number }, + startDayHour: number, + endDayHour: number, +): { type: string; cellDuration?: number } => { + switch (view.type) { + case 'timelineWeek': + case 'timelineWorkWeek': + return { + ...view, + cellDuration: (endDayHour - startDayHour) * 60, + }; + default: + return view; + } +}; + +test.describe('Offset: Markup usual appointments', () => { + [ + { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, + { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, + { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineDay }, + { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, + // NOTE: The timelineWorkWeek view has some existing issues + // Therefore some screenshots is invalid :( + { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, + { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.timelineWeekWithFirstDay }, + { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + ].forEach(({ views, dataSource }) => { + [ + 0, + 735, + 1440, + -735, + -1440, + ].forEach((offset) => { + [ + { startDayHour: 0, endDayHour: 24 }, + { startDayHour: 9, endDayHour: 17 }, + ].forEach(({ startDayHour, endDayHour }) => { + test(` +Usual appointments and workspaces render ( +view: ${views[0].type}, +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour}, +first day: ${views[0].firstDayOfWeek} +)`, async ({ page }) => { + const view = getViewWithCorrectCellDuration( + views[0], + startDayHour, + endDayHour, + ); + + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate: '2023-09-07', + height: 800, + maxAppointmentsPerCell: 'unlimited', + dataSource, + views: [view], + currentView: view.type, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotName( + views[0].type, + offset, + startDayHour, + endDayHour, + views[0].firstDayOfWeek, + ), + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); +}); diff --git a/e2e/playwright/tests/scheduler/viewOffset/markup/virtualScrolling.spec.ts b/e2e/playwright/tests/scheduler/viewOffset/markup/virtualScrolling.spec.ts new file mode 100644 index 000000000000..bf9da1758bc0 --- /dev/null +++ b/e2e/playwright/tests/scheduler/viewOffset/markup/virtualScrolling.spec.ts @@ -0,0 +1,96 @@ +import { test } from '../../../../fixtures'; +import { createWidget } from '../../../../helpers/createWidget'; +import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; +import { testScreenshot } from '../../../../helpers/screenshots'; +import Scheduler from '../../../../models/scheduler'; + +const SCHEDULER_SELECTOR = '#container'; +const REDUCE_CELLS_CSS = ` +.dx-scheduler-cell-sizes-vertical { + height: 25px; +}`; +const APPOINTMENTS = [ + { + startDate: '2023-09-05T00:00:00', + endDate: '2023-09-05T03:00:00', + text: '#0 Usual 05 00:00->03:00', + }, + { + startDate: '2023-09-05T04:00:00', + endDate: '2023-09-05T09:00:00', + text: '#1 Usual 05 05:00->09:00', + }, + { + startDate: '2023-09-05T10:30:00', + endDate: '2023-09-05T16:30:00', + text: '#2 Usual 05 12:30->16:30', + }, + { + startDate: '2023-09-05T17:00:00', + endDate: '2023-09-05T23:30:00', + text: '#3 Usual 05 18:00->22:00', + }, + { + startDate: '2023-09-05T00:00:00', + endDate: '2023-09-05T00:00:00', + text: '#4 All-day 05', + allDay: true, + }, +]; + +const getScreenshotName = ( + viewType: string, + offset: number, + startDayHour: number, + endDayHour: number, +) => `view_markup_virtual-scrolling_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; + +const LONG_VIEW_OFFSETS = [0, 735, 1440, -735, -1440]; +const DAY_VIEW_OFFSETS = [0, -735, 735]; + +test.describe('Offset: Markup virtual scrolling', () => { + [ + { views: [{ type: 'week', cellDuration: 60 }], currentDate: '2023-09-07', offsets: LONG_VIEW_OFFSETS }, + { views: [{ type: 'month' }], currentDate: '2023-09-07', offsets: LONG_VIEW_OFFSETS }, + { views: [{ type: 'timelineMonth' }], currentDate: '2023-09-07', offsets: LONG_VIEW_OFFSETS }, + { views: [{ type: 'day', cellDuration: 60 }], currentDate: '2023-09-05', offsets: DAY_VIEW_OFFSETS }, + { views: [{ type: 'timelineDay', cellDuration: 240 }], currentDate: '2023-09-05', offsets: DAY_VIEW_OFFSETS }, + ].forEach(({ views, currentDate, offsets }) => { + offsets.forEach((offset) => { + [ + { startDayHour: 0, endDayHour: 24 }, + { startDayHour: 9, endDayHour: 17 }, + ].forEach(({ startDayHour, endDayHour }) => { + test(` +Appointments and workspaces with virtual scrolling render ( +view: ${views[0].type} +offset: ${offset}, +start: ${startDayHour}, +end: ${endDayHour}, +)`, async ({ page }) => { + await insertStylesheetRulesToPage(page, REDUCE_CELLS_CSS); + await createWidget(page, 'dxScheduler', { + currentDate, + height: 800, + scrolling: { mode: 'virtual' }, + maxAppointmentsPerCell: 'unlimited', + dataSource: APPOINTMENTS, + views, + currentView: views[0].type, + offset, + startDayHour, + endDayHour, + }); + + const scheduler = new Scheduler(page, SCHEDULER_SELECTOR); + + await testScreenshot( + page, + getScreenshotName(views[0].type, offset, startDayHour, endDayHour), + { element: scheduler.workSpace }, + ); + }); + }); + }); + }); +}); diff --git a/e2e/testcafe-devextreme/helpers/machineTimezones.ts b/e2e/testcafe-devextreme/helpers/machineTimezones.ts deleted file mode 100644 index 655e61daa61c..000000000000 --- a/e2e/testcafe-devextreme/helpers/machineTimezones.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const MACHINE_TIMEZONES = { - EuropeBerlin: 'Europe/Berlin', - AmericaLosAngeles: 'America/Los_Angeles', -} as const; -export type MachineTimezonesType = typeof MACHINE_TIMEZONES[keyof typeof MACHINE_TIMEZONES]; - -export const getMachineTimezone = (): string => Intl.DateTimeFormat().resolvedOptions().timeZone; - -export const getTimezoneTest = (timezones: MachineTimezonesType[]): TestFn => { - const machineTimezone = getMachineTimezone(); - return timezones.includes(machineTimezone as MachineTimezonesType) ? test : test.skip; -}; - -export const getTimezoneFixture = (timezones: MachineTimezonesType[]): FixtureFn => { - const machineTimezone = getMachineTimezone(); - return timezones.includes(machineTimezone as MachineTimezonesType) ? fixture : fixture.skip; -}; - -export const normalizeTimezoneName = (timezone: MachineTimezonesType): string => timezone.replace(/\//g, '-'); diff --git a/e2e/testcafe-devextreme/tests/scheduler/apiMocks/resourceApiMock.ts b/e2e/testcafe-devextreme/tests/scheduler/apiMocks/resourceApiMock.ts deleted file mode 100644 index 553771c9e247..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/apiMocks/resourceApiMock.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { RequestMock } from 'testcafe'; - -export const resourceApiMock = RequestMock() - .onRequestTo((req) => req.url.includes('/api/data')) - .respond( - { - data: [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, - { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, - ], - }, - 200, - { 'access-control-allow-origin': '*', 'content-type': 'text/xml' }, - ); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/a11y/contrast.ts b/e2e/testcafe-devextreme/tests/scheduler/common/a11y/contrast.ts deleted file mode 100644 index 69fd3e56b365..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/a11y/contrast.ts +++ /dev/null @@ -1,29 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`a11y - contrast` - .page(url(__dirname, '../../../container.html')); - -// visual: generic.light -// visual: generic.dark -// visual: fluent.light -// visual: fluent.dark -test('Scheduler a11y: Insufficient contrast of day numbers in the MonthView', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'month_day_number_contrast.png', { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - currentView: 'month', - currentDate: new Date(2020, 10, 25), - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png deleted file mode 100644 index 0d3343ff976a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/a11y/etalons/month_day_number_contrast (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/adaptive.weekView.ts b/e2e/testcafe-devextreme/tests/scheduler/common/adaptive.weekView.ts deleted file mode 100644 index 357476820081..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/adaptive.weekView.ts +++ /dev/null @@ -1,178 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; -import { Themes } from '../../../helpers/themes'; - -fixture.disablePageReloads`Week view in adaptive mode` - .page(url(__dirname, '../../container.html')); - -const createScheduler = async (data, width = '100%'): Promise => { - await createWidget('dxScheduler', { - dataSource: data, - views: ['week'], - currentView: 'week', - adaptivityEnabled: true, - currentDate: new Date(2017, 4, 25), - startDayHour: 9, - height: 600, - width, - }); -}; - -const sampleData = [ - { - text: 'Website Re-Design Plan', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'Website Re-Design Plan', - startDate: new Date(2017, 4, 22, 9, 40), - endDate: new Date(2017, 4, 22, 11, 40), - }, { - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date(2017, 4, 22, 12, 0), - endDate: new Date(2017, 4, 22, 13, 0), - allDay: true, - }, -]; - -const sampleDataNotRoundedMinutes = [ - { - text: 'Website Re-Design Plan', - startDate: new Date(2017, 4, 22, 9, 10), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'Website Re-Design Plan', - startDate: new Date(2017, 4, 23, 9, 5), - endDate: new Date(2017, 4, 23, 11, 40), - }, { - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date(2017, 4, 24, 12, 12), - endDate: new Date(2017, 4, 24, 13, 30), - }, -]; - -const roughEqual = (actual: number, expected: number): boolean => { - const epsilon = 1.5; - const delta = Math.abs(expected - actual); - - return delta <= epsilon; -}; - -[{ - top: 623, - bottom: 700, - left: 0, - width: 350, - windowWidth: 350, - name: 'snap to bottom in phone', -}, { - top: 312, - bottom: 389, - left: 80, - width: 640, - windowWidth: 800, - name: 'align by center in tablet', -}].forEach(({ - windowWidth, name, left, bottom, top, width, -}) => { - test.meta({ runInTheme: Themes.genericLight, browserSize: [windowWidth, 700] })(`Mobile tooltip should be ${name} screen`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .click(scheduler.collectors.get(0).element); - - const leftPosition = await scheduler.appointmentTooltip.mobileElement.getBoundingClientRectProperty('left'); - const bottomPosition = await scheduler.appointmentTooltip.mobileElement.getBoundingClientRectProperty('bottom'); - const topPosition = await scheduler.appointmentTooltip.mobileElement.getBoundingClientRectProperty('top'); - const mobileElementWidth = await scheduler.appointmentTooltip.mobileElement.getBoundingClientRectProperty('width'); - - await t - .expect(roughEqual(leftPosition, left)) - .ok() - .expect(roughEqual(bottomPosition, bottom)) - .ok() - .expect(roughEqual(topPosition, top)) - .ok() - .expect(roughEqual(mobileElementWidth, width)) - .ok(); - }) - .before(async () => createScheduler(sampleData, '80%')); -}); - -test.meta({ runInTheme: Themes.genericLight, browserSize: [350, 600] })('Compact appointment should be center by vertical alignment', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentCount()).eql(0) - .expect(scheduler.collectors.count).eql(3); - - const firstAppointmentTop = await scheduler.collectors.get(0).element.getBoundingClientRectProperty('top'); - const firstAppointmentLeft = await scheduler.collectors.get(0).element.getBoundingClientRectProperty('left'); - - const secondAppointmentTop = await scheduler.collectors.get(1).element.getBoundingClientRectProperty('top'); - const secondAppointmentLeft = await scheduler.collectors.get(1).element.getBoundingClientRectProperty('left'); - - const thirdAppointmentTop = await scheduler.collectors.get(2).element.getBoundingClientRectProperty('top'); - const thirdAppointmentLeft = await scheduler.collectors.get(2).element.getBoundingClientRectProperty('left'); - - await t - .expect(roughEqual(firstAppointmentTop, 150)) - .ok() - .expect(roughEqual(firstAppointmentLeft, 101)) - .ok() - .expect(roughEqual(secondAppointmentTop, 150)) - .ok() - .expect(roughEqual(secondAppointmentLeft, 139)) - .ok() - .expect(roughEqual(thirdAppointmentTop, 450)) - .ok() - .expect(roughEqual(thirdAppointmentLeft, 177)) - .ok(); -}).before(async () => createScheduler(sampleDataNotRoundedMinutes)); - -test.meta({ runInTheme: Themes.genericLight, browserSize: [350, 600] })('With a large browser width, should be visible common appointment instead of a compact', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentCount()).eql(0) - .expect(scheduler.collectors.count).eql(2); - - const firstAppointmentTop = await scheduler.collectors.find('1').element.getBoundingClientRectProperty('top'); - const firstAppointmentLeft = await scheduler.collectors.find('1').element.getBoundingClientRectProperty('left'); - const secondAppointmentTop = await scheduler.collectors.find('2').element.getBoundingClientRectProperty('top'); - const secondAppointmentLeft = await scheduler.collectors.find('2').element.getBoundingClientRectProperty('left'); - - await t - .expect(roughEqual(firstAppointmentTop, 138)) - .ok() - .expect(roughEqual(firstAppointmentLeft, 101)) - .ok() - - .expect(roughEqual(secondAppointmentTop, 250)) - .ok() - .expect(roughEqual(secondAppointmentLeft, 101)) - .ok(); - - await t.resizeWindow(700, 600); - - await t - .expect(scheduler.getAppointmentCount()).eql(1) - .expect(scheduler.collectors.count).eql(2); - - const firstAppointmentTopAfterResize = await scheduler.collectors.get(0).element.getBoundingClientRectProperty('top'); - const firstAppointmentLeftAfterResize = await scheduler.collectors.get(0).element.getBoundingClientRectProperty('left'); - const secondAppointmentTopAfterResize = await scheduler.collectors.get(1).element.getBoundingClientRectProperty('top'); - const secondAppointmentLeftAfterResize = await scheduler.collectors.get(1).element.getBoundingClientRectProperty('left'); - - await t - .expect(roughEqual(firstAppointmentTopAfterResize, 137.5)) - .ok() - .expect(roughEqual(firstAppointmentLeftAfterResize, 215)) - .ok() - - .expect(roughEqual(secondAppointmentTopAfterResize, 240)) - .ok() - .expect(roughEqual(secondAppointmentLeftAfterResize, 239.5)) - .ok(); -}).before(async () => createScheduler(sampleData)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/API.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/API.ts deleted file mode 100644 index 44681f23428c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/API.ts +++ /dev/null @@ -1,106 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Agenda:API` - .page(url(__dirname, '../../../container.html')); - -test('Html elements should be absent in Agenda view', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.element.find('.dx-scheduler-all-day-panel').exists) - .notOk(); - - await t - .expect(scheduler.element.find('.dx-scheduler-sidebar-scrollable').exists) - .notOk(); - - await t - .expect(scheduler.workSpace.hasClass('dx-scheduler-work-space-both-scrollbar')) - .notOk(); - - await t - .expect(scheduler.element.find('.dx-scheduler-date-table-cell').nth(0).textContent) - .eql(''); - await t - .expect(scheduler.element.find('.dx-scheduler-date-table-cell').nth(1).textContent) - .eql(''); - - await t - .expect(scheduler.element.find('.dx-scheduler-fixed-appointments').exists) - .notOk(); - - await t - .expect(scheduler.element.find('.dx-scheduler-header-panel').exists) - .notOk(); - - await t - .expect(scheduler.workSpace.getAttribute('tabindex')) - .notOk(); -}).before(async () => { - const data = [{ - text: 'Website Re-Design Plan', - ownerId: [4, 1, 2], - roomId: [1, 2, 3], - priorityId: 2, - startDate: new Date('2021-05-24T16:30:00.000Z'), - endDate: new Date('2021-05-24T18:30:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY', - allDay: true, - }, { - text: 'Book Flights to San Fran for Sales Trip', - ownerId: 2, - roomId: 2, - priorityId: 1, - startDate: new Date('2021-05-24T19:00:00.000Z'), - endDate: new Date('2021-05-24T20:00:00.000Z'), - allDay: true, - }, { - text: 'Final Budget Review', - ownerId: 1, - roomId: 1, - priorityId: 1, - startDate: new Date('2021-05-25T19:00:00.000Z'), - endDate: new Date('2021-05-25T20:35:00.000Z'), - }, { - text: 'New Brochures', - ownerId: 4, - roomId: 3, - priorityId: 2, - startDate: new Date('2021-05-25T21:30:00.000Z'), - endDate: new Date('2021-05-25T22:45:00.000Z'), - }, { - text: 'Install New Database', - ownerId: 2, - roomId: 3, - priorityId: 1, - startDate: new Date('2021-05-26T16:45:00.000Z'), - endDate: new Date('2021-05-26T18:15:00.000Z'), - }, { - text: 'Approve New Online Marketing Strategy', - ownerId: 4, - roomId: 2, - priorityId: 1, - startDate: new Date('2021-05-26T19:00:00.000Z'), - endDate: new Date('2021-05-26T21:00:00.000Z'), - }, { - text: 'Upgrade Personal Computers', - ownerId: 2, - roomId: 2, - priorityId: 2, - startDate: new Date('2021-05-26T22:15:00.000Z'), - endDate: new Date('2021-05-26T23:30:00.000Z'), - }]; - - await createWidget('dxScheduler', { - dataSource: data, - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 4, 25), - showAllDayPanel: true, - crossScrollingEnabled: true, - focusStateEnabled: true, - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/adaptive.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/adaptive.ts deleted file mode 100644 index 7aa7e1fb6dab..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/adaptive.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { ADAPTIVE_SIZE } from '../const'; - -fixture.disablePageReloads`Agenda:adaptive` - .page(url(__dirname, '../../../container.html')); - -const createScheduler = async (groups: undefined | string[], rtlEnabled: boolean): -Promise => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - priorityId: 2, - startDate: new Date(2021, 4, 21, 16, 30), - endDate: new Date(2021, 4, 21, 18, 30), - }, { - text: 'Approve Personal Computer Upgrade Plan', - priorityId: 2, - startDate: new Date(2021, 4, 21, 17), - endDate: new Date(2021, 4, 21, 18), - }, { - text: 'Install New Database', - priorityId: 1, - startDate: new Date(2021, 4, 21, 16), - endDate: new Date(2021, 4, 21, 19, 15), - }, { - text: 'Approve New Online Marketing Strategy', - priorityId: 1, - startDate: new Date(2021, 4, 21, 19), - endDate: new Date(2021, 4, 21, 21), - }], - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 4, 21), - rtlEnabled, - groups, - resources: [{ - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: [{ - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }], - label: 'Priority', - }], - }); -}; - -[false, true].forEach((rtlEnabled) => { - [{ - groups: undefined, - text: 'without-groups', - }, { - groups: ['priorityId'], - text: 'groups', - }].forEach((testCase) => { - test.meta({ browserSize: ADAPTIVE_SIZE })(testCase.text, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `agenda-${testCase.text}-adaptive-rtl=${rtlEnabled}.png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => createScheduler(testCase.groups, rtlEnabled)); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/editing.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/editing.ts deleted file mode 100644 index 26bbb09abff7..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/editing.ts +++ /dev/null @@ -1,92 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Agenda:Editing` - .page(url(__dirname, '../../../container.html')); - -test('It should be possible to delete an appointment', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .click(scheduler.getAppointment('App 1').element) - .click(scheduler.appointmentTooltip.deleteButton) - .expect(scheduler.getAppointmentCount()) - .eql(3); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'App 1', - startDate: new Date(2021, 1, 1, 12), - endDate: new Date(2021, 1, 1, 13), - }, { - text: 'App 2', - startDate: new Date(2021, 1, 2, 12), - endDate: new Date(2021, 1, 2, 13), - }, { - text: 'App 3', - startDate: new Date(2021, 1, 3, 12), - endDate: new Date(2021, 1, 3, 13), - }, { - text: 'App 4', - startDate: new Date(2021, 1, 4, 12), - endDate: new Date(2021, 1, 4, 13), - }], - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 1, 1), - height: 600, - }); -}); - -test('It should be possible to change the data source of agenda resources', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentResourceByIndex(0, 'Owner')) - .eql('Samantha Bright') - .expect(scheduler.getAppointmentResourceByIndex(1, 'Owner')) - .eql('Todd Hoffman'); - - await scheduler.option('resources[0].dataSource', [{ - text: 'Todd Hoffman', - id: 2, - }]); - - await t - .expect(scheduler.getAppointmentByIndex(0).getResourceElement('Owner').exists) - .notOk() - .expect(scheduler.getAppointmentResourceByIndex(1, 'Owner')) - .eql('Todd Hoffman'); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [ - { - text: 'New Brochures', - ownerId: [1], - startDate: new Date(2021, 1, 1, 18, 30), - endDate: new Date(2021, 1, 1, 21, 15), - }, { - text: 'Website Re-Design Plan', - ownerId: [2], - startDate: new Date(2021, 1, 1, 23, 45), - endDate: new Date(2021, 1, 2, 18, 15), - }, - ], - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 1, 1), - resources: [{ - fieldExpr: 'ownerId', - dataSource: [{ - text: 'Samantha Bright', - id: 1, - }, { - text: 'Todd Hoffman', - id: 2, - }, - ], - label: 'Owner', - }], - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png deleted file mode 100644 index 854ac6663b26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png deleted file mode 100644 index e3fe2f429d28..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-groups-adaptive-rtl=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png deleted file mode 100644 index 5de87166fb9a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-click (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png deleted file mode 100644 index 74ca319eba15..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-appointment-state-hover (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png deleted file mode 100644 index 137f0542dbef..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png deleted file mode 100644 index 436b09879059..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-groups-rtl=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png deleted file mode 100644 index 420dcbdfec22..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png deleted file mode 100644 index 68b8921a930f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=false-resources=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png deleted file mode 100644 index a67918af749f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png deleted file mode 100644 index 2745b92ee895..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-layout-rtl=true-resources=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png deleted file mode 100644 index e399570a5d28..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png deleted file mode 100644 index 99ac1cfc4593..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/agenda-without-groups-adaptive-rtl=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png deleted file mode 100644 index 06fc6a6343a9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/etalons/switch-to-agenda-without-appointments (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/keyField.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/keyField.ts deleted file mode 100644 index 5afed0884914..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/keyField.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture`Agenda:KeyField` - .page(url(__dirname, '../../../container.html')); - -const hasWarningCode = (message) => message.startsWith('W1023'); - -['week', 'agenda'].forEach((currentView) => { - test(`Warning should be thrown in console in case currentView='${currentView}'(T1100758)`, async (t) => { - const messages = await t.getBrowserConsoleMessages(); - - const isWarningExist = !!messages.warn.find(hasWarningCode); - await t.expect(isWarningExist).ok(); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week', 'agenda'], - currentView, - currentDate: new Date(2021, 2, 28), - height: 600, - }); - }); -}); - -test('Warning should be thrown in console after set new views(T1100758)', async (t) => { - const messages = await t.getBrowserConsoleMessages(); - const isWarningExist = !!messages.warn.find(hasWarningCode); - await t.expect(isWarningExist).notOk(); - - const scheduler = new Scheduler('#container'); - await scheduler.option('views', ['week', 'agenda']); - - const messagesAfterChangeViews = await t.getBrowserConsoleMessages(); - const isWarningExistAfterChangeViews = !!messagesAfterChangeViews.warn.find(hasWarningCode); - await t.expect(isWarningExistAfterChangeViews).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - height: 600, - }); -}); - -test('Warning shouldn\'t be thrown in console in case currentView=\'week\' if keyField exists(T1100758)', async (t) => { - const messages = await t.getBrowserConsoleMessages(); - - const isWarningExist = !!messages.warn.find(hasWarningCode); - await t.expect(isWarningExist).notOk(); -}).before(async () => { - await createWidget('dxScheduler', () => { - const store = new (window as any).DevExpress.data.CustomStore({ - key: 'id', - load: () => [], - }); - - return { - dataSource: store, - views: ['week', 'agenda'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - height: 600, - }; - }); -}); - -test('Warning shouldn\'t be thrown in console in case currentView=\'agenda\' if keyField exists(T1100758)', async (t) => { - const messages = await t.getBrowserConsoleMessages(); - - const isWarningExist = !!messages.warn.find(hasWarningCode); - await t.expect(isWarningExist).notOk(); -}).before(async () => { - await createWidget('dxScheduler', () => { - const store = new (window as any).DevExpress.data.CustomStore({ - key: 'id', - load: () => [], - }); - - return { - dataSource: store, - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 2, 28), - height: 600, - }; - }); -}); - -['week', 'agenda'].forEach((currentView) => { - test(`Warning should be thrown in console in case currentView='${currentView}' if keyField not set in Store(T1100758)`, async (t) => { - const messages = await t.getBrowserConsoleMessages(); - - const isWarningExist = !!messages.warn.find(hasWarningCode); - await t.expect(isWarningExist).ok(); - }).before(async () => { - await createWidget('dxScheduler', ClientFunction(() => ({ - dataSource: new (window as any).DevExpress.data.CustomStore({ - load: () => [], - }), - views: ['week', 'agenda'], - currentView, - currentDate: new Date(2021, 2, 28), - height: 600, - }), { dependencies: { currentView } })); - }); -}); - -test('Wrong behavior: editing recurrence appointment does not affect to appointment\'s data source(T1100758)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t.doubleClick(scheduler.getAppointment('Test').element); - await t - .typeText(scheduler.appointmentPopup.textEditor.element, 'Updated', { replace: true }) - .click(scheduler.appointmentPopup.saveButton.element); - - await t.expect(scheduler.getAppointment('Updated').element.exists).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Test', - startDate: new Date('2021-03-29T16:30:00.000Z'), - endDate: new Date('2021-03-29T18:30:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY', - }], - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 2, 28), - recurrenceEditMode: 'series', - height: 600, - }, '#container'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/layout.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/layout.ts deleted file mode 100644 index c9e02e8414a5..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/layout.ts +++ /dev/null @@ -1,184 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Agenda:layout` - .page(url(__dirname, '../../../container.html')); - -const data = [{ - text: 'Website Re-Design Plan', - ownerId: [4, 1, 2], - roomId: [1, 2, 3], - priorityId: 2, - startDate: new Date('2021-05-24T16:30:00.000Z'), - endDate: new Date('2021-05-24T18:30:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY', - allDay: true, -}, { - text: 'Book Flights to San Fran for Sales Trip', - ownerId: 2, - roomId: 2, - priorityId: 1, - startDate: new Date('2021-05-24T19:00:00.000Z'), - endDate: new Date('2021-05-24T20:00:00.000Z'), - allDay: true, -}, { - text: 'Final Budget Review', - ownerId: 1, - roomId: 1, - priorityId: 1, - startDate: new Date('2021-05-25T19:00:00.000Z'), - endDate: new Date('2021-05-25T20:35:00.000Z'), -}, { - text: 'New Brochures', - ownerId: 4, - roomId: 3, - priorityId: 2, - startDate: new Date('2021-05-25T21:30:00.000Z'), - endDate: new Date('2021-05-25T22:45:00.000Z'), -}, { - text: 'Install New Database', - ownerId: 2, - roomId: 3, - priorityId: 1, - startDate: new Date('2021-05-26T16:45:00.000Z'), - endDate: new Date('2021-05-26T18:15:00.000Z'), -}, { - text: 'Approve New Online Marketing Strategy', - ownerId: 4, - roomId: 2, - priorityId: 1, - startDate: new Date('2021-05-26T19:00:00.000Z'), - endDate: new Date('2021-05-26T21:00:00.000Z'), -}, { - text: 'Upgrade Personal Computers', - ownerId: 2, - roomId: 2, - priorityId: 2, - startDate: new Date('2021-05-26T22:15:00.000Z'), - endDate: new Date('2021-05-26T23:30:00.000Z'), -}]; - -const owners = [{ - text: 'Samantha Bright', - id: 1, - color: '#727bd2', -}, { - text: 'John Heart', - id: 2, - color: '#32c9ed', -}, { - text: 'Todd Hoffman', - id: 3, - color: '#2a7ee4', -}, { - text: 'Sandra Johnson', - id: 4, - color: '#7b49d3', -}]; - -const rooms = [{ - text: 'Room 1', - id: 1, - color: '#00af2c', -}, { - text: 'Room 2', - id: 2, - color: '#56ca85', -}, { - text: 'Room 3', - id: 3, - color: '#8ecd3c', -}]; - -const priorities = [{ - text: 'High priority', - id: 1, - color: '#cc5c53', -}, { - text: 'Low priority', - id: 2, - color: '#ff9747', -}]; - -const resourcesData = [{ - fieldExpr: 'roomId', - allowMultiple: true, - dataSource: rooms, - label: 'Room', -}, { - fieldExpr: 'priorityId', - allowMultiple: true, - dataSource: priorities, - label: 'Priority', -}, { - fieldExpr: 'ownerId', - allowMultiple: true, - dataSource: owners, - label: 'Owner', -}]; - -const createScheduler = async ( - rtlEnabled: boolean, - resources: undefined | any[], - groups: undefined | string[], -): Promise => { - await createWidget('dxScheduler', { - dataSource: data, - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 4, 25), - resources, - rtlEnabled, - groups, - height: 600, - }); -}; - -[false, true].forEach((rtlEnabled) => { - [undefined, resourcesData].forEach((resources) => { - test(`Agenda test layout(rtl=${rtlEnabled}, resources=${!!resources}`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `agenda-layout-rtl=${rtlEnabled}-resources=${!!resources}.png`, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => createScheduler(rtlEnabled, resources, undefined)); - }); -}); - -[false, true].forEach((rtlEnabled) => { - test(`Agenda test layout with groups(rtl=${rtlEnabled}`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `agenda-layout-groups-rtl=${rtlEnabled}.png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createScheduler(rtlEnabled, resourcesData, ['roomId'])); -}); - -test('Agenda test appointment state', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.hover(scheduler.getAppointment('Final Budget Review', 0).element); - await testScreenshot(t, takeScreenshot, 'agenda-layout-appointment-state-hover.png'); - - await t.click(scheduler.getAppointment('New Brochures', 0).element); - await testScreenshot(t, takeScreenshot, 'agenda-layout-appointment-state-click.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createScheduler(false, resourcesData, undefined)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/switchingToAgenda.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/switchingToAgenda.ts deleted file mode 100644 index bbdac7af6e68..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/switchingToAgenda.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Agenda:view switching` - .page(url(__dirname, '../../../container.html')); - -test('View switching should work for empty agenda', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.option('currentDate', new Date(2021, 4, 26)); - await scheduler.option('currentView', 'agenda'); - - await testScreenshot(t, takeScreenshot, 'switch-to-agenda-without-appointments.png'); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: new Date(2021, 4, 25, 0), - endDate: new Date(2021, 4, 25, 1), - text: 'Test Appointment', - }], - views: ['day', 'agenda'], - currentView: 'day', - currentDate: new Date(2021, 4, 25), - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/tooltip.ts b/e2e/testcafe-devextreme/tests/scheduler/common/agenda/tooltip.ts deleted file mode 100644 index 1b03df14ed5b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/agenda/tooltip.ts +++ /dev/null @@ -1,36 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Agenda:Tooltip` - .page(url(__dirname, '../../../container.html')); - -test('Tooltip\'s date should be equal to date of current appointment(T1037028)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointmentName = 'Text'; - - for (let index = 0; index < 5; index += 1) { - await scheduler.hideAppointmentTooltip(); - - await t.click(scheduler.getAppointment(appointmentName, index).element); - - const tooltipDate = await scheduler.appointmentTooltip - .getListItem(appointmentName, 0).date.innerText; - const expectedDate = await scheduler.getAppointment(appointmentName, index).date.time; - - await t.expect(tooltipDate).eql(expectedDate); - } -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Text', - startDate: new Date(2021, 1, 1, 12), - endDate: new Date(2021, 1, 1, 13), - recurrenceRule: 'FREQ=HOURLY;COUNT=5', - }], - views: ['agenda'], - currentView: 'agenda', - currentDate: new Date(2021, 1, 1), - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/api/deleteRecurrence.ts b/e2e/testcafe-devextreme/tests/scheduler/common/api/deleteRecurrence.ts deleted file mode 100644 index 5f2de565c7db..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/api/deleteRecurrence.ts +++ /dev/null @@ -1,161 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; - -fixture.disablePageReloads`Scheduler API - deleteRecurrence` - .page(url(__dirname, '../../../container.html')); - -test('should delete recurrent appointment if mode is "series"', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('test-appt'); - const { appointmentTooltip } = scheduler; - - await t - .click(appointment.element) - .expect(appointmentTooltip.exists) - .ok() - .click(appointmentTooltip.deleteButton) - .expect(scheduler.getAppointmentCount()) - .eql(0); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 800, - height: 600, - views: [{ - type: 'day', - intervalCount: 3, - }], - currentView: 'day', - currentDate: new Date(2022, 3, 12), - startDayHour: 8, - endDayHour: 13, - onAppointmentDeleting: (e) => { - e.component.deleteRecurrence( - e.appointmentData, - e.targetedAppointmentData.startDate, - 'series', - ); - - e.cancel = true; - }, - dataSource: [{ - text: 'test-appt', - startDate: new Date(2022, 3, 12, 8), - endDate: new Date(2022, 3, 12, 9), - apptColor: 1, - recurrenceRule: 'FREQ=DAILY;COUNT=4', - }], - }, -)); - -test('should exclude from recurrence if mode is "occurrence"', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment0 = scheduler.getAppointment('test-appt', 0); - const appointment1 = scheduler.getAppointment('test-appt', 1); - const { appointmentTooltip } = scheduler; - - await t - .click(appointment0.element) - .expect(appointmentTooltip.exists) - .ok() - .click(appointmentTooltip.deleteButton) - .expect(scheduler.getAppointmentCount()) - .eql(2); - - const rect0 = await appointment0.element.boundingClientRect; - await t - .expect(rect0.left) - .within(318, 319) - .expect(rect0.top) - .within(140, 141); - - const rect1 = await appointment1.element.boundingClientRect; - await t - .expect(rect1.left) - .within(562, 563) - .expect(rect1.top) - .within(140, 141); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 800, - height: 600, - views: [{ - type: 'day', - intervalCount: 3, - }], - currentView: 'day', - currentDate: new Date(2022, 3, 12), - startDayHour: 8, - endDayHour: 12, - onAppointmentDeleting: (e) => { - e.component.deleteRecurrence( - e.appointmentData, - e.targetedAppointmentData.startDate, - 'occurrence', - ); - - e.cancel = true; - }, - dataSource: [{ - text: 'test-appt', - startDate: new Date(2022, 3, 12, 8), - endDate: new Date(2022, 3, 12, 9), - apptColor: 1, - recurrenceRule: 'FREQ=DAILY;COUNT=4', - }], - }, -)); - -test('should show delete recurrence dialog if mode is "dialog"', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('test-appt'); - const { appointmentTooltip } = scheduler; - const deleteRecurrenceDialog = Scheduler.getDeleteRecurrenceDialog(); - - await t - .click(appointment.element) - .expect(appointmentTooltip.isVisible()) - .ok() - .expect(appointmentTooltip.deleteButton.visible) - .ok() - .click(appointmentTooltip.deleteButton) - .wait(100) - .expect(scheduler.getAppointmentCount()) - .eql(3) - .click(deleteRecurrenceDialog.appointment) - .wait(100) - .expect(scheduler.getAppointmentCount()) - .eql(2); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 800, - height: 600, - views: [{ - type: 'day', - intervalCount: 3, - }], - currentView: 'day', - currentDate: new Date(2022, 3, 12), - startDayHour: 8, - endDayHour: 13, - onAppointmentDeleting: (e) => { - e.component.deleteRecurrence( - e.appointmentData, - e.targetedAppointmentData.startDate, - 'dialog', - ); - - e.cancel = true; - }, - dataSource: [{ - text: 'test-appt', - startDate: new Date(2022, 3, 12, 8), - endDate: new Date(2022, 3, 12, 9), - apptColor: 1, - recurrenceRule: 'FREQ=DAILY;COUNT=4', - }], - }, -)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/api/resourceRequestCount.ts b/e2e/testcafe-devextreme/tests/scheduler/common/api/resourceRequestCount.ts deleted file mode 100644 index 54de9bfa353c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/api/resourceRequestCount.ts +++ /dev/null @@ -1,190 +0,0 @@ -import { RequestLogger } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { resourceApiMock } from '../../apiMocks/resourceApiMock'; - -fixture`Scheduler API - request counting` - .page(url(__dirname, '../../../container.html')); - -test('Request should be requested only once for color appointments (week)', async (t) => { - const scheduler = new Scheduler('#container'); - const { requestLogger } = (t.ctx as any); - - await t.expect(scheduler.workSpace.exists).ok(); - await t.wait(300); - - const initialRequestCount = await requestLogger.count(() => true); - - await t.expect(initialRequestCount).eql(1); -}).before(async (t) => { - const requestLogger = RequestLogger(/\/api\/data/); - (t.ctx as any).requestLogger = requestLogger; - - await t.addRequestHooks(resourceApiMock); - await t.addRequestHooks(requestLogger); - await createWidget('dxScheduler', () => ({ - currentDate: new Date(2015, 6, 10), - views: ['week'], - currentView: 'week', - resources: [{ - field: 'ownerId', - dataSource: (window as any).DevExpress.data.AspNet.createStore({ - key: 'id', - loadUrl: 'https://api/data', - }), - }], - dataSource: [{ - text: 'a', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: 1, - }, { - text: 'b', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: 2, - }, { - text: 'c', - startDate: new Date(2015, 6, 10, 2), - endDate: new Date(2015, 6, 10, 2, 30), - ownerId: 1, - }], - })); -}); - -test('Request should be requested only once for color appointments (agenda)', async (t) => { - const scheduler = new Scheduler('#container'); - const { requestLogger } = (t.ctx as any); - - await t.expect(scheduler.workSpace.exists).ok(); - await t.wait(300); - - const initialRequestCount = await requestLogger.count(() => true); - - await t.expect(initialRequestCount).eql(1); -}).before(async (t) => { - const requestLogger = RequestLogger(/\/api\/data/); - (t.ctx as any).requestLogger = requestLogger; - - await t.addRequestHooks(resourceApiMock); - await t.addRequestHooks(requestLogger); - await createWidget('dxScheduler', () => ({ - currentDate: new Date(2015, 6, 10), - views: ['agenda'], - currentView: 'agenda', - resources: [{ - field: 'ownerId', - dataSource: (window as any).DevExpress.data.AspNet.createStore({ - key: 'id', - loadUrl: 'https://api/data', - }), - }], - dataSource: [{ - text: 'a', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: 1, - }, { - text: 'b', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: 2, - }, { - text: 'c', - startDate: new Date(2015, 6, 10, 2), - endDate: new Date(2015, 6, 10, 2, 30), - ownerId: 1, - }], - })); -}); - -test('Request should be requested only once for grouping', async (t) => { - const scheduler = new Scheduler('#container'); - const { requestLogger } = (t.ctx as any); - - await t.expect(scheduler.workSpace.exists).ok(); - await t.wait(300); - - const initialRequestCount = await requestLogger.count(() => true); - - await scheduler.option('groups', ['ownerId', 'roomId']); - await t.wait(300); - - const afterUpdateRequestCount = await requestLogger.count(() => true); - - await t.expect(initialRequestCount).eql(1); - await t.expect(afterUpdateRequestCount).eql(2); -}).before(async (t) => { - const requestLogger = RequestLogger(/\/api\/data/); - (t.ctx as any).requestLogger = requestLogger; - - await t.addRequestHooks(resourceApiMock); - await t.addRequestHooks(requestLogger); - await createWidget('dxScheduler', () => ({ - currentDate: new Date(2015, 6, 10), - dataSource: [], - resources: [{ - field: 'ownerId', - dataSource: (window as any).DevExpress.data.AspNet.createStore({ - key: 'id', - loadUrl: 'https://api/data', - }), - }, { - field: 'roomId', - dataSource: (window as any).DevExpress.data.AspNet.createStore({ - key: 'id', - loadUrl: 'https://api/data', - }), - }], - groups: ['ownerId'], - })); -}); - -test('should be no requests for no grouping and appointments without color', async (t) => { - const scheduler = new Scheduler('#container'); - const { requestLogger } = (t.ctx as any); - - await t.expect(scheduler.workSpace.exists).ok(); - await t.wait(300); - - const initialRequestCount = await requestLogger.count(() => true); - - await t.expect(initialRequestCount).eql(0); -}).before(async (t) => { - const requestLogger = RequestLogger(/\/api\/data/); - (t.ctx as any).requestLogger = requestLogger; - - await t.addRequestHooks(resourceApiMock); - await t.addRequestHooks(requestLogger); - await createWidget('dxScheduler', () => ({ - currentDate: new Date(2015, 6, 10), - currentView: 'week', - resources: [{ - field: 'ownerId', - dataSource: (window as any).DevExpress.data.AspNet.createStore({ - key: 'id', - loadUrl: 'https://api/data', - }), - }], - dataSource: [{ - text: 'a', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - }, { - text: 'b', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - }, { - text: 'c', - startDate: new Date(2015, 6, 10, 2), - endDate: new Date(2015, 6, 10, 2, 30), - }], - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png deleted file mode 100644 index 200647691e52..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png deleted file mode 100644 index eda300b37425..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=false,allDay=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png deleted file mode 100644 index c4109f1e106b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png deleted file mode 100644 index 1a83e856844c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form (recurring=true,allDay=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png deleted file mode 100644 index 7adcf787de77..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__icons-mode-none (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png deleted file mode 100644 index f80637f83361..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__mobile (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png deleted file mode 100644 index c9f862bd3e5e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__readonly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png deleted file mode 100644 index bebe27565124..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__resource-with-multiple-selection (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png deleted file mode 100644 index 5071aac04e14..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__startDate-calendar-opened (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png deleted file mode 100644 index 436343b8a71e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png deleted file mode 100644 index ecf9516754e2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png deleted file mode 100644 index 6e854b42344c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-labelMode-static (material.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png deleted file mode 100644 index 0961738332d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png deleted file mode 100644 index b22838e32985..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=false,allDay=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png deleted file mode 100644 index ce8f1f96a4fb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png deleted file mode 100644 index 0c66f698ea35..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-and-timezones (recurring=true,allDay=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png deleted file mode 100644 index 8304db18833d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__main-form__with-resources-with-icons (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png deleted file mode 100644 index d10c6419aefa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light)_mask.png deleted file mode 100644 index 35ea1968a61c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__daily (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png deleted file mode 100644 index 5b9e549c2be3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light)_mask.png deleted file mode 100644 index 35ea1968a61c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__hourly (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png deleted file mode 100644 index e28a1148fe9b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light)_mask.png deleted file mode 100644 index 02ad54490416..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__mobile (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png deleted file mode 100644 index 837906ad7391..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light)_mask.png deleted file mode 100644 index 8b94200caf06..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__monthly (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png deleted file mode 100644 index 71f952fa8b26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light)_mask.png deleted file mode 100644 index cbea79d4b285..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__readonly (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png deleted file mode 100644 index 1a523deb167b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light)_mask.png deleted file mode 100644 index cbea79d4b285..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__weekly (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png deleted file mode 100644 index eabaeba10d90..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light)_mask.png deleted file mode 100644 index a05e78aa6f4f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-icons (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png deleted file mode 100644 index a550e6b34cf1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light)_mask.png deleted file mode 100644 index 444949756a45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__with-labelMode-static (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png deleted file mode 100644 index 395855353dda..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light)_mask.png deleted file mode 100644 index 689c643dcbe8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-form__yearly (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png deleted file mode 100644 index 96b0dfc87d6a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/etalons/scheduler__appointment__recurrence-settings-button__focus-state (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.functional.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.functional.ts deleted file mode 100644 index c19f502568d1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.functional.ts +++ /dev/null @@ -1,139 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Appointment Form: Functional` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const roughEqualClientBoundingRect = (a: TextRectangle, b: TextRectangle): boolean => ( - Math.abs(a.width - b.width) < 1 - && Math.abs(a.height - b.height) < 1 - && Math.abs(a.top - b.top) < 1 - && Math.abs(a.left - b.left) < 1 -); - -test('Subject text editor should have focus after returning from recurrence form', async (t) => { - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true); - - await appointmentPopup.clickRecurrenceSettingsButton(t); - - await t.click(appointmentPopup.recurrence.backButton); - - await t - .expect(appointmentPopup.textEditor.getInput().focused) - .ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - }); -}); - -test('Recurrence start date editor should have focus after opening recurrence settings', async (t) => { - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true); - - await appointmentPopup.clickRecurrenceSettingsButton(t); - - await t - .expect(appointmentPopup.recurrence.startDateInput.focused) - .ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - }); -}); - -test('Popup should not change dimensions when switching groups and recurrence group height is larger', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await scheduler.openAppointmentPopup(t); - const boundingClientRect1 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await scheduler.appointmentPopup.selectRepeatValue(t, 'Weekly'); - const boundingClientRect2 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await t.click(scheduler.appointmentPopup.recurrence.backButton); - const boundingClientRect3 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await t - .expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect2)).ok() - .expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect3)).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - editing: { - form: { - items: [ - { - name: 'mainGroup', - items: ['repeatGroup'], - }, - 'recurrenceGroup', - ], - }, - }, - }); -}); - -test('Popup should not change dimensions when switching groups and main group height is larger', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await scheduler.openAppointmentPopup(t); - const boundingClientRect1 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await scheduler.appointmentPopup.selectRepeatValue(t, 'Weekly'); - const boundingClientRect2 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await t.click(scheduler.appointmentPopup.recurrence.backButton); - const boundingClientRect3 = await scheduler.appointmentPopup.contentElement.boundingClientRect; - - await t - .expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect2)).ok() - .expect(roughEqualClientBoundingRect(boundingClientRect1, boundingClientRect3)).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - editing: { - form: { - items: [ - 'mainGroup', - { - name: 'recurrenceGroup', - items: ['recurrenceStartDateGroup'], - }, - ], - }, - }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.visual.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.visual.ts deleted file mode 100644 index b43e43c3c238..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.visual.ts +++ /dev/null @@ -1,404 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { Themes } from '../../../../helpers/themes'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointment Form: Main Form` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const getResources = (withIcons = false) => ([ - { - fieldExpr: 'assigneeId', - allowMultiple: true, - label: 'Assignee', - dataSource: [ - { text: 'Samantha Bright', id: 1, color: '#727bd2' }, - { text: 'John Heart', id: 2, color: '#32c9ed' }, - { text: 'Todd Hoffman', id: 3, color: '#2a7ee4' }, - { text: 'Sandra Johnson', id: 4, color: '#7b49d3' }, - ], - icon: withIcons ? 'user' : undefined, - }, - { - fieldExpr: 'roomId', - label: 'Room', - dataSource: [ - { text: 'Room 1', id: 1, color: '#00af2c' }, - ], - icon: withIcons ? 'conferenceroomfilled' : undefined, - }, - { - fieldExpr: 'priorityId', - label: 'Priority', - dataSource: [ - { text: 'High', id: 1, color: '#cc5c53' }, - ], - icon: withIcons ? 'tags' : undefined, - }, -]); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -[ - { isRecurringAppointment: false, isAllDay: true }, - { isRecurringAppointment: false, isAllDay: false }, - { isRecurringAppointment: true, isAllDay: true }, - { isRecurringAppointment: true, isAllDay: false }, -].forEach(({ isRecurringAppointment, isAllDay }) => { - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: isAllDay, - recurrenceRule: isRecurringAppointment ? 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10' : undefined, - assigneeId: [1, 2], - roomId: 1, - priorityId: 1, - }; - - test.meta({ browserSize: [1500, 1500] })('appointment main form', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup( - t, - appointment, - isRecurringAppointment, - ); - - await testScreenshot( - t, - takeScreenshot, - `scheduler__appointment__main-form (recurring=${isRecurringAppointment},allDay=${isAllDay}).png`, - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [appointment], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - }); - }); - - test.meta({ browserSize: [1500, 1500] })('appointment main form with resources and timezones', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup( - t, - appointment, - isRecurringAppointment, - ); - - await testScreenshot( - t, - takeScreenshot, - `scheduler__appointment__main-form__with-resources-and-timezones (recurring=${isRecurringAppointment},allDay=${isAllDay}).png`, - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [appointment], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(), - editing: { - allowTimeZoneEditing: true, - }, - }); - }); -}); - -test.meta({ browserSize: [1500, 1500] })('main form with resources that have icons', async (t) => { - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - assigneeId: [1, 2], - roomId: 1, - priorityId: 1, - }; - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__with-resources-with-icons.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(true), -})); - -test.meta({ browserSize: [1500, 1500] })('appointment form readonly state', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - assigneeId: [1, 2], - roomId: 1, - priorityId: 1, - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__readonly.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(), - editing: { - allowUpdating: false, - allowTimeZoneEditing: true, - }, - }); -}); - -test.meta({ browserSize: [450, 1000] })('main form on mobile screen', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await scheduler.openAppointmentPopup(t, undefined, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__mobile.png', - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(true), - editing: { - form: { - iconsShowMode: 'both', - }, - }, -})); - -test.meta({ browserSize: [1500, 1500] })('main form without icons', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, undefined, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__icons-mode-none.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(true), - editing: { - form: { - iconsShowMode: 'none', - }, - }, -})); - -test.meta({ browserSize: [1500, 1500] })('appointment form resource with multiple selection', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - assigneeId: [1, 2, 3, 4], - roomId: 1, - priorityId: 1, - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__resource-with-multiple-selection.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(true), - editing: { - allowUpdating: true, - }, - }); -}); - -test.meta({ browserSize: [1500, 1500] })('appointment main form with opened startDate calendar', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - - await t.click(appointmentPopup.startDateEditor.dropDownEditorButton); - - const calendarPopup = appointmentPopup.startDateEditor.getPopup(); - await t.expect(await calendarPopup.isVisible()).ok(); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__startDate-calendar-opened.png', - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - }); -}); - -test.meta({ browserSize: [1500, 1500] })('Recurrence settings button should have correct focus state', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - allDay: false, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true); - - await t - .click(appointmentPopup.repeatEditor.element) - .pressKey('tab'); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__recurrence-settings-button__focus-state.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - }); -}); - -test.meta({ - browserSize: [1500, 1500], - themes: [Themes.genericLight, Themes.materialBlue, Themes.fluentBlue], -})('appointment form with labelMode=static', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, undefined, false); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__main-form__with-labelMode-static.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - resources: getResources(true), - editing: { - allowUpdating: true, - form: { - labelMode: 'static', - }, - }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/recurrence-form.visual.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/recurrence-form.visual.ts deleted file mode 100644 index ec1ebb158c7d..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/recurrence-form.visual.ts +++ /dev/null @@ -1,215 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture`Appointment Form: Recurrence Form` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -['Hourly', 'Daily', 'Weekly', 'Monthly', 'Yearly'].forEach((frequency) => { - test(`recurrence form in ${frequency} frequency`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Appointment', - startDate: new Date('2024-01-01T10:00:00'), - endDate: new Date('2024-01-01T11:00:00'), - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - - await appointmentPopup.selectRepeatValue(t, frequency); - - await testScreenshot( - t, - takeScreenshot, - `scheduler__appointment__recurrence-form__${frequency.toLowerCase()}.png`, - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2024, 0, 1), - })); -}); - -test('recurrence form with icons', async (t) => { - const appointment = { - text: 'Appointment', - startDate: new Date('2021-04-26T16:30:00.000Z'), - endDate: new Date('2021-04-26T18:30:00.000Z'), - assigneeId: [1, 2], - roomId: 1, - priorityId: 1, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=1', - }; - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true); - await appointmentPopup.clickRecurrenceSettingsButton(t); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__recurrence-form__with-icons.png', - { element: appointmentPopup.contentElement }, - ); - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - editing: { - form: { - iconsShowMode: 'both', - }, - }, -})); - -test('recurrence form readonly state', async (t) => { - const appointment = { - text: 'Readonly Recurrent Appointment', - startDate: new Date('2024-01-01T10:00:00'), - endDate: new Date('2024-01-01T11:00:00'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10', - }; - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, false); - await appointmentPopup.clickRecurrenceSettingsButton(t); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__recurrence-form__readonly.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2024, 0, 1), - editing: { - allowUpdating: false, - }, -})); - -test.meta({ browserSize: [450, 1000] })('recurrence form on mobile screen', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const appointmentPopup = await scheduler.openAppointmentPopup(t, undefined, false); - await appointmentPopup.selectRepeatValue(t, 'Weekly'); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__recurrence-form__mobile.png', - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - editing: { - form: { - iconsShowMode: 'both', - }, - }, -})); - -test.meta({ browserSize: [1500, 1500] })('recurrence form with labelMode=static', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointment = { - text: 'Readonly Recurrent Appointment', - startDate: new Date('2024-01-01T10:00:00'), - endDate: new Date('2024-01-01T11:00:00'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10', - }; - - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointmentPopup = await scheduler.openAppointmentPopup(t, appointment, true); - - await appointmentPopup.clickRecurrenceSettingsButton(t); - - await testScreenshot( - t, - takeScreenshot, - 'scheduler__appointment__recurrence-form__with-labelMode-static.png', - { element: appointmentPopup.contentElement }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 25), - editing: { - allowUpdating: true, - popup: { - width: 420, - height: 500, - }, - form: { - iconsShowMode: 'both', - labelMode: 'static', - items: [ - 'mainGroup', - { - name: 'recurrenceGroup', - items: [ - 'recurrenceStartDateGroup', - 'recurrenceRuleGroup', - { - name: 'recurrenceEndGroup', - items: [ - 'recurrenceEndIcon', - { - name: 'recurrenceEndEditor', - label: { - visible: true, - location: 'top', - }, - }, - ], - }, - ], - }, - ], - }, - }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentOverlapping/basic.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointmentOverlapping/basic.ts deleted file mode 100644 index 16cf33d07b93..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointmentOverlapping/basic.ts +++ /dev/null @@ -1,112 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Appointment overlapping in Scheduler` - .page(url(__dirname, '../../../container.html')); - -export const SIMPLE_DATA = [ - { - text: 'Appointment 1', - startDate: new Date(2017, 4, 24, 13, 0), - endDate: new Date(2017, 4, 25, 12, 30), - }, - { - text: 'Appointment 2', - startDate: new Date(2017, 4, 24, 15, 0), - endDate: new Date(2017, 4, 24, 16, 30), - }, - { - text: 'Appointment 3', - startDate: new Date(2017, 4, 25, 9, 0), - endDate: new Date(2017, 4, 25, 10, 30), - }, - { - text: 'Appointment 4', - startDate: new Date(2017, 4, 25, 11, 0), - endDate: new Date(2017, 4, 25, 12, 30), - }, - { - text: 'Appointment 5', - startDate: new Date(2017, 4, 25, 11, 0), - endDate: new Date(2017, 4, 25, 12, 0), - allDay: true, - }, -]; - -export const ALL_DAY_DATA = [ - { - text: 'Appointment 1', - startDate: new Date(2017, 4, 21, 9, 0), - endDate: new Date(2017, 4, 24, 10, 30), - allDay: true, - }, - { - text: 'Appointment 2', - startDate: new Date(2017, 4, 22, 11, 0), - endDate: new Date(2017, 4, 22, 12, 0), - allDay: true, - }, - { - text: 'Appointment 3', - startDate: new Date(2017, 4, 25, 9, 0), - endDate: new Date(2017, 4, 25, 10, 30), - }, - { - text: 'Appointment 4', - startDate: new Date(2017, 4, 25, 11, 0), - endDate: new Date(2017, 4, 25, 12, 0), - allDay: true, - }, -]; - -const SCHEDULER_DEFAULT_OPTIONS = { - views: ['week'], - width: 940, - currentView: 'week', - currentDate: new Date(2017, 4, 25), - startDayHour: 9, - height: 900, -}; - -test('Multi-day appointment should not overlap other appointments when specific width is set, \'auto\' mode (T864456)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment 1', 1); - - await t - .expect(scheduler.collectors.count).eql(3) - - .expect(parseInt(await appointment.size.height, 10)) - .eql(266) - - .expect(parseInt(await appointment.size.width, 10)) - .eql(94); -}).before(async () => createWidget('dxScheduler', { - ...SCHEDULER_DEFAULT_OPTIONS, - dataSource: SIMPLE_DATA, -})); - -test('Simple appointment should not overlap allDay appointment when specific width is set, \'auto\' mode (T864456)', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('Appointment 4'); - - await t - .expect(scheduler.collectors.count).eql(1) - .expect(await element.getBoundingClientRectProperty('top')).eql(138.828125); -}).before(async () => createWidget('dxScheduler', { - ...SCHEDULER_DEFAULT_OPTIONS, - dataSource: ALL_DAY_DATA, -})); - -test.meta({ runInTheme: Themes.genericLight })('Crossing allDay appointments should not overlap each other (T893674)', async (t) => { - const scheduler = new Scheduler('#container'); - const firstAppointment = scheduler.getAppointment('Appointment 1'); - const secondAppointment = scheduler.getAppointment('Appointment 2'); - - await t - .expect(await firstAppointment.element.getBoundingClientRectProperty('top')).notEql(await secondAppointment.element.getBoundingClientRectProperty('top')); -}).before(async () => createWidget('dxScheduler', { - ...SCHEDULER_DEFAULT_OPTIONS, - dataSource: ALL_DAY_DATA, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/T1017889.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/T1017889.ts deleted file mode 100644 index 095391ca4723..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/T1017889.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Timeline Appointments` - .page(url(__dirname, '../../../container.html')); - -test('all-day and ordinary appointments should overlap each other correctly in timeline views (T1017889)', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'timeline-overlapping-appointments.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Google AdWords Strategy', - startDate: new Date(2021, 1, 1, 10), - endDate: new Date(2021, 1, 1, 11), - allDay: true, - }, { - text: 'Brochure Design Review', - startDate: new Date(2021, 1, 1, 11, 30), - endDate: new Date(2021, 1, 1, 12, 30), - }], - views: ['timelineWeek'], - currentView: 'timelineWeek', - currentDate: new Date(2021, 1, 1), - firstDayOfWeek: 1, - startDayHour: 10, - endDayHour: 20, - cellDuration: 60, - height: 580, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/adaptive.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/adaptive.ts deleted file mode 100644 index a7fcc9a70621..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/adaptive.ts +++ /dev/null @@ -1,147 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointments with adaptive` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const MOBILE_SIZE: [width: number, height: number] = [500, 700]; - -['week', 'month'].forEach((view) => { - test.meta({ browserSize: MOBILE_SIZE })(`should correctly render appointment collectors (view:${view})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await testScreenshot( - t, - takeScreenshot, - `adaptive_appts_view-${view}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2023-12-20T10:00:00', - endDate: '2024-01-20T12:00:00', - allDay: true, - text: 'all-day #0 (long)', - }, - { - startDate: '2023-12-31T10:00:00', - endDate: '2024-01-06T12:00:00', - allDay: true, - text: 'all-day #1 (week-long)', - }, - { - startDate: '2024-01-01T10:00:00', - endDate: '2024-01-05T12:00:00', - allDay: true, - text: 'all-day #2', - }, - { - startDate: '2024-01-02T10:00:00', - endDate: '2024-01-04T12:00:00', - allDay: true, - text: 'all-day #3', - }, - { - startDate: '2024-01-03T10:00:00', - endDate: '2024-01-03T12:00:00', - allDay: true, - text: 'all-day #4 (single-day)', - }, - { - startDate: '2024-12-30T10:00:00', - endDate: '2024-01-20T12:00:00', - text: 'usual #0 (long)', - }, - { - startDate: '2024-01-03T01:30:00', - endDate: '2024-01-03T22:00:00', - text: 'usual #1 (day-long)', - }, - { - startDate: '2024-01-03T01:30:00', - endDate: '2024-01-03T02:30:00', - text: 'usual #2 (short)', - }, - { - startDate: '2024-01-03T02:30:00', - endDate: '2024-01-03T22:00:00', - text: 'usual #3 (day-long)', - }, - ], - adaptivityEnabled: true, - currentView: 'week', - currentDate: '2024-01-01T00:00:00', - })); -}); - -test.meta({ browserSize: MOBILE_SIZE })('should correctly render long appointments with disabled allDayPanel ()', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await testScreenshot( - t, - takeScreenshot, - 'adaptive_long-appts-without-all-day-panel_view-week.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2023-12-20T00:00:00', - endDate: '2024-01-20T02:00:00', - text: '#0 (long)', - }, - { - startDate: '2023-12-31T00:00:00', - endDate: '2024-01-06T02:00:00', - text: '#1 (week-long)', - }, - { - startDate: '2024-01-01T00:00:00', - endDate: '2024-01-05T02:00:00', - text: '#2', - }, - { - startDate: '2024-01-02T00:00:00', - endDate: '2024-01-04T02:00:00', - text: '#3', - }, - { - startDate: '2024-01-03T00:00:00', - endDate: '2024-01-03T02:00:00', - text: '#4 (single-day)', - }, - { - startDate: '2024-01-03T01:30:00', - endDate: '2024-01-03T22:00:00', - text: '#5', - }, - { - startDate: '2024-01-03T01:30:00', - endDate: '2024-01-03T02:30:00', - text: '#6', - }, - { - startDate: '2024-01-03T02:30:00', - endDate: '2024-01-03T22:00:00', - text: '#7', - }, - ], - adaptivityEnabled: true, - allDayPanelMode: 'hidden', - showAllDayPanel: false, - currentView: 'week', - currentDate: '2024-01-01T00:00:00', -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDay.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDay.ts deleted file mode 100644 index ea4bc09eb534..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDay.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler - All day appointments` - .page(url(__dirname, '../../../../container.html')); - -const data = [{ - text: '0', - startDate: new Date(2021, 3, 1), - endDate: new Date(2021, 3, 4), -}, { - text: '1', - startDate: new Date(2021, 3, 2), - endDate: new Date(2021, 3, 5, 0, 0, 1), -}, { - text: '2', - startDate: new Date(2021, 3, 2, 1), - endDate: new Date(2021, 3, 4, 23, 59), -}, { - text: '3 - Skip', - startDate: new Date(2021, 3, 3), - endDate: new Date(2021, 3, 4, 23, 59, 59), -}]; - -test('it should skip weekend days in workWeek', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'workweek_all-day_appointments_skip_weekend.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget( - 'dxScheduler', - { - dataSource: data, - views: [{ - type: 'workWeek', - intervalCount: 2, - startDate: new Date(2021, 2, 4), - }], - maxAppointmentsPerCell: 'unlimited', - currentView: 'workWeek', - currentDate: new Date(2021, 3, 5), - height: 300, - }, -)); - -test('it should skip weekend days in timelineWorkWeek', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'timeline-work-week_all-day_appointments_skip_weekend.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-cell-sizes-horizontal { width: 4px; }'); - - await createWidget( - 'dxScheduler', - { - width: 970, - height: 300, - dataSource: data, - cellDuration: 60, - views: [{ - type: 'timelineWorkWeek', - intervalCount: 2, - }], - maxAppointmentsPerCell: 'unlimited', - currentView: 'timelineWorkWeek', - currentDate: new Date(2021, 3, 2), - }, - ); -}); - -test('should work correctly for unsorted dataSource', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'allDay-unsorted-datasource.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget( - 'dxScheduler', - { - dataSource: [{ - id: 3, - text: '3', - startDate: new Date('2020-11-23T00:00:00.000'), - endDate: new Date('2020-11-28T00:00:00.000'), - allDay: true, - }, { - id: 5, - text: '5', - startDate: new Date('2020-11-27T00:00:00.000'), - endDate: new Date('2020-11-27T00:00:00.000'), - allDay: true, - }, { - id: 1, - text: '1', - startDate: new Date('2020-11-25T22:20:00.000'), - endDate: new Date('2020-11-26T12:30:00.000'), - }], - views: ['week'], - currentView: 'week', - showAllDayPanel: true, - currentDate: new Date(2020, 10, 25), - height: 600, - }, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.ts deleted file mode 100644 index 0f92155b9d53..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/allDayEndsAtMidnight.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler - All day appointments` - .page(url(__dirname, '../../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const VIEW_RANGE_HOURS = [ - [undefined, undefined], - [6, undefined], - [undefined, 18], - [6, 18], -]; - -const setViewOptions = (startDayHour, endDayHour) => { - const viewOptions: { startDayHour?: number; endDayHour?: number } = {}; - if (startDayHour) viewOptions.startDayHour = startDayHour; - if (endDayHour) viewOptions.endDayHour = endDayHour; - - return viewOptions; -}; - -['week', 'month', 'timelineDay', 'timelineMonth'].forEach((view) => { - VIEW_RANGE_HOURS.forEach(([startDayHour, endDayHour]) => { - test( - `all-day appointment ends at midnight. - view=${view}, startDayHour=${startDayHour}, endDayHour=${endDayHour} (T1128938)`, - async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `midnight_all-day-appt_view=${view}_start=${startDayHour}_end=${endDayHour}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }, - ).before(async () => { - await createWidget( - 'dxScheduler', - { - dataSource: [ - { - text: 'One day', - startDate: '2023-01-01T00:00:00', - endDate: '2023-01-01T00:00:00', - allDay: true, - }, - { - text: 'Two days', - startDate: '2023-01-01T00:00:00', - endDate: '2023-01-02T00:00:00', - allDay: true, - }, - ], - dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ss', - currentView: view, - currentDate: '2023-01-01T00:00:00', - height: 800, - cellDuration: 360, - maxAppointmentsPerCell: 2, - ...setViewOptions(startDayHour, endDayHour), - }, - ); - }); - }); -}); - -[ - 'timelineDay', - 'timelineMonth', -].forEach((view) => { - test(`all-day appointment ends at midnight of the next month. view=${view} (T1122382)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.scrollTo(new Date(2022, 11, 31, 23, 59)); - - await testScreenshot( - t, - takeScreenshot, - `midnight-next-month_all-day-appt_view=${view}_first.png`, - { element: scheduler.workSpace }, - ); - - await t.click(await scheduler.toolbar.navigator.nextButton()); - await t.wait(100); - await scheduler.scrollTo(new Date(2023, 0, 1, 0, 1)); - - await testScreenshot( - t, - takeScreenshot, - `midnight-next-month_all-day-appt_view=${view}_second.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget( - 'dxScheduler', - { - dataSource: [ - { - text: 'Two days', - startDate: '2022-12-31T00:00:00', - endDate: '2023-01-01T00:00:00', - allDay: true, - }, - ], - dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ss', - currentView: view, - currentDate: '2022-12-31T00:00:00', - height: 800, - }, - ); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png deleted file mode 100644 index 7927f2ac14f3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/allDay-unsorted-datasource (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png deleted file mode 100644 index 938429d96586..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_first (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png deleted file mode 100644 index 96c766b5a144..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineDay_second (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png deleted file mode 100644 index a6625b85dded..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_first (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png deleted file mode 100644 index e969845c2990..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight-next-month_all-day-appt_view=timelineMonth_second (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png deleted file mode 100644 index 61b220c4e82e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png deleted file mode 100644 index 61b220c4e82e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=6_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png deleted file mode 100644 index 61b220c4e82e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png deleted file mode 100644 index 61b220c4e82e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=month_start=undefined_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png deleted file mode 100644 index a7da15688336..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png deleted file mode 100644 index b80548ca44a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=6_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png deleted file mode 100644 index b7af746b7842..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png deleted file mode 100644 index ee60afac35c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineDay_start=undefined_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png deleted file mode 100644 index 92925a2a0ac2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png deleted file mode 100644 index 92925a2a0ac2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=6_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png deleted file mode 100644 index 92925a2a0ac2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png deleted file mode 100644 index 92925a2a0ac2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=timelineMonth_start=undefined_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png deleted file mode 100644 index dfad83a41035..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png deleted file mode 100644 index 3f90dc7bdd67..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=6_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png deleted file mode 100644 index 4b83d95e2eed..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png deleted file mode 100644 index 697db6e6d8d6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/midnight_all-day-appt_view=week_start=undefined_end=undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png deleted file mode 100644 index 357aaf6b9939..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/timeline-work-week_all-day_appointments_skip_weekend (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png deleted file mode 100644 index a81cc7d2991c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/allDay/etalons/workweek_all-day_appointments_skip_weekend (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/appointment_collector.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/appointment_collector.ts deleted file mode 100644 index 9bc4851ea7ed..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/appointment_collector.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Appointment Editing` - .page(url(__dirname, '../../../container.html')); - -const dataSource = [{ - text: 'appointment1', - startDate: new Date('2021-04-02T07:30:00.000Z'), - endDate: new Date('2021-04-02T09:00:00.000Z'), -}, { - text: 'appointment2', - startDate: new Date('2021-04-02T07:35:00.000Z'), - endDate: new Date('2021-04-02T09:05:00.000Z'), -}]; -const config = { - dataSource, - timeZone: 'America/Los_Angeles', - currentDate: new Date(2021, 3, 2), - maxAppointmentsPerCell: 1, -}; - -['day', 'week', 'month', 'timelineDay', 'timelineWeek', 'timelineMonth'].forEach((view) => { - test(`appointmentCollectorTemplate should render with appointments data on ${view} view`, async (t) => { - const renderedData = await ClientFunction(() => (window as any).appointmentCollectorArgsData)(); - - await t.expect(renderedData).eql({ - appointmentCount: 1, - isCompact: ['day', 'week'].includes(view), - items: [dataSource[1]], - }); - }) - .before(async () => createWidget('dxScheduler', { - ...config, - dataSource, - views: [view], - currentView: view, - appointmentCollectorTemplate(data: any) { - (window as any).appointmentCollectorArgsData = data; - return document.createElement('div'); - }, - })) - .after(() => ClientFunction(() => { - (window as any).appointmentCollectorArgsData = undefined; - })()); - - test(`appointmentCollectorTemplate in view config should render with appointments data on ${view} view`, async (t) => { - const renderedData = await ClientFunction(() => (window as any).appointmentCollectorArgsData)(); - - await t.expect(renderedData).eql({ - appointmentCount: 1, - isCompact: ['day', 'week'].includes(view), - items: [dataSource[1]], - }); - }) - .before(async () => createWidget('dxScheduler', { - ...config, - dataSource, - views: [{ - type: view, - appointmentCollectorTemplate(data: any) { - (window as any).appointmentCollectorArgsData = data; - return document.createElement('div'); - }, - }], - currentView: view, - })) - .after(() => ClientFunction(() => { - (window as any).appointmentCollectorArgsData = undefined; - })()); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/dependendOptions.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/dependendOptions.ts deleted file mode 100644 index 6ca0f9519e93..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/dependendOptions.ts +++ /dev/null @@ -1,32 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Appointment dependend options` - .page(url(__dirname, '../../../container.html')); - -test.meta({ runInTheme: Themes.genericLight })('cellDuration (T1076138)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('test-appt'); - - await scheduler.option('cellDuration', 30); - - await t - .expect(appointment.element.clientHeight) - .within(132, 133); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'test-appt', - startDate: new Date(2021, 3, 27, 10), - endDate: new Date(2021, 3, 27, 11, 20), - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - startDayHour: 9, - endDayHour: 18, - width: 600, - height: 600, - cellDuration: 20, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/displayArguments.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/displayArguments.ts deleted file mode 100644 index be5c739603bc..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/displayArguments.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Display* arguments in appointment templates and events` - .page(url(__dirname, '../../../container.html')); - -[undefined, 'America/Los_Angeles'].forEach((timeZone) => { - test(`displayStartDate and displayEndDate arguments should be right with timeZone='${timeZone}'`, async (t) => { - const scheduler = new Scheduler('#container'); - const etalon = '09:30:00 10:00:00'; - - await t.doubleClick(scheduler.getDateTableCell(1, 0)); - - await t - .typeText(scheduler.appointmentPopup.textEditor.element, 'text') - .click(scheduler.appointmentPopup.saveButton.element); - - await t - .expect(scheduler.getAppointmentByIndex(0).element.innerText) - .eql(etalon); - - await t - .click(scheduler.getAppointmentByIndex(0).element) - .expect(scheduler.appointmentTooltip.getListItem(undefined, 0).element.innerText) - .eql(etalon); - - await t - .expect(ClientFunction(() => (window as any).testDisplayValue)()) - .eql(etalon); - }).before(async () => createWidget('dxScheduler', { - timeZone, - dataSource: [], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 1, 15), - startDayHour: 9, - height: 600, - - onAppointmentClick: ClientFunction((model) => { - const { displayStartDate, displayEndDate } = model.targetedAppointmentData; - - (window as any).testDisplayValue = `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; - }), - - appointmentTooltipTemplate: (model) => { - const { displayStartDate, displayEndDate } = model.targetedAppointmentData; - - return `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; - }, - - appointmentTemplate: (model) => { - const { displayStartDate, displayEndDate } = model.targetedAppointmentData; - - return `${displayStartDate.toLocaleTimeString('en-US', { hour12: false })} ${displayEndDate.toLocaleTimeString('en-US', { hour12: false })}`; - }, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png deleted file mode 100644 index 9212c9f83344..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png deleted file mode 100644 index 9212c9f83344..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_appts_view-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png deleted file mode 100644 index af2d72b6b8c3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/adaptive_long-appts-without-all-day-panel_view-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/appointment-popup-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/appointment-popup-screenshot (fluent.blue.light).png deleted file mode 100644 index 280269f5799c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/appointment-popup-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png deleted file mode 100644 index 4e044f9e4606..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png deleted file mode 100644 index 26b5f6e12909..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png deleted file mode 100644 index d55d801d7d5c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/multiday-appointment_week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png deleted file mode 100644 index 88a545298a54..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timeline-overlapping-appointments (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png deleted file mode 100644 index ad91772ef2e3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/etalons/timelineMonth-appt-order (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.ts deleted file mode 100644 index acd4a424d323..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/allDay.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: max appointments per cell: All day` - .page(url(__dirname, '../../../../container.html')); - -['auto', 'unlimited', 1, 3, 10].forEach((maxAppointmentsPerCellValue) => { - test(`All day appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async (t) => { - const { compareResults, takeScreenshot } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `all-day-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, - { element: scheduler.allDayRow }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test_26', - startDate: new Date(2021, 3, 26), - endDate: new Date(2021, 3, 26), - allDay: true, - }, { - text: 'test_27', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'test_27', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }], - maxAppointmentsPerCell: maxAppointmentsPerCellValue, - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 3, 29), - startDayHour: 9, - allDayPanelMode: 'allDay', - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.ts deleted file mode 100644 index 5e538f6bdff8..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/day.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: max appointments per cell: Day` - .page(url(__dirname, '../../../../container.html')); - -['auto', 'unlimited', 3, 10].forEach((maxAppointmentsPerCellValue) => { - test(`Day appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async (t) => { - const { compareResults, takeScreenshot } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `day-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test_1', - startDate: new Date(2021, 3, 27, 9), - endDate: new Date(2021, 3, 27, 9, 30), - }, { - text: 'test_2', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_3', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_4', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_5', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_6', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_7', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_8', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_9', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_10', - startDate: new Date(2021, 3, 27, 10), - endDate: new Date(2021, 3, 27, 11), - }, { - text: 'test_1', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_12', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_13', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_14', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_15', - startDate: new Date(2021, 3, 27, 10, 30), - endDate: new Date(2021, 3, 27, 11, 30), - }, { - text: 'test_16', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 12, 30), - }, { - text: 'test_17', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 14), - }, { - text: 'test_18', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 13, 30), - }], - maxAppointmentsPerCell: maxAppointmentsPerCellValue, - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - startDayHour: 9, - height: 700, - width: 500, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index 47b16fc3226d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png deleted file mode 100644 index 1b953ab2937d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png deleted file mode 100644 index 60e711e93426..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png deleted file mode 100644 index 47b16fc3226d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png deleted file mode 100644 index 33d343660377..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/all-day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png deleted file mode 100644 index aaa48418b2b3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png deleted file mode 100644 index 751429d3faa9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png deleted file mode 100644 index 81e75e4d096f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png deleted file mode 100644 index 7377c8eaa2b0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/day-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index 8d8171339466..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png deleted file mode 100644 index 966f37bbbf29..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png deleted file mode 100644 index eae979bd6e8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png deleted file mode 100644 index eae979bd6e8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png deleted file mode 100644 index b60d1e6e4b09..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/month-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index 0bef9a8cd7dd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png deleted file mode 100644 index 9e79f48c5201..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png deleted file mode 100644 index b43cd0314278..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=20 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png deleted file mode 100644 index 5057864613c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png deleted file mode 100644 index 801c1372d10d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png deleted file mode 100644 index 217dd7413c09..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/timeline-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png deleted file mode 100644 index 042df2be2f6d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=10 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png deleted file mode 100644 index 48dbe6d2f111..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png deleted file mode 100644 index 0f12f2df1885..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=auto (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png deleted file mode 100644 index ed8709675cba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/etalons/week-appointment-maxAppointmentsPerCell=unlimited (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.ts deleted file mode 100644 index 3a28126be015..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/month.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: max appointments per cell: Month` - .page(url(__dirname, '../../../../container.html')); - -['auto', 'unlimited', 1, 3, 10].forEach((maxAppointmentsPerCellValue) => { - test(`Month appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async (t) => { - const { compareResults, takeScreenshot } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `month-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test_26', - startDate: new Date(2021, 3, 26), - endDate: new Date(2021, 3, 26), - allDay: true, - }, { - text: 'test_27', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'test_27', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_28', - startDate: new Date(2021, 3, 28), - endDate: new Date(2021, 3, 28), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_29', - startDate: new Date(2021, 3, 29), - endDate: new Date(2021, 3, 29), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }, { - text: 'test_30', - startDate: new Date(2021, 3, 30), - endDate: new Date(2021, 3, 30), - allDay: true, - }], - maxAppointmentsPerCell: maxAppointmentsPerCellValue, - views: ['month'], - currentView: 'month', - currentDate: new Date(2021, 3, 29), - startDayHour: 9, - height: 700, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.ts deleted file mode 100644 index 5efc82d725f2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/timeline.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: max appointments per cell: Timeline` - .page(url(__dirname, '../../../../container.html')); - -['auto', 'unlimited', 1, 3, 10, 20].forEach((maxAppointmentsPerCellValue) => { - test(`Timeline appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async (t) => { - const { compareResults, takeScreenshot } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `timeline-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test_1', - startDate: new Date(2021, 3, 27, 9), - endDate: new Date(2021, 3, 27, 9, 30), - }, { - text: 'test_2', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_3', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_4', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_5', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_6', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_7', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_8', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_9', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_10', - startDate: new Date(2021, 3, 27, 10), - endDate: new Date(2021, 3, 27, 11), - }, { - text: 'test_1', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_12', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_13', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_14', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_15', - startDate: new Date(2021, 3, 27, 10, 30), - endDate: new Date(2021, 3, 27, 11, 30), - }, { - text: 'test_16', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 12, 30), - }, { - text: 'test_17', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 14), - }, { - text: 'test_18', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 13, 30), - }], - maxAppointmentsPerCell: maxAppointmentsPerCellValue, - views: ['timelineDay'], - currentView: 'timelineDay', - currentDate: new Date(2021, 3, 27), - startDayHour: 9, - height: 700, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.ts deleted file mode 100644 index dc0bba96a399..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/maxAppointmentsPerCell/week.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: max appointments per cell: Week` - .page(url(__dirname, '../../../../container.html')); - -['auto', 'unlimited', 3, 10].forEach((maxAppointmentsPerCellValue) => { - test(`Week appointments should have correct height in maxAppointmentsPerCell=${maxAppointmentsPerCellValue}`, async (t) => { - const { compareResults, takeScreenshot } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `week-appointment-maxAppointmentsPerCell=${maxAppointmentsPerCellValue}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test_1', - startDate: new Date(2021, 3, 27, 9), - endDate: new Date(2021, 3, 27, 9, 30), - }, { - text: 'test_2', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_3', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_4', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_5', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_6', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_7', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_8', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_9', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_10', - startDate: new Date(2021, 3, 27, 10), - endDate: new Date(2021, 3, 27, 11), - }, { - text: 'test_1', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_12', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_13', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_14', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 10), - }, { - text: 'test_15', - startDate: new Date(2021, 3, 27, 10, 30), - endDate: new Date(2021, 3, 27, 11, 30), - }, { - text: 'test_16', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 12, 30), - }, { - text: 'test_17', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 14), - }, { - text: 'test_18', - startDate: new Date(2021, 3, 27, 12), - endDate: new Date(2021, 3, 27, 13, 30), - }], - maxAppointmentsPerCell: maxAppointmentsPerCellValue, - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 3, 29), - startDayHour: 9, - height: 700, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday.ts deleted file mode 100644 index d04bbc455389..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday.ts +++ /dev/null @@ -1,323 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Scheduler - Multiday appointments` - .page(url(__dirname, '../../../container.html')); - -const checkAllDayAppointment = async ( - t: TestController, - scheduler: Scheduler, - title: string, - index: number, - reduceType: 'head' | 'body' | 'tail' | undefined, - width: number, -): Promise => { - const appointment = scheduler.getAppointment(title, index); - const isReduced = reduceType !== undefined; - - await t - .expect(appointment.reducedIcon.exists) - .eql(isReduced) - .expect(appointment.isReducedHead) - .eql(reduceType === 'head') - .expect(appointment.isReducedBody) - .eql(reduceType === 'body') - .expect(appointment.isReducedTail) - .eql(reduceType === 'tail') - .expect(appointment.isAllDay) - .ok() - .expect(appointment.element.clientWidth) - .within(width - 1, width + 1); -}; - -const checkRegularAppointment = async ( - t: TestController, - scheduler: Scheduler, - title: string, - index: number, - reduceType: 'head' | 'body' | 'tail' | undefined, - height: number, -): Promise => { - const appointment = scheduler.getAppointment(title, index); - const isReduced = reduceType !== undefined; - - await t - .expect(appointment.reducedIcon.exists) - .eql(isReduced) - .expect(appointment.isReducedHead) - .eql(reduceType === 'head') - .expect(appointment.isReducedBody) - .eql(reduceType === 'body') - .expect(appointment.isReducedTail) - .eql(reduceType === 'tail') - .expect(appointment.element.clientHeight) - .within(height - 1, height + 1); -}; - -test.meta({ runInTheme: Themes.genericLight })('it should render multi-day and multi-view appointments correctly if allDayPanelMode is "hidden"', async (t) => { - const scheduler = new Scheduler('#container'); - - let appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(4); - - await checkRegularAppointment(t, scheduler, 'appt-00', 0, undefined, 200); - - await checkRegularAppointment(t, scheduler, 'appt-01', 0, 'head', 100); - for (let i = 1; i < appointmentCount - 2; i += 1) { - await checkRegularAppointment(t, scheduler, 'appt-01', i, 'body', 200); - } - - await t - .click(scheduler.toolbar.navigator.nextButton); - - appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(7); - - for (let i = 0; i < appointmentCount; i += 1) { - await checkRegularAppointment(t, scheduler, 'appt-01', i, 'body', 200); - } - - await t - .click(scheduler.toolbar.navigator.nextButton); - - appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(3); - await checkRegularAppointment(t, scheduler, 'appt-01', 0, 'body', 200); - await checkRegularAppointment(t, scheduler, 'appt-01', 1, 'body', 200); - await checkRegularAppointment(t, scheduler, 'appt-01', 2, 'tail', 50); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 900, - height: 400, - dataSource: [{ - text: 'appt-00', - startDate: new Date(2021, 2, 22, 8), - endDate: new Date(2021, 2, 22, 10, 30), - }, { - text: 'appt-01', - startDate: new Date(2021, 2, 25, 9), - endDate: new Date(2021, 3, 6, 8, 30), - }], - views: ['week', 'month', 'timelineMonth'], - currentView: 'week', - currentDate: new Date(2021, 2, 21), - startDayHour: 8, - endDayHour: 10, - allDayPanelMode: 'hidden', - }, -)); - -test.meta({ runInTheme: Themes.genericLight })('it should render all-day appointments if allDayPanelMode is "all"', async (t) => { - const scheduler = new Scheduler('#container'); - - let appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(2); - await checkAllDayAppointment(t, scheduler, 'appt-00', 0, undefined, 109); - await checkAllDayAppointment(t, scheduler, 'appt-01', 0, 'head', 337); - - await t - .click(scheduler.toolbar.navigator.nextButton); - - appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(1); - await checkAllDayAppointment(t, scheduler, 'appt-01', 0, 'body', 793); - - await t - .click(scheduler.toolbar.navigator.nextButton); - - appointmentCount = await scheduler.getAppointmentCount(); - await t - .expect(appointmentCount) - .eql(1); - await checkAllDayAppointment(t, scheduler, 'appt-01', 0, 'tail', 337); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 900, - height: 400, - dataSource: [{ - text: 'appt-00', - startDate: new Date(2021, 2, 22, 8), - endDate: new Date(2021, 2, 22, 10, 30), - allDay: true, - }, { - text: 'appt-01', - startDate: new Date(2021, 2, 25, 9), - endDate: new Date(2021, 3, 6, 8, 30), - }], - views: ['week', 'month', 'timelineMonth'], - currentView: 'week', - currentDate: new Date(2021, 2, 21), - startDayHour: 8, - endDayHour: 10, - allDayPanelMode: 'all', - }, -)); - -test('it should render all-day and multi-day appointments if allDayPanelMode is "allDay"', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentCount()) - .eql(5); - - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 117); - await checkRegularAppointment(t, scheduler, 'multiDay', 0, 'head', 151); - await checkRegularAppointment(t, scheduler, 'multiDay', 1, 'body', 151); - await checkRegularAppointment(t, scheduler, 'multiDay', 2, 'body', 151); - await checkRegularAppointment(t, scheduler, 'multiDay', 3, 'tail', 113); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 900, - height: 400, - dataSource: [{ - text: 'allDay', - startDate: new Date(2021, 2, 22), - allDay: true, - }, { - text: 'multiDay', - startDate: new Date(2021, 2, 22, 8), - endDate: new Date(2021, 2, 25, 9, 30), - }], - views: ['week', 'month', 'timelineMonth'], - currentView: 'week', - currentDate: new Date(2021, 2, 21), - startDayHour: 8, - endDayHour: 10, - allDayPanelMode: 'allDay', - }, -)); - -test('it should correctly change allDayPanelOption at runtime', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentCount()) - .eql(2); - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 103); - await checkAllDayAppointment(t, scheduler, 'multiDay', 0, undefined, 417); - - await scheduler.option('allDayPanelMode', 'allDay'); - await t - .expect(scheduler.getAppointmentCount()) - .eql(5); - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 103); - await checkRegularAppointment(t, scheduler, 'multiDay', 0, 'head', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 1, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 2, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 3, 'tail', 113); - - await scheduler.option('allDayPanelMode', 'hidden'); - await t - .expect(scheduler.getAppointmentCount()) - .eql(5) - .expect(scheduler.allDayTableCells.exists) - .notOk(); - await checkRegularAppointment(t, scheduler, 'allDay', 0, undefined, 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 0, 'head', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 1, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 2, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 3, 'tail', 113); - - await scheduler.option('allDayPanelMode', 'allDay'); - await t - .expect(scheduler.getAppointmentCount()) - .eql(5); - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 103); - await checkRegularAppointment(t, scheduler, 'multiDay', 0, 'head', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 1, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 2, 'body', 303); - await checkRegularAppointment(t, scheduler, 'multiDay', 3, 'tail', 113); - await scheduler.option('allDayPanelMode', 'all'); - await t - .expect(scheduler.getAppointmentCount()) - .eql(2); - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 103); - await checkAllDayAppointment(t, scheduler, 'multiDay', 0, undefined, 417); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 800, - height: 600, - dataSource: [ - { - text: 'allDay', - startDate: new Date(2021, 2, 22), - allDay: true, - }, - { - text: 'multiDay', - startDate: new Date(2021, 2, 22, 8), - endDate: new Date(2021, 2, 25, 9, 30), - }], - views: ['week', 'workWeek'], - currentView: 'week', - currentDate: new Date(2021, 2, 22), - maxAppointmentsPerCell: 2, - startDayHour: 8, - endDayHour: 12, - }, -)); - -test.meta({ runInTheme: Themes.genericLight })('it should correctly handle allDayPanelMode for the workspace', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentCount()) - .eql(2); - - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 109); - await checkAllDayAppointment(t, scheduler, 'multiDay', 0, undefined, 451); - - await t - .click(scheduler.toolbar.viewSwitcher.getButton('weekAllDay').element) - .expect(scheduler.getAppointmentCount()) - .eql(5); - - await checkAllDayAppointment(t, scheduler, 'allDay', 0, undefined, 109); - await checkRegularAppointment(t, scheduler, 'multiDay', 0, 'head', 200); - await checkRegularAppointment(t, scheduler, 'multiDay', 1, 'body', 200); - await checkRegularAppointment(t, scheduler, 'multiDay', 2, 'body', 200); - await checkRegularAppointment(t, scheduler, 'multiDay', 3, 'tail', 150); -}).before(async () => createWidget( - 'dxScheduler', - { - width: 900, - height: 400, - dataSource: [{ - text: 'allDay', - startDate: new Date(2021, 2, 22), - allDay: true, - }, { - text: 'multiDay', - startDate: new Date(2021, 2, 22, 8), - endDate: new Date(2021, 2, 25, 9, 30), - }], - views: [ - 'week', - { - type: 'week', - name: 'weekAllDay', - allDayPanelMode: 'allDay', - }, - ], - currentView: 'week', - currentDate: new Date(2021, 2, 21), - startDayHour: 8, - endDayHour: 10, - }, -)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday_screenshot.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday_screenshot.ts deleted file mode 100644 index e4699913e793..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/multiday_screenshot.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler - Multiday appointments (screenshot)` - .page(url(__dirname, '../../../container.html')); - -[ - 'week', - 'month', - 'timelineMonth', -].forEach((currentView) => { - test(`it should not cut multiday appointment in ${currentView} view`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, `multiday-appointment_${currentView}.png`, { - element: scheduler.element, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget( - 'dxScheduler', - { - width: 900, - height: 400, - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 28, 8), - endDate: new Date(2021, 3, 4, 8), - }], - views: ['week', 'month', 'timelineMonth'], - currentView, - currentDate: new Date(2021, 3, 4), - startDayHour: 12, - }, - ); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/onAppointmentDeleting.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/onAppointmentDeleting.ts deleted file mode 100644 index 4fdcee017db2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/onAppointmentDeleting.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`onAppointmentDeleting event` - .page(url(__dirname, '../../../container.html')); - -const data = [ - { - text: 'Brochure Design Review', - startDate: new Date(2021, 3, 27, 1, 30), - endDate: new Date(2021, 3, 27, 2, 30), - }, -]; - -[{ - cancel: false, - expectedCount: 0, -}, { - cancel: true, - expectedCount: 1, -}].forEach(({ cancel, expectedCount }) => { - test(`UI behaviour should be valid in case argument pass boolean value, e.cancel=${cancel}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Brochure Design Review'); - const { appointmentTooltip } = scheduler; - - await t - .click(appointment.element) - .expect(appointmentTooltip.isVisible()) - .ok() - .click(appointmentTooltip.deleteButton) - .expect(scheduler.getAppointmentCount()) - .eql(expectedCount); - }).before(async () => createWidget('dxScheduler', { - dataSource: data, - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - startDayHour: 1, - endDayHour: 7, - height: 600, - cellDuration: 30, - onAppointmentDeleting: ClientFunction((e) => { - e.cancel = cancel; - }, { - dependencies: { cancel }, - }), - })); - - test(`UI behaviour should be valid in case argument pass Promise resolved, e.cancel=${cancel}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Brochure Design Review'); - const { appointmentTooltip } = scheduler; - - await t - .click(appointment.element) - .expect(appointmentTooltip.isVisible()) - .ok() - .click(appointmentTooltip.deleteButton) - .expect(scheduler.getAppointmentCount()) - .eql(expectedCount); - }).before(async () => createWidget('dxScheduler', { - dataSource: data, - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - startDayHour: 1, - endDayHour: 7, - height: 600, - cellDuration: 30, - onAppointmentDeleting: ClientFunction((e) => { - e.cancel = new Promise((resolve) => { - resolve(cancel); - }); - }, { - dependencies: { cancel }, - }), - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/resources.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/resources.ts deleted file mode 100644 index f5ee13486136..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/resources.ts +++ /dev/null @@ -1,214 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import TagBox from 'devextreme-testcafe-models/tagBox'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Appointment resources` - .page(url(__dirname, '../../../container.html')); - -const dataSource = [{ - text: 'test-appt-1', - priorityId: 1, - typeId: 2, - startDate: new Date('2021-05-26T06:45:00.000Z'), - endDate: new Date('2021-05-26T09:15:00.000Z'), -}, { - text: 'test-appt-2', - priorityId: 2, - typeId: 1, - startDate: new Date('2021-05-26T06:45:00.000Z'), - endDate: new Date('2021-05-26T09:15:00.000Z'), -}]; - -const priorityData = [{ - text: 'Low Priority', - id: 1, - color: 'rgb(252, 182, 94)', -}, { - text: 'High Priority', - id: 2, - color: 'rgb(225, 142, 146)', -}]; - -test('Resource color should be correct if group is set in "views"', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment1 = scheduler.getAppointment('test-appt-1'); - const appointment2 = scheduler.getAppointment('test-appt-2'); - - await t - .expect(appointment1.getColor()).eql(priorityData[0].color) - .expect(appointment2.getColor()).eql(priorityData[1].color); -}).before(async () => createWidget('dxScheduler', { - height: 600, - dataSource, - views: [{ - type: 'workWeek', - startDayHour: 9, - endDayHour: 18, - groups: ['priorityId'], - }], - currentView: 'workWeek', - currentDate: new Date(2021, 4, 25), - resources: [{ - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: priorityData, - label: 'Priority', - }, { - fieldExpr: 'typeId', - allowMultiple: false, - dataSource: [{ - id: 1, - color: '#b6d623', - }, { - id: 2, - color: '#679ec5', - }], - }], -})); - -test('Scheduler should renders correctly if resource dataSource is not set', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment1 = scheduler.getAppointment('Appt-1'); - const appointment2 = scheduler.getAppointment('Appt-2'); - - await t - .expect(appointment1.element.exists) - .ok() - .expect(appointment2.element.exists) - .ok(); -}).before(async () => createWidget( - 'dxScheduler', - { - height: 600, - width: 800, - dataSource: [{ - text: 'Appt-1', - startDate: new Date(2021, 3, 27, 10), - endDate: new Date(2021, 3, 27, 12), - }, { - text: 'Appt-2', - startDate: new Date(2021, 3, 29, 11), - endDate: new Date(2021, 3, 29, 13), - }], - views: ['workWeek'], - currentView: 'workWeek', - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - endDayHour: 14, - resources: [{ - fieldExpr: 'roomId', - label: 'Room', - }], - }, -)); - -test('Resource with allowMultiple should be set correctly for new the appointment (T1075028)', async (t) => { - const scheduler = new Scheduler('#container'); - const cell = scheduler.getDateTableCell(2, 0); - - await t - .doubleClick(cell) - .expect(scheduler.appointmentPopup.popup.isVisible()) - .ok(); - - const resourceTagBox = new TagBox('.dx-tagbox'); - await t - .expect(resourceTagBox.element.exists) - .ok() - .click(resourceTagBox.element); - - const resourceTagBoxPopup = resourceTagBox.getPopup(); - const resourceTagBoxList = resourceTagBox.getList(); - await t - .expect((await resourceTagBoxPopup).exists) - .ok() - .click((await resourceTagBoxList).getItem(0).element) - .expect(resourceTagBox.tags.exists) - .ok() - .expect(resourceTagBox.tags.count) - .eql(1); -}).before(async () => createWidget('dxScheduler', { - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - startDayHour: 9, - endDayHour: 14, - resources: [{ - fieldExpr: 'test_Id', - allowMultiple: true, - dataSource: [{ - text: 'Test-0', - id: 1, - }, { - text: 'Test-1', - id: 2, - }], - label: 'MultipleResource', - }], -})); - -test.meta({ runInTheme: Themes.genericLight })('Resource color should be correct for the complex resource id without grouping', async (t) => { - const scheduler = new Scheduler('#container'); - const appointmentA = scheduler.getAppointment('a'); - const appointmentB = scheduler.getAppointment('b'); - const appointmentC = scheduler.getAppointment('c'); - - await t - .expect(appointmentA.getColor()) - .eql('rgb(255, 0, 0)') - .expect(appointmentB.getColor()) - .eql('rgb(0, 128, 0)') - .expect(appointmentC.getColor()) - .eql('rgb(255, 255, 0)'); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2015, 6, 10), - views: ['week'], - currentView: 'week', - editing: true, - dataSource: [{ - text: 'a', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: { _value: 'guid-1' }, - }, { - text: 'b', - allDay: true, - startDate: new Date(2015, 6, 10, 0), - endDate: new Date(2015, 6, 10, 0, 30), - ownerId: { _value: 'guid-2' }, - }, { - text: 'c', - startDate: new Date(2015, 6, 10, 2), - endDate: new Date(2015, 6, 10, 2, 30), - ownerId: { _value: 'guid-3' }, - }], - resources: [ - { - field: 'ownerId', - dataSource: [ - { - id: { _value: 'guid-1' }, - text: 'one', - color: 'rgb(255, 0, 0)', - }, - { - id: { _value: 'guid-2' }, - text: 'two', - color: 'rgb(0, 128, 0)', - }, - { - id: { _value: 'guid-3' }, - text: 'three', - color: 'rgb(255, 255, 0)', - }, - ], - }, - ], - scrolling: { - orientation: 'vertical', - }, - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineMonth.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineMonth.ts deleted file mode 100644 index 21746ccf4d28..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineMonth.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointments in TimelineMonth` - .page(url(__dirname, '../../../container.html')); - -test('Appointments should have correct order', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'timelineMonth-appt-order.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2016, 1, 2), - dataSource: [ - { - text: 'appt-01', - startDate: new Date(2016, 1, 1, 9, 0), - endDate: new Date(2016, 1, 1, 10, 30), - }, { - text: 'appt-02', - startDate: new Date(2016, 1, 1, 11, 30), - endDate: new Date(2016, 1, 1, 14, 15), - }, { - text: 'appt-03', - startDate: new Date(2016, 1, 1, 15, 15), - endDate: new Date(2016, 1, 1, 17, 15), - }, { - text: 'appt-04', - startDate: new Date(2016, 1, 1, 18, 45), - endDate: new Date(2016, 1, 1, 20, 15), - }, { - text: 'appt-05', - startDate: new Date(2016, 1, 2, 8, 15), - endDate: new Date(2016, 1, 2, 10, 45), - }, { - text: 'appt-06', - startDate: new Date(2016, 1, 2, 12, 0), - endDate: new Date(2016, 1, 2, 13, 45), - }, { - text: 'appt-07', - startDate: new Date(2016, 1, 2, 15, 30), - endDate: new Date(2016, 1, 2, 17, 30), - }, { - text: 'appt-08', - startDate: new Date(2016, 1, 3, 8, 15), - endDate: new Date(2016, 1, 3, 9, 0), - }, { - text: 'appt-09', - startDate: new Date(2016, 1, 3, 10, 0), - endDate: new Date(2016, 1, 3, 11, 15), - }, { - text: 'appt-10', - startDate: new Date(2016, 1, 3, 11, 45), - endDate: new Date(2016, 1, 3, 13, 45), - }, { - text: 'appt-11', - startDate: new Date(2016, 1, 3, 14, 0), - endDate: new Date(2016, 1, 3, 16, 45), - }, - ], - views: ['timelineMonth'], - currentView: 'timelineMonth', - maxAppointmentsPerCell: 'unlimited', - height: 505, - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - firstDayOfWeek: 0, - width: 800, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineWorkWeek.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineWorkWeek.ts deleted file mode 100644 index ce6c91d4491f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/timelineWorkWeek.ts +++ /dev/null @@ -1,127 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -const SCHEDULER_SELECTOR = '#container'; -const CELL_WIDTH = 200; - -fixture.disablePageReloads`Appointments in TimelineWorkWeek` - .page(url(__dirname, '../../../container.html')); - -test('Appointments should have correct width', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t.expect( - scheduler.getAppointment('appt-01').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4 * 2 + 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-02').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4)}px`); - - await t.expect( - scheduler.getAppointment('appt-03').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4 * 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-04').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4 * 3)}px`); - - await t.expect( - scheduler.getAppointment('appt-05').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4)}px`); - - await t.expect( - scheduler.getAppointment('appt-06').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (3 + 4)}px`); - - await t.expect( - scheduler.getAppointment('appt-07').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (4 + 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-08').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (4 * 3 + 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-09').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (4 * 2 + 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-10').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (4 + 2)}px`); - - await t.expect( - scheduler.getAppointment('appt-11').element.getStyleProperty('width'), - ).eql(`${CELL_WIDTH * (4 + 2)}px`); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2024, 0, 29), - dataSource: [ - { - text: 'appt-01', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - - { - text: 'appt-02', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 4, 14, 0), - }, - { - text: 'appt-03', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 6, 10, 0), - }, - { - text: 'appt-04', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 6, 18, 0), - }, - { - text: 'appt-05', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 3, 10, 0), - }, - { - text: 'appt-06', - startDate: new Date(2024, 1, 1, 13, 0), - endDate: new Date(2024, 1, 3, 18, 0), - }, - - { - text: 'appt-07', - startDate: new Date(2024, 1, 4, 13, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - { - text: 'appt-08', - startDate: new Date(2024, 1, 1, 10, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - { - text: 'appt-09', - startDate: new Date(2024, 1, 1, 19, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - { - text: 'appt-10', - startDate: new Date(2024, 1, 4, 10, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - { - text: 'appt-11', - startDate: new Date(2024, 1, 4, 17, 0), - endDate: new Date(2024, 1, 6, 14, 0), - }, - ], - views: [{ - type: 'timelineWorkWeek', - intervalCount: 2, - maxAppointmentsPerCell: 'unlimited', - }], - currentView: 'timelineWorkWeek', - startDayHour: 12, - endDayHour: 16, - cellDuration: 60, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png deleted file mode 100644 index 272d14a968ab..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/etalons/work_week_interval-2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/interval.ts b/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/interval.ts deleted file mode 100644 index 834e141018d6..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/appointments/workWeek/interval.ts +++ /dev/null @@ -1,59 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointments with adaptive` - .page(url(__dirname, '../../../../container.html')); - -test('Should correctly render scheduler in workWeek view with interval, skipping weekends (T1243027)', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, 'work_week_interval-2.png', { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-05T01:00:00', - endDate: '2024-01-07T01:00:00', - text: 'Ends in weekend', - color: 'red', - }, - { - startDate: '2024-01-07T01:00:00', - endDate: '2024-01-08T01:00:00', - text: 'Starts in weekend', - color: 'blue', - }, - { - startDate: '2024-01-05T01:00:00', - endDate: '2024-01-08T01:00:00', - text: 'Goes over weekend', - color: 'green', - }, - ], - views: [{ - name: 'myView', - type: 'workWeek', - allDayPanelMode: 'allDay', - intervalCount: 2, - maxAppointmentsPerCell: 'unlimited', - }], - currentView: 'myView', - currentDate: '2024-01-01', - height: 600, - // NOTE: resources are used only to distinguish appts in etalon file - resources: [{ - fieldExpr: 'color', - dataSource: [ - { id: 'red', color: 'red' }, - { id: 'blue', color: 'blue' }, - { id: 'green', color: 'green' }, - ], - label: 'Room', - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.ts deleted file mode 100644 index e1a9c0d5f365..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/bothDirectionsVirtualScrolling.ts +++ /dev/null @@ -1,211 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { scrollTo } from '../../helpers/utils'; -import { - createScheduler, - checkSelectionWhenFocusedInViewport, - checkSelectionWhenFocusedIsNotInViewport, - checkAllDayCellsWhenInViewport, - checkAllDayCellsWhenNotInViewport, -} from './init/widget.setup'; - -fixture.disablePageReloads`Scheduler: Cells Selection in Virtual Scrolling` - .page(url(__dirname, '../../../container.html')); - -const baseConfig = { - scrolling: { mode: 'virtual', orientation: 'both' }, - views: [{ - type: 'week', - intervalCount: 3, - }], - currentView: 'week', -}; - -test('Selected cells shouldn\'t disapppear on scroll', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - - await scrollTo(1000, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); -}).before(async () => createScheduler({ - ...baseConfig, -})); - -test('Selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - - await scrollTo(1000, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); -}).before(async () => createScheduler({ - groups: ['resourceId0'], - resources: [{ - fieldExpr: 'resourceId0', - dataSource: [{ id: 0 }, { id: 1 }], - }], - ...baseConfig, -})); - -test('Selected cells shouldn\'t disapppear on scroll when appointments are grouped by date', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 2)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 2); - - await scrollTo(1000, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 2); -}).before(async () => createScheduler({ - ...baseConfig, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'horizontal', - groupByDate: true, - }], -})); - -test('Selected cells shouldn\'t disapppear on scroll when appointments are grouped vertically', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 10, 5, 1); - - await scrollTo(1000, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 10, 5, 1); -}).before(async () => createScheduler({ - ...baseConfig, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'vertical', - intervalCount: 3, - }], -})); - -test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); - - await checkAllDayCellsWhenInViewport(t, scheduler); - - await scrollTo(1000, 0); - await checkAllDayCellsWhenNotInViewport(t, scheduler); - - await scrollTo(0, 0); - await checkAllDayCellsWhenInViewport(t, scheduler); -}).before(async () => createScheduler({ - ...baseConfig, - showAllDayPanel: true, -})); - -test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when vertical grouping is used', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); - - await checkAllDayCellsWhenInViewport(t, scheduler); - - await scrollTo(0, 500); - await checkAllDayCellsWhenNotInViewport(t, scheduler); - - await scrollTo(0, 0); - await checkAllDayCellsWhenInViewport(t, scheduler); -}).before(async () => createScheduler({ - ...baseConfig, - showAllDayPanel: true, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], -})); - -test('Selection should work in month view', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - - await scrollTo(1000, 0); - await t - .expect(scheduler.getSelectedCells().count) - .eql(0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); -}).before(async () => createScheduler({ - ...baseConfig, - views: [{ - type: 'month', - groupOrientation: 'horizontal', - }], - currentView: 'month', - groups: ['resourceId0'], - resources: [{ - fieldExpr: 'resourceId0', - dataSource: [ - { id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }, - ], - }], -})); - -test('Selection should work in timeline views', async (t) => { - const scheduler = new Scheduler('#container'); - - const checkSelection = async (): Promise => { - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - - await scrollTo(1500, 0); - await t - .expect(scheduler.getSelectedCells().count) - .eql(0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - }; - - await checkSelection(); - - await scheduler.option('currentView', 'timelineWeek'); - await checkSelection(); - - await scheduler.option('currentView', 'timelineMonth'); - await checkSelection(); -}).before(async () => createScheduler({ - ...baseConfig, - views: ['timelineDay', 'timelineWeek', 'timelineMonth'], - currentView: 'timelineDay', - height: 250, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/cellsSelection.ts b/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/cellsSelection.ts deleted file mode 100644 index 994db00bb6c2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/cellsSelection.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; - -fixture.disablePageReloads`Scheduler: Cells Selection in Virtual Scrolling` - .page(url(__dirname, '../../../container.html')); - -test('Selection should work correctly with all-day panel appointments', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .click(scheduler.getAppointment('Appointment').element) - .click(scheduler.getDateTableCell(0, 0)) - - .expect(scheduler.getSelectedCells().count) - .eql(1); -}).before(async () => createWidget('dxScheduler', { - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 11, 9), - dataSource: [{ - startDate: new Date(2021, 11, 9), - endDate: new Date(2021, 11, 9), - allDay: true, - text: 'Appointment', - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/init/widget.setup.ts deleted file mode 100644 index 44f16a5994d8..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/init/widget.setup.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler, { CLASS } from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; - -export const createScheduler = async (options = {}): Promise => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2020, 8, 20), - cellDuration: 60, - height: 300, - width: 400, - scrolling: { mode: 'virtual' }, - resources: [{ - fieldExpr: 'resourceId0', - dataSource: [{ id: 0 }, { id: 1 }], - }], - ...options, - }); -}; - -export const selectCells = async ( - table: Selector, - firstCell: Selector, - secondCell: Selector, -): Promise => ClientFunction( - () => { - const $table = $(table()); - - $($table).trigger( - $.Event('dxpointerdown', { target: $(firstCell()).get(0), which: 1, pointerType: 'mouse' }), - ); - $($table).trigger($.Event('dxpointermove', { target: $(secondCell()).get(0), which: 1 })); - }, - { - dependencies: { - firstCell, secondCell, table, - }, - }, -)(); - -export const moveMouse = async (table: Selector, cell: Selector): -Promise => ClientFunction( - () => { - const $table = $(table()); - - $($table).trigger($.Event('dxpointermove', { target: $(cell()).get(0), which: 1 })); - }, - { - dependencies: { - cell, table, - }, - }, -)(); - -export const checkSelectionWhenFocusedInViewport = async ( - t: TestController, - scheduler: Scheduler, - selectedCellsCount: number, - bottomMostCellRowIndex: number, - lastCellColumnIndex: number, - lastCellRowIndex = 0, -): Promise => { - await t - .expect(scheduler.getSelectedCells().count) - .eql(selectedCellsCount) - .expect(scheduler.getFocusedCell().count) - .eql(1) - .expect(scheduler.getDateTableCell(0, 0).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex) - .hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getDateTableCell(bottomMostCellRowIndex, 0).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex) - .hasClass(CLASS.focusedCell)) - .ok(); -}; - -export const checkSelectionWhenFocusedIsNotInViewport = async ( - t: TestController, - scheduler: Scheduler, - selectedCellsCount: number, - bottomMostCellRowIndex = 0, - lastCellColumnIndex = 0, - lastCellRowIndex = 0, -): Promise => { - await t - .expect(scheduler.getSelectedCells().count) - .eql(selectedCellsCount) - .expect(scheduler.getFocusedCell().count) - .eql(0); - - if (selectedCellsCount > 0) { - await t - .expect(scheduler.getDateTableCell(0, 0).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex) - .hasClass(CLASS.selectedCell)) - .notOk() - .expect(scheduler.getDateTableCell(bottomMostCellRowIndex, 0).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getDateTableCell(lastCellRowIndex, lastCellColumnIndex) - .hasClass(CLASS.focusedCell)) - .notOk(); - } -}; - -export const checkAllDayCellsWhenInViewport = async ( - t: TestController, - scheduler: Scheduler, -): Promise => { - await t - .expect(scheduler.getSelectedCells(true).count) - .eql(2) - .expect(scheduler.getAllDayTableCell(0).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getAllDayTableCell(1).hasClass(CLASS.selectedCell)) - .ok() - .expect(scheduler.getAllDayTableCell(1).hasClass(CLASS.focusedCell)) - .ok(); -}; -export const checkAllDayCellsWhenNotInViewport = async ( - t: TestController, - scheduler: Scheduler, -): Promise => { - await t - .expect(scheduler.getSelectedCells(true).count) - .eql(0) - .expect(scheduler.getFocusedCell(true).count) - .eql(0); -}; diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.ts b/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.ts deleted file mode 100644 index b34ad8a1c3f8..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/cellsSelection/virtualScrollingCellSelection.ts +++ /dev/null @@ -1,271 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { scrollTo } from '../../helpers/utils'; -import { - createScheduler, - selectCells, - moveMouse, - checkSelectionWhenFocusedInViewport, - checkSelectionWhenFocusedIsNotInViewport, - checkAllDayCellsWhenInViewport, - checkAllDayCellsWhenNotInViewport, -} from './init/widget.setup'; - -fixture.disablePageReloads`Scheduler: Cells Selection in Virtual Scrolling` - .page(url(__dirname, '../../../container.html')); - -[true, false].forEach((showAllDayPanel) => { - test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel}`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - - await scrollTo(0, 500); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 13, 6, 1); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - }).before(async () => createScheduler({ showAllDayPanel })); - - test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and horizontal grouping is used`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - - await scrollTo(0, 500); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 13, 6, 1); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - }).before(async () => createScheduler({ - showAllDayPanel, - groups: ['resourceId0'], - resources: [{ - fieldExpr: 'resourceId0', - dataSource: [{ id: 0 }, { id: 1 }], - }], - })); - - test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and appointments are grouped by date`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 2)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 2); - - await scrollTo(0, 500); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 13, 6, 2); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 2); - }).before(async () => createScheduler({ - showAllDayPanel, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'horizontal', - groupByDate: true, - }], - })); - - test(`Selected cells shouldn't disapppear on scroll when showAllDayPanel is equal to ${showAllDayPanel} and appointments are grouped vertically`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - const indexDifference = showAllDayPanel ? 1 : 0; - await checkSelectionWhenFocusedInViewport( - t, - scheduler, - 11 - indexDifference, - 6, - 1, - ); - - await scrollTo(0, 1100); - await checkSelectionWhenFocusedIsNotInViewport( - t, - scheduler, - 0, - 2 + indexDifference, - 1, - ); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport( - t, - scheduler, - 11 - indexDifference, - 6 - indexDifference, - 1, - ); - }).before(async () => createScheduler({ - showAllDayPanel, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], - })); -}); - -test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when horizontal grouping is used', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); - - await checkAllDayCellsWhenInViewport(t, scheduler); - - await scrollTo(0, 500); - await checkAllDayCellsWhenInViewport(t, scheduler); - - await scrollTo(0, 0); - await checkAllDayCellsWhenInViewport(t, scheduler); -}).before(async () => createScheduler({ - showAllDayPanel: true, - groups: ['resourceId0'], -})); - -test('All-day panel\'s selected cells shouldn\'t disapppear on scroll when vertical grouping is used', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getAllDayTableCell(0), scheduler.getAllDayTableCell(1)); - - await checkAllDayCellsWhenInViewport(t, scheduler); - - await scrollTo(0, 500); - await checkAllDayCellsWhenNotInViewport(t, scheduler); - - await scrollTo(0, 0); - await checkAllDayCellsWhenInViewport(t, scheduler); -}).before(async () => createScheduler({ - showAllDayPanel: true, - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], -})); - -test('Selection should work correctly while scrolling', async (t) => { - const scheduler = new Scheduler('#container'); - - await selectCells( - scheduler.dateTable, - scheduler.getDateTableCell(0, 0), - scheduler.getDateTableCell(0, 1), - ); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 11, 6, 1); - - await scrollTo(0, 500); - - await moveMouse(scheduler.dateTable, scheduler.getDateTableCell(4, 1)); - await checkSelectionWhenFocusedInViewport(t, scheduler, 18, 6, 1, 4); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 20, 6, 6); -}).before(async () => createScheduler({ - groups: ['resourceId0'], -})); - -test('Selection should work correctly while scrolling when appointments are grouped vertically', async (t) => { - const scheduler = new Scheduler('#container'); - - await selectCells( - scheduler.dateTable, - scheduler.getDateTableCell(0, 0), - scheduler.getDateTableCell(0, 1), - ); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 10, 5, 1); - - await scrollTo(0, 500); - - await moveMouse(scheduler.dateTable, scheduler.getDateTableCell(4, 1)); - await checkSelectionWhenFocusedInViewport(t, scheduler, 18, 6, 1, 4); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedIsNotInViewport(t, scheduler, 18, 5, 5); -}).before(async () => createScheduler({ - groups: ['resourceId0'], - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], -})); - -test('Selection should work in month view', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - - await scrollTo(0, 1500); - await t - .expect(scheduler.getSelectedCells().count) - .eql(0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); -}).before(async () => createScheduler({ - views: [{ - type: 'month', - intervalCount: 30, - }], - currentView: 'month', -})); - -test('Selection should work in timeline views', async (t) => { - const scheduler = new Scheduler('#container'); - - const checkSelection = async (): Promise => { - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 1)); - - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - - await scrollTo(0, 500); - await t - .expect(scheduler.getSelectedCells().count) - .eql(0); - - await scrollTo(0, 0); - await checkSelectionWhenFocusedInViewport(t, scheduler, 2, 0, 1); - }; - - await checkSelection(); - - await scheduler.option('currentView', 'timelineWeek'); - await checkSelection(); - - await scheduler.option('currentView', 'timelineMonth'); - await checkSelection(); -}).before(async () => createScheduler({ - views: ['timelineDay', 'timelineWeek', 'timelineMonth'], - currentView: 'timelineDay', - startDayHour: 0, - endDayHour: 2, - height: 250, - groups: ['resourceId0'], - crossScrollingEnabled: true, - resources: [{ - fieldExpr: 'resourceId0', - dataSource: [ - { id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, - { id: 5 }, { id: 6 }, { id: 7 }, { id: 8 }, { id: 9 }, - ], - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dataSource/load.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dataSource/load.ts deleted file mode 100644 index cd0b804cf3e1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dataSource/load.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler - DataSource loading` - .page(url(__dirname, '../../../container.html')); - -declare global { - interface Window { - testOptions: { - startDate?: Date; - endDate?: Date; - loadCount?: number; - }; - } -} - -const getWindow = ClientFunction(() => window.testOptions); -const repaint = ClientFunction(() => { - (window as any).widget.repaint(); -}); - -const pushDataToStore = async (key, data): Promise => ClientFunction(() => { - const store = (window as any).widget.getDataSource().store(); - store.push([{ type: 'update', key, data }]); -}, { dependencies: { key, data } })(); - -test('it should correctly load items with post processing', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment0 = scheduler.getAppointment('appt-0'); - - await t - .expect(scheduler.getAppointmentCount()) - .eql(1) - .expect(appointment0.element.exists) - .ok(); -}).before(async () => createWidget( - 'dxScheduler', - { - dataSource: { - store: [ - { - text: 'appt-0', - startDate: new Date(2021, 3, 26, 9, 30), - endDate: new Date(2021, 3, 26, 11, 30), - }, { - text: 'appt-1', - startDate: new Date(2021, 3, 27, 9, 30), - endDate: new Date(2021, 3, 27, 11, 30), - }, { - text: 'appt-2', - startDate: new Date(2021, 3, 28, 9, 30), - endDate: new Date(2021, 3, 28, 11, 30), - }, - ], - postProcess: (items) => [items[0]], - }, - views: ['workWeek'], - currentView: 'workWeek', - currentDate: new Date(2021, 3, 27), - startDayHour: 9, - endDayHour: 19, - height: 600, - width: 800, - }, -)); - -[true, false].forEach((groupByDate) => { - test(`it should have start and end date in load options groupByDate=${groupByDate}`, async (t) => { - const win = await getWindow(); - await t - .expect(win.startDate) - .eql(new Date(2021, 4, 9)) - .expect(win.endDate) - .eql(new Date(2021, 4, 15, 2, 59)); - }).before(async () => createWidget( - 'dxScheduler', - { - dataSource: { - load: (loadOptions) => { - const { startDate, endDate } = loadOptions; - - // added dates to global scope because there isn't another acceptable way to test them - window.testOptions = { - startDate, - endDate, - }; - }, - }, - currentDate: new Date(2021, 4, 11), - width: 700, - height: 500, - startDayHour: 0, - endDayHour: 3, - groupByDate, - views: ['week'], - currentView: 'week', - }, - )); - - test(`it should have dates in load options when view dates changing. groupByDate=${groupByDate}`, async (t) => { - const { toolbar } = new Scheduler('#container'); - - await t - .click(toolbar.navigator.nextButton); - const win = await getWindow(); - await t - .expect(win.startDate) - .eql(new Date(2021, 4, 16)) - .expect(win.endDate) - .eql(new Date(2021, 4, 22, 2, 59)); - }).before(async () => createWidget( - 'dxScheduler', - { - dataSource: { - load: (loadOptions) => { - const { startDate, endDate } = loadOptions; - - // added dates to global scope because there isn't another acceptable way to test them - window.testOptions = { - startDate, - endDate, - }; - }, - }, - currentDate: new Date(2021, 4, 11), - width: 700, - height: 500, - startDayHour: 0, - endDayHour: 3, - groupByDate, - views: ['week'], - currentView: 'week', - }, - )); -}); - -test('it should not call additional DataSource loads after repaint', async (t) => { - await repaint(); - await repaint(); - await repaint(); - - await pushDataToStore(0, {}); - await t.wait(200); - - const testClientData = await getWindow(); - await t.expect(testClientData.loadCount).eql(2); -}).before(async () => ClientFunction(() => { - window.testOptions = { - loadCount: 0, - }; - (window as any).widget = ($('#container') as any) - .dxScheduler({ - dataSource: { - store: new (window as any).DevExpress.data.ArrayStore({ - data: [], - onLoaded: () => { window.testOptions.loadCount! += 1; }, - }), - }, - }).dxScheduler('instance'); -})()); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/DNDToFakeCell.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/DNDToFakeCell.ts deleted file mode 100644 index 9dad8c03de3f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/DNDToFakeCell.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { ClientFunction, Selector, t } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { appendElementTo } from '../../../../helpers/domUtils'; - -fixture.disablePageReloads`Drag-n-drop to fake cell` - .page(url(__dirname, '../../../container.html')); - -test('Should not select cells outside the scheduler(T1040795)', async () => { - const scheduler = new Scheduler('#container'); - - const { element } = scheduler.getAppointment('app'); - - await t - .drag(element, 0, 200) - - .expect(Selector('#fake').hasClass('dx-scheduler-date-table-droppable-cell')) - .eql(false); -}).before(async () => { - await appendElementTo('#container', 'div', 'scheduler'); - await appendElementTo('#container', 'div', 'fake', { - width: '400px', height: '100px', - }); - await ClientFunction(() => { - $('#fake').addClass('scheduler-date-table-cell'); - })(); - - return createWidget('dxScheduler', { - dataSource: [ - { - text: 'app', - startDate: new Date(2021, 3, 26, 2), - endDate: new Date(2021, 3, 26, 2, 30), - }, - ], - views: ['day'], - currentDate: new Date(2021, 3, 26), - height: 200, - width: 400, - }, '#scheduler'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1017720.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1017720.ts deleted file mode 100644 index dd961f3612d2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1017720.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { extend } from 'devextreme/core/utils/extend'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`T1017720` - .page(url(__dirname, '../../../container.html')); - -test('Drag-n-drop appointment above SVG element(T1017720)', async (t) => { - const scheduler = new Scheduler('#scheduler'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const draggableAppointment = scheduler.getAppointment('text'); - - await t.drag(draggableAppointment.element, 330, 0); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-right(T1017720).png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -330, 70); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-left(T1017720).png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxChart', extend({ - width: '100%', - height: 1300, - series: { - type: 'bar', - color: '#ffaa66', - }, - })); - - await createWidget('dxPopup', extend({ - width: '90%', - height: '90%', - visible: true, - contentTemplate: ClientFunction(() => { - const scheduler = $('
'); - - (scheduler as any).dxScheduler({ - width: '100%', - height: '100%', - startDayHour: 11, - dataSource: [{ - text: 'text', - startDate: new Date(2021, 6, 27, 11), - endDate: new Date(2021, 6, 27, 14), - allDay: false, - }], - views: ['week'], - currentDate: new Date(2021, 6, 27, 12), - currentView: 'week', - }); - - return scheduler; - }), - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1080232.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1080232.ts deleted file mode 100644 index cfb8b4340c8a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1080232.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { ClientFunction, Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { appendElementTo } from '../../../../helpers/domUtils'; - -fixture`Appointment (T1080232)` - .page(url(__dirname, '../../../container.html')); - -test('it should correctly drag external item to the appointment after drag appointment', async (t) => { - const scheduler = new Scheduler('#scheduler'); - const dragItem = Selector('.drag-item'); - const cell01 = scheduler.getDateTableCell(1, 0); - const appt01 = scheduler.getAppointment('Appt-01'); - const appt02 = scheduler.getAppointment('Appt-02'); - - await t - .dragToElement(appt01.element, cell01, { speed: 0.5 }) - .expect((await appt01.element.boundingClientRect).top) - .eql(183) - .dragToElement(dragItem, appt02.element, { speed: 0.5 }) - .expect(appt02.element.find('.dx-item-content').getAttribute('data-status')) - .eql('Added'); -}).before(async () => { - await appendElementTo('#container', 'div', 'list'); - - await ClientFunction(() => { - $('#list').append('
drag-item
').addClass('drag-item'); - })(); - - await appendElementTo('#container', 'div', 'scheduler'); - - await createWidget('dxSortable', { - group: 'resourceGroup', - }, '#list'); - - return createWidget('dxScheduler', { - resources: [ - { - fieldExpr: 'resourceId', - dataSource: [ - { id: 0, color: '#e01e38' }, - { id: 1, color: '#f98322' }, - { id: 2, color: '#1e65e8' }, - ], - label: 'Color', - }, - ], - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'day', - dataSource: [{ - text: 'Appt-01', - startDate: new Date(2021, 3, 26, 10), - endDate: new Date(2021, 3, 26, 11), - }, { - text: 'Appt-02', - startDate: new Date(2021, 3, 26, 12), - endDate: new Date(2021, 3, 26, 13), - }], - views: ['day'], - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - width: 800, - height: 600, - appointmentTemplate(e, _, element) { - const newData = e.appointmentData; - - return element - .text(newData.text) - .dxSortable({ - group: 'resourceGroup', - data: [newData], - onAdd: () => { - element.attr('data-status', 'Added'); - }, - }); - }, - }, '#scheduler'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1118059.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1118059.ts deleted file mode 100644 index 65722c06a789..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1118059.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { ClientFunction, Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { - setStyleAttribute, -} from '../../../../helpers/domUtils'; - -const SCHEDULER_SELECTOR = '#scheduler'; - -// eslint-disable-next-line no-multi-str -const markup = '
\ -
drag container
\ -
top right space
\ -
\ -
\ -
left space
\ -
\ -
'; - -fixture.disablePageReloads`T1118059` - .page(url(__dirname, '../../../container.html')); - -const safeEvent = (value) => ClientFunction(() => { - (window as any).eventName = value; -}, { dependencies: { value } }); - -test('After drag to draggable component, should be called onAppointmentDeleting event only', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .dragToElement(scheduler.getAppointment('Regular test app').element, Selector('#drag-container'), { speed: 0.5 }); - - await t.wait(500); - - await t - .expect(ClientFunction(() => (window as any).eventName)()) - .eql('onAppointmentDeleting'); -}).before(async () => { - safeEvent(''); - await setStyleAttribute(Selector('#container'), 'display: flex; flex-direction: column;'); - - await ClientFunction(() => { - $('#container').append(markup); - }, { dependencies: { markup } })(); - - await createWidget('dxDraggable', { - group: 'appointmentsGroup', - }, '#drag-container'); - - return createWidget('dxScheduler', { - dataSource: [{ - text: 'All day test app 1', - startDate: new Date(2021, 3, 26), - endDate: new Date(2021, 3, 26), - allDay: true, - }, { - text: 'All day test app 2', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'Regular test app', - startDate: new Date(2021, 3, 27, 10, 30), - endDate: new Date(2021, 3, 27, 11), - }], - views: [{ - type: 'day', - intervalCount: 2, - }], - onAppointmentUpdated: safeEvent('onAppointmentUpdated'), - onAppointmentUpdating: safeEvent('onAppointmentUpdating'), - onAppointmentDeleting: safeEvent('onAppointmentDeleting'), - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - height: 600, - width: 500, - appointmentDragging: { - group: 'appointmentsGroup', - onRemove(e) { - e.component.deleteAppointment(e.itemData); - }, - }, - }, SCHEDULER_SELECTOR); -}); - -test('After drag over component area, shouldn\'t called onAppointment* data events and appointment shouldn\'t change position', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .dragToElement(scheduler.getAppointment('All day test app 2').element, Selector('#space-right')); - await t - .expect(ClientFunction(() => (window as any).eventName)()) - .eql('') - .expect(scheduler.getAppointment('All day test app 2').date.time) - .eql('April 27'); - - await t - .dragToElement(scheduler.getAppointment('Regular test app').element, Selector('#left-right')); - await t - .expect(ClientFunction(() => (window as any).eventName)()) - .eql('') - .expect(scheduler.getAppointment('Regular test app').date.time) - .eql('10:30 AM - 11:00 AM'); -}).before(async () => { - await safeEvent('')(); - await setStyleAttribute(Selector('#container'), 'display: flex; flex-direction: column;'); - - await ClientFunction(() => { - $('#container').append(markup); - }, { dependencies: { markup } })(); - - return createWidget('dxScheduler', { - dataSource: [{ - text: 'All day test app 1', - startDate: new Date(2021, 3, 26), - endDate: new Date(2021, 3, 26), - allDay: true, - }, { - text: 'All day test app 2', - startDate: new Date(2021, 3, 27), - endDate: new Date(2021, 3, 27), - allDay: true, - }, { - text: 'Regular test app', - startDate: new Date(2021, 3, 27, 10, 30), - endDate: new Date(2021, 3, 27, 11), - }], - views: [{ - type: 'day', - intervalCount: 2, - }], - onAppointmentUpdated: safeEvent('onAppointmentUpdated'), - onAppointmentUpdating: safeEvent('onAppointmentUpdating'), - onAppointmentDeleting: safeEvent('onAppointmentDeleting'), - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - height: 600, - width: 500, - }, SCHEDULER_SELECTOR); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1235433.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1235433.ts deleted file mode 100644 index af0852a3e431..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1235433.ts +++ /dev/null @@ -1,124 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import type Appointment from 'devextreme-testcafe-models/scheduler/appointment'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { Themes } from '../../../../helpers/themes'; -import { scrollTo } from '../../helpers/utils'; - -fixture.disablePageReloads`Scheduler Drag-and-Drop inside Group` - .page(url(__dirname, '../../../container.html')); - -const createScheduler = (view: string) => createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource: [ - { - text: 'Book 1', - startDate: new Date('2021-02-02T18:00:00.000Z'), - endDate: new Date('2021-02-02T19:00:00.000Z'), - priority: 1, - }, { - text: 'Book 2', - startDate: new Date('2021-02-03T01:00:00.000Z'), - endDate: new Date('2021-02-03T02:15:00.000Z'), - priority: 1, - }, { - text: 'Book 3', - startDate: new Date('2021-02-09T01:00:00.000Z'), - endDate: new Date('2021-02-09T02:15:00.000Z'), - priority: 1, - }, - ], - views: [view], - currentView: view, - currentDate: new Date('2021-02-02T17:00:00.000Z'), - firstDayOfWeek: 0, - scrolling: { mode: 'virtual' }, - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - groups: ['priority'], - useDropDownViewSwitcher: false, - resources: [{ - fieldExpr: 'priority', - dataSource: [ - { id: 1, text: 'Low Priority', color: 'green' }, - { id: 2, text: 'High Priority', color: 'blue' }, - ], - label: 'Priority', - }], - height: 580, -}); -const dragAppointmentByCircle = async ( - t: TestController, - appointment: Appointment, - label: string[], - description: string[], -) => { - await t.drag(appointment.element, -200, 0); - await t.expect(appointment.getAriaLabel()) - .contains(label[0]) - .expect(await appointment.getAriaDescription()) - .contains(description[0]); - - await t.drag(appointment.element, 0, 200); - await t.expect(appointment.getAriaLabel()) - .contains(label[1]) - .expect(await appointment.getAriaDescription()) - .contains(description[1]); - - await t.drag(appointment.element, 200, 0); - await t.expect(appointment.getAriaLabel()) - .contains(label[2]) - .expect(await appointment.getAriaDescription()) - .contains(description[2]); - - await t.drag(appointment.element, 0, -200); - await t.expect(appointment.getAriaLabel()) - .contains(label[3]) - .expect(await appointment.getAriaDescription()) - .contains(description[3]); -}; -const appointmentDescriptions = ['Group: Low Priority', 'Group: High Priority', 'Group: High Priority', 'Group: Low Priority']; -const appointment1Times = ['9:00 AM - 10:00 AM', '9:00 AM - 10:00 AM', '10:00 AM - 11:00 AM', '10:00 AM - 11:00 AM']; -const appointment2Times = ['4:00 PM - 5:15 PM', '4:00 PM - 5:15 PM', '5:00 PM - 6:15 PM', '5:00 PM - 6:15 PM']; - -test.meta({ runInTheme: Themes.genericLight })('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineDay)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t.expect(scheduler.element.exists).ok(); - - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 1'), appointment1Times, appointmentDescriptions); - await scrollTo(1400, 0); - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 2'), appointment2Times, appointmentDescriptions); -}).before(async () => createScheduler('timelineDay')); - -test.meta({ runInTheme: Themes.genericLight })('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineWorkWeek)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t.expect(scheduler.element.exists).ok(); - - await scrollTo(2400, 0); - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 1'), appointment1Times, appointmentDescriptions); - await scrollTo(3400, 0); - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 2'), appointment2Times, appointmentDescriptions); -}).before(async () => createScheduler('timelineWorkWeek')); - -test.meta({ runInTheme: Themes.genericLight })('T1235433: Scheduler - Drag-n-Drop works inside the group with virtual scrolling (timelineMonth)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t.expect(scheduler.element.exists).ok(); - - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 1'), [ - 'February 1, 2021', - 'February 1, 2021', - 'February 2, 2021', - 'February 2, 2021', - ], appointmentDescriptions); - await scrollTo(1000, 0); - await dragAppointmentByCircle(t, scheduler.getAppointment('Book 3'), [ - 'February 7, 2021', - 'February 7, 2021', - 'February 8, 2021', - 'February 8, 2021', - ], appointmentDescriptions); -}).before(async () => createScheduler('timelineMonth')); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1263508.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1263508.ts deleted file mode 100644 index 5a5dfdde19ca..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T1263508.ts +++ /dev/null @@ -1,97 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { ClientFunction, Selector } from 'testcafe'; -import { MouseAction, MouseUpEvents } from '../../../../helpers/mouseUpEvents'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler Drag-and-Drop Fix` - .page(url(__dirname, '../../../container.html')); - -const DRAGGABLE_ITEM_CLASS = 'dx-card'; -const draggingGroupName = 'appointmentsGroup'; - -const initList = ClientFunction(() => { - $('
', { id: 'list' }).appendTo('#parentContainer'); -}); - -const addTasksToList = ClientFunction((tasks) => { - tasks.forEach((task) => { - $('
', { - class: 'dx-card', - text: task.text, - }).appendTo('#list'); - }); -}); - -const createItemElement = async (task) => { - await createWidget('dxDraggable', { - group: draggingGroupName, - data: task, - clone: true, - onDragStart(e) { - e.itemData = e.fromData; - }, - }, `.${DRAGGABLE_ITEM_CLASS}:contains(${task.text})`); -}; - -test('Scheduler - The \'Cannot read properties of undefined (reading \'getTime\')\' error is thrown on an attempt to drag an outside element if the previous drag operation was canceled', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Book').element; - const targetCell = scheduler.getDateTableCell(5, 0); - const draggableItem = Selector(`.${DRAGGABLE_ITEM_CLASS}`).withText('Brochures'); - - await t.expect(scheduler.element.exists).ok(); - - await MouseUpEvents.disable(MouseAction.dragToElement); - - await t - .dragToElement(draggableAppointment, targetCell) - .pressKey('esc'); - - await MouseUpEvents.enable(MouseAction.dragToElement); - - await t - .expect(draggableItem.exists) - .ok() - .dragToElement(draggableItem, targetCell); - - const newAppointment = scheduler.getAppointment('Brochures'); - - await t - .expect(newAppointment.element.exists) - .ok(); -}).before(async () => { - const tasks = [ - { text: 'Brochures' }, - ]; - - await initList(); - await addTasksToList(tasks); - await Promise.all(tasks.map((task) => createItemElement(task))); - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource: [ - { - text: 'Book', - startDate: new Date('2021-04-26T19:00:00.000Z'), - endDate: new Date('2021-04-26T20:00:00.000Z'), - }, - ], - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - height: 600, - editing: true, - appointmentDragging: { - group: draggingGroupName, - onDragEnd(e) { - e.cancel = e.event.ctrlKey; - }, - onRemove(e) { - e.component.deleteAppointment(e.itemData); - }, - onAdd(e) { - e.component.addAppointment(e.itemData); - }, - }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T697037.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T697037.ts deleted file mode 100644 index fd8c2a3193d0..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/T697037.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; - -fixture.disablePageReloads`T697037` - .page(url(__dirname, '../../../container.html')); - -test('Recurrence exception date should equal date of appointment, which excluded from recurrence(T697037)', async (t) => { - const scheduler = new Scheduler('#container'); - const targetCell = scheduler.getDateTableCell(3, 3); - const appointment = scheduler.getAppointment('Test', 2); - - await t - .dragToElement(appointment.element, targetCell, { speed: 0.5 }); - - await t - .expect(ClientFunction(() => (window as any).recurrenceException)()) - .eql('20181128T020000Z'); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Test', - startDate: '2018-11-26T02:00:00Z', - endDate: '2018-11-26T02:15:00Z', - recurrenceRule: 'FREQ=DAILY;COUNT=5', - recurrenceException: '', - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2018, 10, 26), - dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ssZ', - timeZone: 'Etc/UTC', - showAllDayPanel: false, - recurrenceEditMode: 'occurrence', - onAppointmentUpdating(e) { - (window as any).recurrenceException = e.newData.recurrenceException; - }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/appointmentCollector.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/appointmentCollector.ts deleted file mode 100644 index 727fa65d9cb5..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/appointmentCollector.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { appointmentCollectorData } from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Drag-and-drop behaviour for the appointment tooltip` - .page(url(__dirname, '../../../container.html')); - -test('Drag-n-drop between a scheduler table cell and the appointment tooltip', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Approve Personal Computer Upgrade Plan'); - const collector = scheduler.collectors.find('2'); - const { appointmentTooltip } = scheduler; - const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); - - await collector.click(); - - await t - .expect(appointmentTooltip.isVisible()).ok() - .dragToElement(appointmentTooltipItem.element, scheduler.getDateTableCell(2, 5), { speed: 0.5 }) - .expect(appointmentTooltipItem.element.exists) - .notOk() - .expect(appointment.element.exists) - .ok() - .expect(appointment.size.height) - .eql('76px') - .expect(appointment.date.time) - .eql('9:30 AM - 10:30 AM') - .dragToElement(appointment.element, scheduler.getDateTableCell(3, 2), { speed: 0.5 }); - - await collector.click(); - - await t - .expect(appointmentTooltip.isVisible()) - .ok() - .expect(appointment.element.exists) - .notOk(); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource: appointmentCollectorData, - maxAppointmentsPerCell: 2, - width: 1000, -})); - -test.meta({ unstable: true })('Drag-n-drop to the cell on the left should work in week view (T1005115)', async (t) => { - const scheduler = new Scheduler('#container'); - const collector = scheduler.collectors.find('1'); - const { appointmentTooltip } = scheduler; - const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t - .click(collector.element) - .dragToElement( - appointmentTooltipItem.element, - scheduler.getDateTableCell(2, 2), - { speed: 0.5 }, - ); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-from-tooltip-to-left-cell-in-week.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2019, 3, 1), - views: ['week'], - currentView: 'week', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2019, 3, 3, 9, 30), - endDate: new Date(2019, 3, 3, 11, 30), - }, { - text: 'Approve Personal Computer Upgrade Plan', - startDate: new Date(2019, 3, 3, 10, 0), - endDate: new Date(2019, 3, 3, 10, 30), - }, { - text: 'Install New Database', - startDate: new Date(2019, 3, 3, 9, 45), - endDate: new Date(2019, 3, 3, 11, 15), - }], - maxAppointmentsPerCell: 2, - height: 800, - startDayHour: 9, -})); - -test.meta({ unstable: true })('Drag-n-drop in the same table cell', async (t) => { - const scheduler = new Scheduler('#container'); - const { appointmentTooltip } = scheduler; - const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); - - await t - .click(scheduler.collectors.find('2').element) - .expect(appointmentTooltip.isVisible()).ok() - .drag(appointmentTooltipItem.element, 0, -90) - .click(scheduler.collectors.find('2').element) - .expect(appointmentTooltip.isVisible()) - .ok() - .expect(appointmentTooltipItem.element.exists) - .ok(); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource: appointmentCollectorData, - maxAppointmentsPerCell: 2, - width: 1000, -})); - -test.meta({ runInTheme: Themes.genericLight })('Drag-n-drop to the cell below should work in month view (T1005115)', async (t) => { - const scheduler = new Scheduler('#container'); - const collector = scheduler.collectors.find('1 more'); - const { appointmentTooltip } = scheduler; - const appointmentTooltipItem = appointmentTooltip.getListItem('Approve Personal Computer Upgrade Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t - .click(collector.element) - .dragToElement( - appointmentTooltipItem.element, - scheduler.getDateTableCell(1, 3), - { speed: 0.5 }, - ); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-from-tooltip-to-cell-below-in-month.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2019, 3, 1), - views: ['month'], - currentView: 'month', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2019, 3, 3, 9, 30), - endDate: new Date(2019, 3, 3, 11, 30), - }, { - text: 'Approve Personal Computer Upgrade Plan', - startDate: new Date(2019, 3, 3, 10, 0), - endDate: new Date(2019, 3, 3, 11, 0), - }, { - text: 'Install New Database', - startDate: new Date(2019, 3, 3, 9, 45), - endDate: new Date(2019, 3, 3, 11, 15), - }], - maxAppointmentsPerCell: 2, - height: 800, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/basic.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/basic.ts deleted file mode 100644 index 5c83b3810965..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/basic.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { dataSource } from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Drag-and-drop appointments in the Scheduler basic views` - .page(url(__dirname, '../../../container.html')); - -['day', 'week', 'workWeek'].forEach((view) => test(`Drag-n-drop in the "${view}" view`, async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(4, 0)) - .expect(draggableAppointment.size.height).eql('38px') - .expect(draggableAppointment.date.time) - .eql('11:00 AM - 11:30 AM'); -}).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, -}))); - -test('Drag-n-drop in the "month" view', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(0, 4)) - .expect(draggableAppointment.size.height).eql('23.8281px') - .expect(draggableAppointment.date.time) - .eql('9:00 AM - 9:30 AM'); -}).before(async () => createScheduler({ - views: ['month'], - currentView: 'month', - dataSource, - height: 834, -})); - -test.meta({ unstable: true })('Drag-n-drop when browser has horizontal scroll', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Staff Productivity Report'); - - await t - .drag(draggableAppointment.element, 250, -50, { speed: 0.2 }) - .expect(draggableAppointment.isAllDay).eql(true); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource: [{ - text: 'Staff Productivity Report', - startDate: new Date(2019, 3, 6, 9, 0), - endDate: new Date(2019, 3, 6, 10, 30), - resourceId: 2, - }], - width: 1800, -})); - -test('Drag-n-drop when browser has vertical scroll', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Staff Productivity Report'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(25, 0), { speed: 0.5 }) - .expect(draggableAppointment.date.time).eql('9:30 PM - 10:00 PM'); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource: [{ - text: 'Staff Productivity Report', - startDate: new Date(2019, 3, 1, 21, 0), - endDate: new Date(2019, 3, 1, 21, 30), - resourceId: 2, - }], - height: 1800, -})); - -test.meta({ unstable: true })('Drag recurrent appointment occurrence from collector (T832887)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Recurrence two'); - const collector = scheduler.collectors.find('2'); - const { appointmentTooltip } = scheduler; - const appointmentTooltipItem = appointmentTooltip.getListItem('Recurrence two'); - const popup = Scheduler.getDeleteRecurrenceDialog(); - - await collector.click(); - - await t - .expect(appointmentTooltip.isVisible()).ok() - .dragToElement(appointmentTooltipItem.element, scheduler.getDateTableCell(2, 2)) - .expect(appointmentTooltipItem.element.exists) - .notOk() - .click(popup.appointment) - .expect(appointment.element.exists) - .ok() - .expect(appointment.date.time) - .eql('4:00 AM - 6:00 AM') - .expect(collector.element.exists) - .notOk(); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - firstDayOfWeek: 2, - startDayHour: 4, - maxAppointmentsPerCell: 1, - dataSource: [{ - text: 'Recurrence one', - startDate: new Date(2019, 2, 26, 8, 0), - endDate: new Date(2019, 2, 26, 10, 0), - recurrenceException: '', - recurrenceRule: 'FREQ=DAILY', - }, { - text: 'Non-recurrent appointment', - startDate: new Date(2019, 2, 26, 7, 0), - endDate: new Date(2019, 2, 26, 11, 0), - }, { - text: 'Recurrence two', - startDate: new Date(2019, 2, 26, 8, 0), - endDate: new Date(2019, 2, 26, 10, 0), - recurrenceException: '', - recurrenceRule: 'FREQ=DAILY', - }], - currentDate: new Date(2019, 2, 26), -})); - -test('Drag-n-drop the appointment to the left column to the cell that has the same time', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const draggableAppointment = scheduler.getAppointment('Test appointment'); - - await t - .dragToElement( - draggableAppointment.element, - scheduler.getDateTableCell(2, 2), - { speed: 0.5 }, - ); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-appointment-to-left-column.png', { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createScheduler({ - timeZone: 'Etc/GMT', - dataSource: [{ - text: 'Test appointment', - startDate: new Date('2022-09-08T10:00:00.000Z'), - endDate: new Date('2022-09-08T10:30:00.000Z'), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date('2022-09-09T10:00:00.000Z'), - startDayHour: 9, - width: 600, - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.ts deleted file mode 100644 index d25d5980d22f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentInEqualCellIndexes.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { setStyleAttribute, appendElementTo } from '../../../../../helpers/domUtils'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; - -fixture.disablePageReloads`Drag-n-drop appointments between two schedulers with equal cell indexes (T1094035)` - .page(url(__dirname, '../../../../container.html')); - -const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; -const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; -const EXPECTED_APPOINTMENT_TIME = '1:00 AM - 2:00 AM'; - -const TEST_APPOINTMENT = { - text: 'My appointment', - startDate: new Date(2021, 3, 30, 1), - endDate: new Date(2021, 3, 30, 2), -}; - -const getSchedulerOptions = (dataSource) => ({ - dataSource, - currentView: 'workWeek', - currentDate: new Date(2021, 3, 26), - width: 600, - appointmentDragging: { - group: 'testDragGroup', - onRemove(e) { - e.component.deleteAppointment(e.itemData); - }, - onAdd(e) { - e.component.addAppointment(e.itemData); - }, - }, -}); - -test('Should not lose drag-n-dropped appointment in the second scheduler', async (t) => { - const firstScheduler = new Scheduler(`#${FIRST_SCHEDULER_SELECTOR}`); - const secondScheduler = new Scheduler(`#${SECOND_SCHEDULER_SELECTOR}`); - - const appointmentToMoveElement = firstScheduler - .getAppointment(TEST_APPOINTMENT.text) - .element(); - const cellToMoveElement = secondScheduler - .getDateTableCell(2, 0); - - await t.dragToElement(appointmentToMoveElement, cellToMoveElement, { speed: 0.5 }); - - const movedAppointmentTime = await secondScheduler - .getAppointment(TEST_APPOINTMENT.text) - .date - .time; - - await t.expect(movedAppointmentTime).eql(EXPECTED_APPOINTMENT_TIME); -}).before(async () => { - await setStyleAttribute(Selector('#container'), 'display: flex;'); - await appendElementTo('#container', 'div', FIRST_SCHEDULER_SELECTOR); - await appendElementTo('#container', 'div', SECOND_SCHEDULER_SELECTOR); - - await createWidget('dxScheduler', getSchedulerOptions([TEST_APPOINTMENT]), `#${FIRST_SCHEDULER_SELECTOR}`); - await createWidget('dxScheduler', getSchedulerOptions([]), `#${SECOND_SCHEDULER_SELECTOR}`); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.ts deleted file mode 100644 index 80633ed5feea..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/dragAppointmentWithDataSource.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { ClientFunction, Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { appendElementTo, setStyleAttribute } from '../../../../../helpers/domUtils'; - -fixture.disablePageReloads`Drag-n-drop appointments between two schedulers with async DataSource (T1094033)` - .page(url(__dirname, '../../../../container.html')); - -interface TestAppointment { - id: number; - text: string; - startDate: Date; - endDate: Date; -} - -const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; -const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; -const EXPECTED_APPOINTMENT_TIME = '12:00 AM - 1:00 AM'; - -const TEST_APPOINTMENT = { - id: 10, - text: 'My appointment', - startDate: new Date(2021, 3, 28, 1), - endDate: new Date(2021, 3, 28, 2), -}; - -const getBaseSchedulerOptions = (currentDate) => ({ - currentDate, - currentView: 'workWeek', - width: 600, - appointmentDragging: { - group: 'testDragGroup', - onRemove(e) { - e.component.deleteAppointment(e.itemData); - }, - onAdd(e) { - e.component.addAppointment(e.itemData); - }, - }, -}); - -const createSchedulerWithRemoteDataSource = async ( - options: any, - selector: string, - appointments: TestAppointment[], -): Promise => { - await ClientFunction(() => { - class DataSourceMock { - key = 'id'; - - private data: TestAppointment[]; - - constructor(initialData: TestAppointment[] = []) { - this.data = initialData; - } - - load = () => Promise.resolve(this.data); - - insert = (value) => { - this.data = [...this.data, value]; - return Promise.resolve(); - }; - - update = (key, value) => { - this.data = this.data.map((item) => { - if (item.id === key) { - return value; - } - return item; - }); - return Promise.resolve(); - }; - - remove = (id) => { - this.data = this.data.filter((item) => item.id !== id); - return Promise.resolve(); - }; - } - - ($(selector) as any).dxScheduler({ - ...options, - dataSource: new DataSourceMock(appointments), - }); - }, { dependencies: { selector, options, appointments } })(); -}; - -test('Should set correct start and end dates in drag&dropped appointment', async (t) => { - const firstScheduler = new Scheduler(`#${FIRST_SCHEDULER_SELECTOR}`); - const secondScheduler = new Scheduler(`#${SECOND_SCHEDULER_SELECTOR}`); - - const appointmentToMoveElement = firstScheduler - .getAppointment(TEST_APPOINTMENT.text) - .element(); - const cellToMoveElement = secondScheduler - .getDateTableCell(0, 0); - - await t.dragToElement(appointmentToMoveElement, cellToMoveElement, { speed: 0.5 }); - - // Wait for async data source operations and DOM updates to complete - await t.wait(500); - - const movedAppointmentTime = await secondScheduler - .getAppointment(TEST_APPOINTMENT.text) - .date - .time; - - await t.expect(movedAppointmentTime).eql(EXPECTED_APPOINTMENT_TIME); -}).before(async () => { - await setStyleAttribute(Selector('#container'), 'display: flex;'); - await appendElementTo('#container', 'div', FIRST_SCHEDULER_SELECTOR); - await appendElementTo('#container', 'div', SECOND_SCHEDULER_SELECTOR); - - await createSchedulerWithRemoteDataSource( - getBaseSchedulerOptions(new Date(2021, 3, 26)), - `#${FIRST_SCHEDULER_SELECTOR}`, - [TEST_APPOINTMENT], - ); - - await createWidget( - 'dxScheduler', - { - ...getBaseSchedulerOptions(new Date(2021, 4, 26)), - dataSource: [], - }, - `#${SECOND_SCHEDULER_SELECTOR}`, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.ts deleted file mode 100644 index 9956ee418a52..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/betweenSchedulers/removeDroppableCellClass.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { setStyleAttribute, appendElementTo } from '../../../../../helpers/domUtils'; - -fixture.disablePageReloads`Cancel drag-n-drop when dragging an appointment from one scheduler to another` - .page(url(__dirname, '../../../../container.html')); - -const FIRST_SCHEDULER_SELECTOR = 'scheduler-first'; -const SECOND_SCHEDULER_SELECTOR = 'scheduler-second'; -const METHODS_TO_CANCEL = [ - 'onDragStart', - 'onDragMove', - 'onDragEnd', - 'onRemove', - 'onAdd', -]; - -const TEST_APPOINTMENT = { - id: 10, - text: 'My appointment', - startDate: new Date(2021, 3, 28, 1), - endDate: new Date(2021, 3, 28, 2), -}; - -const getSchedulerOptions = (dataSource, currentDate, cancelMethodName) => ({ - dataSource, - currentDate, - currentView: 'workWeek', - width: 600, - appointmentDragging: { - group: 'testDragGroup', - onRemove(e) { - e.component.deleteAppointment(e.itemData); - }, - onAdd(e) { - e.component.addAppointment(e.itemData); - }, - [cancelMethodName]: (e) => { - e.cancel = true; - }, - }, -}); - -METHODS_TO_CANCEL.forEach((methodName) => { - test(`Should remove drag-n-drop classes if event was canceled in method ${methodName}`, async (t) => { - const firstScheduler = new Scheduler(`#${FIRST_SCHEDULER_SELECTOR}`); - const secondScheduler = new Scheduler(`#${SECOND_SCHEDULER_SELECTOR}`); - - const appointmentToMoveElement = firstScheduler - .getAppointment(TEST_APPOINTMENT.text) - .element(); - const cellToMoveElement = secondScheduler - .getDateTableCell(0, 0); - - await t.dragToElement(appointmentToMoveElement, cellToMoveElement, { speed: 0.5 }); - - const droppableCellExistsInFirstScheduler = await firstScheduler.getDroppableCell().exists; - const droppableCellExistsInSecondScheduler = await secondScheduler.getDroppableCell().exists; - - await t.expect(droppableCellExistsInFirstScheduler).notOk('Droppable cell class was not removed from the first scheduler.'); - await t.expect(droppableCellExistsInSecondScheduler).notOk('Droppable cell class was not removed from the second scheduler.'); - }).before(async () => { - await setStyleAttribute(Selector('#container'), 'display: flex;'); - await appendElementTo('#container', 'div', FIRST_SCHEDULER_SELECTOR); - await appendElementTo('#container', 'div', SECOND_SCHEDULER_SELECTOR); - - await createWidget( - 'dxScheduler', - getSchedulerOptions([TEST_APPOINTMENT], new Date(2021, 3, 26), methodName), - `#${FIRST_SCHEDULER_SELECTOR}`, - ); - - await createWidget( - 'dxScheduler', - getSchedulerOptions([], new Date(2021, 4, 26), methodName), - `#${SECOND_SCHEDULER_SELECTOR}`, - ); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.ts deleted file mode 100644 index 4ba392890b8c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/cancelAppointmentDrag.ts +++ /dev/null @@ -1,40 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { MouseAction, MouseUpEvents } from '../../../../helpers/mouseUpEvents'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Cancel appointment Drag-and-Drop` - .page(url(__dirname, '../../../container.html')); - -const APPOINTMENT_DRAG_SOURCE_CLASS = '.dx-scheduler-appointment-drag-source'; - -test('on escape - date should not changed when it\'s pressed during dragging (T832754)', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Appointment'); - await MouseUpEvents.disable(MouseAction.dragToElement); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(4, 0)) - .pressKey('esc'); - - await MouseUpEvents.enable(MouseAction.dragToElement); - - await t - .expect(scheduler.element.find(APPOINTMENT_DRAG_SOURCE_CLASS).exists) - .notOk() - .expect(draggableAppointment.date.time) - .eql('10:00 AM - 10:30 AM'); -}).before(async () => createScheduler({ - _draggingMode: 'default', - height: 600, - views: ['day'], - currentView: 'day', - cellDuration: 30, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2020, 9, 14, 10, 0), - endDate: new Date(2020, 9, 14, 10, 30), - }], - currentDate: new Date(2020, 9, 14), - showAllDayPanel: false, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.ts deleted file mode 100644 index 63018615e4c4..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragAppointmentAfterResize.ts +++ /dev/null @@ -1,69 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Drag-n-drop appointment after resize (T835545)` - .page(url(__dirname, '../../../container.html')); - -['day', 'week', 'month', 'timelineDay', 'timelineWeek', 'timelineMonth'].forEach((view) => test(`After drag-n-drop appointment, size of appointment shouldn't change in the '${view}' view`, async (t) => { - const scheduler = new Scheduler('#container'); - const { element, resizableHandle } = scheduler.getAppointment('app'); - - const initSize = { - width: await element.clientWidth, - height: await element.clientHeight, - }; - - const isVertical = await resizableHandle.bottom.count !== 0; - - await t - .drag(isVertical ? resizableHandle.bottom : resizableHandle.right, 50, 50); - - const size = isVertical ? await element.clientHeight : await element.clientWidth; - await t.expect(size) - .gt(isVertical ? initSize.height : initSize.width); - - const sizeBeforeDrag = { - width: await element.clientWidth, - height: await element.clientHeight, - }; - const positionBeforeDrag = { - left: await element.clientLeft, - top: await element.clientTop, - }; - - await t - .drag(element, 10, 10, { - offsetX: 0, - offsetY: 0, - }); - - const elementClientWidth = await element.clientWidth; - const elementClientHeight = await element.clientHeight; - - const elementClientLeft = await element.clientLeft; - const elementClientTop = await element.clientTop; - - await t - .expect(sizeBeforeDrag.width) - .eql(elementClientWidth) - - .expect(sizeBeforeDrag.height) - .eql(elementClientHeight) - - .expect(positionBeforeDrag.left) - .eql(elementClientLeft) - - .expect(positionBeforeDrag.top) - .eql(elementClientTop); -}).before(async () => createScheduler({ - views: [view], - currentView: view, - startDayHour: 9, - currentDate: new Date(2017, 4, 1), - dataSource: [{ - text: 'app', - startDate: new Date(2017, 4, 1, 9, 0), - endDate: new Date(2017, 4, 1, 10, 0), - }], -}))); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragEvents.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragEvents.ts deleted file mode 100644 index 144cf5e73864..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragEvents.ts +++ /dev/null @@ -1,174 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { CallbackTestHelper, WindowCallbackExtended } from '../../../../helpers/callbackTestHelper'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; - -fixture.disablePageReloads`Scheduler dragging - drag events` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const initCallbackTesting = async () => { - await CallbackTestHelper.initClientTesting([ - 'onDragStartItemData', - 'onDragMoveItemData', - 'onDragEndItemData', - 'onDragEndToItemData', - ]); -}; - -const clearCallbackTesting = async () => { - await CallbackTestHelper.clearClientData([ - 'onDragStartItemData', - 'onDragMoveItemData', - 'onDragEndItemData', - 'onDragEndToItemData', - ]); -}; - -const collectEventsCallbackResults = async () => [ - await CallbackTestHelper.getClientResults('onDragStartItemData'), - await CallbackTestHelper.getClientResults('onDragMoveItemData'), - await CallbackTestHelper.getClientResults('onDragEndItemData'), - await CallbackTestHelper.getClientResults('onDragEndToItemData'), -]; - -const INITIAL_APPOINTMENT = { - text: 'Test', - startDate: '2023-01-01T01:00:00', - endDate: '2023-01-01T02:00:00', -}; -const TEST_CASES = [ - { - view: 'month', - expectedToItemData: { - text: 'Test', - startDate: '2023-01-05T01:00:00', - endDate: '2023-01-05T02:00:00', - }, - }, - { - view: 'week', - expectedToItemData: { - text: 'Test', - startDate: '2023-01-05T00:00:00', - endDate: '2023-01-05T01:00:00', - allDay: true, - }, - }, - { - view: 'timelineDay', - expectedToItemData: { - text: 'Test', - startDate: '2023-01-01T01:30:00', - endDate: '2023-01-01T02:30:00', - allDay: false, - }, - }, -]; - -TEST_CASES.forEach(({ view, expectedToItemData }) => { - test(`Should fire correct events with correct itemData inside during drag-n-drop in ${view} view.`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment('Test'); - const targetCell = scheduler.getDateTableCell(0, 4); - - await t - .dragToElement(appointment.element, targetCell, { speed: 0.5 }); - - const [ - onDragStartItemData, - onDragMoveItemData, - onDragEndItemData, - onDragEndToItemData, - ] = await collectEventsCallbackResults(); - - await t - .expect(onDragStartItemData.length).eql(1) - .expect(onDragStartItemData[0]).eql(INITIAL_APPOINTMENT); - - // eslint-disable-next-line no-restricted-syntax - for (const itemData of onDragMoveItemData) { - await t.expect(itemData).eql(INITIAL_APPOINTMENT); - } - - await t - .expect(onDragEndItemData.length).eql(1) - .expect(onDragEndToItemData.length).eql(1) - .expect(onDragEndItemData[0]) - .eql(INITIAL_APPOINTMENT) - .expect(onDragEndToItemData[0]) - .eql(expectedToItemData); - }).before(async () => { - await initCallbackTesting(); - await createWidget('dxScheduler', { - dataSource: [INITIAL_APPOINTMENT], - currentView: view, - currentDate: '2023-01-01', - appointmentDragging: { - onDragStart: ({ itemData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onDragStartItemData', { ...itemData }); - }, - onDragMove: ({ itemData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onDragMoveItemData', { ...itemData }); - }, - onDragEnd: ({ itemData, toItemData }) => { - const clientTesting = (window as WindowCallbackExtended).clientTesting!; - clientTesting.addCallbackResult('onDragEndItemData', { ...itemData }); - clientTesting.addCallbackResult('onDragEndToItemData', { ...toItemData }); - }, - }, - }); - }).after(async () => { - await clearCallbackTesting(); - }); -}); - -test('Should block appointment dragging while onAppointmentUpdating Promise is pending (T1308596)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment('Test Appointment'); - - const targetCell1 = scheduler.getDateTableCell(18, 2); - const targetCell2 = scheduler.getDateTableCell(18, 5); - - const initialPosition = await appointment.element.boundingClientRect; - - await t.dragToElement(appointment.element, targetCell1, { speed: 1 }); - await t.dragToElement(appointment.element, targetCell2, { speed: 1 }); - await t.dragToElement(appointment.element, targetCell2, { speed: 1 }); - await t.dragToElement(appointment.element, targetCell2, { speed: 1 }); - - await t.wait(6000); - - const positionAfterPromiseResolved = await appointment.element.boundingClientRect; - const cell1Position = await targetCell1.boundingClientRect; - - await t - .expect(positionAfterPromiseResolved.left) - .notEql(initialPosition.left) - .expect(positionAfterPromiseResolved.left) - .eql(cell1Position.left); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Test Appointment', - startDate: new Date(2023, 0, 2, 10, 0), - endDate: new Date(2023, 0, 2, 11, 0), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2023, 0, 2), - height: 600, - onAppointmentUpdating: (e) => { - e.cancel = new Promise((resolve) => { - setTimeout(() => { - resolve(false); - }, 5000); - }); - }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png deleted file mode 100644 index 31c34c5d6d69..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-appointment-to-left-column (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png deleted file mode 100644 index f135f89e6314..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png deleted file mode 100644 index e43ffb5a0033..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-from-tooltip-to-left-cell-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png deleted file mode 100644 index 3df757d96630..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-previous-day-cell (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png deleted file mode 100644 index bc8d927b4c44..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-left(T1017720) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png deleted file mode 100644 index 8dabfe488f62..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/etalons/drag-n-drop-to-right(T1017720) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/externalDragging.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/externalDragging.ts deleted file mode 100644 index 87ccd84269ba..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/externalDragging.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { ClientFunction, Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; -import { appendElementTo } from '../../../../helpers/domUtils'; - -fixture.disablePageReloads`Drag-n-drop from another draggable area` - .page(url(__dirname, '../../../container.html')); - -test('Drag-n-drop an appointment when "cellDuration" changes dynamically', async (t) => { - const scheduler = new Scheduler('#scheduler'); - - await scheduler.option('cellDuration', 10); - - await t - .dragToElement(Selector('.item'), scheduler.getDateTableCell(0, 0)) - .expect(scheduler.getAppointmentByIndex(0).date.time) - .eql('9:00 AM - 9:10 AM'); -}).before(async () => { - await appendElementTo('#container', 'div', 'drag-area'); - - await ClientFunction(() => { - $('
') - .text('New Brochures') - .addClass('item') - .appendTo('#drag-area'); - })(); - - await appendElementTo('#container', 'div', 'scheduler'); - - await createWidget('dxDraggable', { - group: 'draggableGroup', - data: { text: 'New Brochures' }, - onDragStart(e) { - e.itemData = e.fromData; - }, - }, '#group'); - - await createWidget('dxDraggable', { - group: 'draggableGroup', - }, '#drag-area'); - - return createScheduler({ - views: ['week'], - currentView: 'week', - appointmentDragging: { - group: 'draggableGroup', - onAdd(e) { - e.component.addAppointment(e.itemData); - e.itemElement.remove(); - }, - }, - }, '#scheduler'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/init/widget.setup.ts deleted file mode 100644 index cc0740eda3fe..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/init/widget.setup.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -const resources = [ - { id: 0, color: '#e01e38' }, - { id: 1, color: '#f98322' }, - { id: 2, color: '#1e65e8' }, -]; - -export default async (options = {}, selector = '#container'): Promise => createWidget('dxScheduler', extend({ - views: ['day'], - dataSource: [], - resources: [ - { - fieldExpr: 'resourceId', - dataSource: resources, - label: 'Color', - }, - ], - width: 1666, - height: 833, - startDayHour: 9, - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'day', - currentDate: new Date(2019, 3, 1), -}, options), selector); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.ts deleted file mode 100644 index 528bd14b1a07..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/insideScheduler/removeDroppableCellClass.ts +++ /dev/null @@ -1,60 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; - -fixture.disablePageReloads`Cancel drag-n-drop when dragging an appointment inside the scheduler` - .page(url(__dirname, '../../../../container.html')); - -const METHODS_TO_CANCEL = [ - 'onDragStart', - 'onDragMove', - 'onDragEnd', -]; -const SCHEDULER_SELECTOR = '#container'; - -const TEST_APPOINTMENT = { - id: 10, - text: 'My appointment', - startDate: new Date(2021, 3, 28, 1), - endDate: new Date(2021, 3, 28, 2), -}; - -const getSchedulerOptions = () => ({ - dataSource: [TEST_APPOINTMENT], - currentDate: new Date(2021, 3, 28), - currentView: 'workWeek', - width: 600, -}); - -METHODS_TO_CANCEL.forEach((methodName) => { - test(`Should remove drag-n-drop classes if event was canceled in method ${methodName}`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const appointmentToMoveElement = scheduler - .getAppointment(TEST_APPOINTMENT.text) - .element(); - const cellToMoveElement = scheduler - .getDateTableCell(1, 0); - - await t.dragToElement(appointmentToMoveElement, cellToMoveElement, { speed: 0.5 }); - - const droppableCellExists = await scheduler - .getDroppableCell() - .exists; - const appointmentIsDraggableSource = await scheduler - .getAppointment(TEST_APPOINTMENT.text) - .isDraggableSource; - - await t.expect(droppableCellExists).notOk('Droppable cell class was not removed.'); - await t.expect(appointmentIsDraggableSource).notOk('Draggable source class was not removed from appointment.'); - }).before(async () => { - await createWidget('dxScheduler', { - ...getSchedulerOptions(), - appointmentDragging: { - [methodName]: (e) => { - e.cancel = true; - }, - }, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/base.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/base.ts deleted file mode 100644 index be1fd20a6caa..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/base.ts +++ /dev/null @@ -1,456 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { ClientFunction } from 'testcafe'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { Themes } from '../../../../../helpers/themes'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Outlook dragging base tests` - .page(url(__dirname, '../../../../container.html')); - -test('Basic drag-n-drop movements in groups', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - await t.drag(draggableAppointment.element, 330, 70); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-orange-group.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -330, 70); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-blue-group.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 26, 8, 30), - endDate: new Date(2021, 2, 26, 11, 0), - priorityId: 1, - }], - groups: ['priorityId'], - resources: [{ - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: [{ - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }], - label: 'Priority', - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 26), - startDayHour: 8, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop movements from tooltip in week view', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t - .click(scheduler.collectors.find('2').element) - .expect(scheduler.appointmentTooltip.isVisible()).ok() - .drag(scheduler.appointmentTooltip.getListItem('Appointment 3').element, 200, 50); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-\'Appointment 3\'-from-tooltip-in-week.png', { - element: scheduler.workSpace, - }); - - await t - .click(scheduler.collectors.find('1').element) - .expect(scheduler.appointmentTooltip.isVisible()).ok() - .drag(scheduler.appointmentTooltip.getListItem('Appointment 2').element, 350, 150); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-\'Appointment 2\'-from-tooltip-in-week.png', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Appointment 1', - startDate: new Date(2021, 2, 21, 9, 30), - endDate: new Date(2021, 2, 21, 12, 0), - }, { - text: 'Appointment 2', - startDate: new Date(2021, 2, 21, 9, 30), - endDate: new Date(2021, 2, 21, 12, 0), - }, { - text: 'Appointment 3', - startDate: new Date(2021, 2, 21, 9, 30), - endDate: new Date(2021, 2, 21, 11, 0), - }, { - text: 'Appointment 4', - startDate: new Date(2021, 2, 21, 9, 30), - endDate: new Date(2021, 2, 21, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 21), - startDayHour: 8, - height: 600, - width: 1000, -})); - -test.meta({ runInTheme: Themes.genericLight })('Basic drag-n-drop movements from tooltip in month view', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t - .click(scheduler.collectors.find('2').element) - .expect(scheduler.appointmentTooltip.isVisible()).ok() - .drag(scheduler.appointmentTooltip.getListItem('Appointment 3').element, -180, -30); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-\'Appointment 3\'-from-tooltip-in-month.png', { - element: scheduler.workSpace, - }); - - await t - .click(scheduler.collectors.find('1', 1).element) - .expect(scheduler.appointmentTooltip.isVisible()).ok() - .drag(scheduler.appointmentTooltip.getListItem('Appointment 2').element, 320, 150); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-\'Appointment 2\'-from-tooltip-in-month.png', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Appointment 1', - startDate: new Date(2021, 2, 31, 9, 30), - endDate: new Date(2021, 3, 1, 12, 0), - }, { - text: 'Appointment 2', - startDate: new Date(2021, 2, 31, 9, 30), - endDate: new Date(2021, 3, 1, 12, 0), - }, { - text: 'Appointment 3', - startDate: new Date(2021, 2, 31, 9, 30), - endDate: new Date(2021, 3, 1, 11, 0), - }, { - text: 'Appointment 4', - startDate: new Date(2021, 2, 31, 9, 30), - endDate: new Date(2021, 3, 1, 12, 30), - }], - views: ['month'], - currentView: 'month', - currentDate: new Date(2021, 2, 27), - startDayHour: 8, - height: 600, - width: 1000, -})); - -[{ - currentView: 'timelineWeek', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 21, 9, 30), - endDate: new Date(2021, 2, 21, 10, 45), - }], -}, { - currentView: 'timelineMonth', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 2, 9, 30), - endDate: new Date(2021, 2, 3, 11, 0), - }], -}].forEach(({ currentView, dataSource }) => { - test(`Basic drag-n-drop movements in ${currentView} view`, async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 250, 0); - - await testScreenshot(t, takeScreenshot, `drag-n-drop-${currentView}-to-right.png`, { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -250, 0); - - await testScreenshot(t, takeScreenshot, `drag-n-drop-${currentView}-to-left.png`, { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - dataSource, - views: ['timelineWeek', 'timelineMonth'], - currentView, - currentDate: new Date(2021, 2, 21), - startDayHour: 9, - height: 600, - width: 1000, - })); -}); - -test('Basic drag-n-drop movements', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 100, 0, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -100, 0, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 100, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-bottom.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -100, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-top.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 22, 10), - endDate: new Date(2021, 2, 22, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 22), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop movements with mouse offset', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 100, 0, { offsetX: 10, offsetY: 200, speed: 0.5 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-mouse-offset-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -100, 0, { offsetX: 10, offsetY: 200, speed: 0.5 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-mouse-offset-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 100, { offsetX: 10, offsetY: 200, speed: 0.5 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-mouse-offset-to-bottom.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -100, { offsetX: 10, offsetY: 200, speed: 0.5 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-mouse-offset-to-top.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 22, 10), - endDate: new Date(2021, 2, 22, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 22), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop all day appointment movements', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 200, 0, { speed: 0.1 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-all-day-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -200, 0, { speed: 0.1 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-all-day-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 260, 270, { speed: 0.1 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-all-day-to-bottom.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -260, { speed: 0.1 }); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-all-day-to-top.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 23, 10), - endDate: new Date(2021, 2, 25, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 23), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop movements within the cell', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const blurActiveElement = ClientFunction(() => { - const el = document.activeElement as HTMLElement | null; - el?.blur(); - }); - - await t.drag(draggableAppointment.element, 55, 0); - await blurActiveElement(); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-within-cell-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -50, 0); - await blurActiveElement(); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-within-cell-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 30); - await blurActiveElement(); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-within-cell-to-bottom.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 22, 10), - endDate: new Date(2021, 2, 22, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 22), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop small appointments', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 250, 0); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-small-appoint-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -250, 0); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-small-appoint-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 170); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-small-appoint-to-bottom.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -170); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-small-appoint-to-top.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 17, 10), - endDate: new Date(2021, 2, 17, 12, 30), - }], - views: ['month'], - currentView: 'month', - currentDate: new Date(2021, 2, 17), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Basic drag-n-drop long appointments', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 150, 0); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-long-appoint-to-right.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -30, 0); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-long-appoint-to-left.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 70); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-long-appoint-to-bottom.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -70); - await testScreenshot(t, takeScreenshot, 'drag-n-drop-long-appoint-to-top.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 16, 10), - endDate: new Date(2021, 2, 18, 12, 30), - }], - views: ['month'], - currentView: 'month', - currentDate: new Date(2021, 2, 16), - startDayHour: 9, - height: 600, - width: 1000, -})); - -test('Narrow appointment dragging on minimal distance should be expected(1171520)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(scheduler.getAppointment('Test').element, -10, 0, { offsetX: 10 }); - - await testScreenshot(t, takeScreenshot, 'drag-short-app-min-dist-to-left.png', { element: scheduler.workSpace }); - - await t.drag(scheduler.getAppointment('Test').element, 195, 0, { offsetX: 10 }); - - await testScreenshot(t, takeScreenshot, 'drag-short-app-to-right.png', { element: scheduler.workSpace }); - - await t.drag(scheduler.getAppointment('Test').element, 200, 0, { offsetX: 10 }); - - await testScreenshot(t, takeScreenshot, 'drag-short-app-to-right-on-next-cell.png', { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Test', - startDate: new Date(2021, 1, 2), - endDate: new Date(2021, 1, 2, 1), - }], - views: ['timelineWeek'], - currentView: 'timelineWeek', - currentDate: new Date(2021, 1, 2), - cellDuration: 1440, - height: 300, - with: 500, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png deleted file mode 100644 index f6391fa83fb7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-month (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png deleted file mode 100644 index 5d5facd350a2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 2'-from-tooltip-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png deleted file mode 100644 index 8fa2bc98c2df..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-month (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png deleted file mode 100644 index cd148d6c842d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-'Appointment 3'-from-tooltip-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png deleted file mode 100644 index 430e0b43b08a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png deleted file mode 100644 index a4b7c52f8d53..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png deleted file mode 100644 index df3a3d9dd22b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png deleted file mode 100644 index ee97244c0dd9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-all-day-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png deleted file mode 100644 index cbcc26a3c66a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-blue-group (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (fluent.blue.light).png deleted file mode 100644 index 82a19af22086..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-from-tooltip-to-cell-below-in-month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png deleted file mode 100644 index 35c21518f580..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png deleted file mode 100644 index 90f1bd9a24d5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png deleted file mode 100644 index 765285ffae44..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png deleted file mode 100644 index 90f1bd9a24d5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-long-appoint-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png deleted file mode 100644 index 28150051ee45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png deleted file mode 100644 index c5fc538f732a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png deleted file mode 100644 index a0b922e98203..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png deleted file mode 100644 index c8f0e8c618e7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-mouse-offset-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png deleted file mode 100644 index 60d53a3f1957..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png deleted file mode 100644 index 42fecacf751f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png deleted file mode 100644 index 6c63cdd60f2e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png deleted file mode 100644 index 42fecacf751f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-small-appoint-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png deleted file mode 100644 index 36394346a6c2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png deleted file mode 100644 index 6db33d79f093..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineMonth-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png deleted file mode 100644 index 2a079f656166..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png deleted file mode 100644 index 8903e76a163e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-timelineWeek-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png deleted file mode 100644 index e23ffc92c849..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png deleted file mode 100644 index 80170298ef89..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-bottom-in-shifted-container (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png deleted file mode 100644 index 08308a05bca6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png deleted file mode 100644 index e21486e1e965..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-left-in-shifted-container (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png deleted file mode 100644 index 30d0a5a0f261..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-orange-group (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png deleted file mode 100644 index 540b369e3c33..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png deleted file mode 100644 index 43c0ad8dffff..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-right-in-shifted-container (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png deleted file mode 100644 index 2ca3e7ec93e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png deleted file mode 100644 index 0aa783f032e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-to-top-in-shifted-container (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png deleted file mode 100644 index 7169aee43768..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png deleted file mode 100644 index 08308a05bca6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png deleted file mode 100644 index 08308a05bca6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-n-drop-within-cell-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png deleted file mode 100644 index 82366ff911d0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-min-dist-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png deleted file mode 100644 index 2d1da76fac2b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png deleted file mode 100644 index 39b6cba5e851..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/etalons/drag-short-app-to-right-on-next-cell (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png deleted file mode 100644 index 8f4879e6b7ec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png deleted file mode 100644 index ad7bfe26bba7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png deleted file mode 100644 index d2729a57c97a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-dxTabPanel-drag-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png deleted file mode 100644 index 89226f96c6b4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-bottom (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png deleted file mode 100644 index b9324d73f854..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-left (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png deleted file mode 100644 index 85c7b23cad11..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-right (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png deleted file mode 100644 index ab25fbf6f924..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/etalons/dxScheduler-placed-in-transform-container-drag-to-top (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.ts deleted file mode 100644 index 2e1b2c7827cd..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInContainer.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Outlook dragging, for case scheduler in container` - .page(url(__dirname, '../../../../../container.html')); - -test('Dragging should be work right in case dxScheduler placed in dxTabPanel', async (t) => { - const scheduler = new Scheduler('.dx-scheduler'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - await t.drag(draggableAppointment.element, 0, 120); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-dxTabPanel-drag-to-bottom.png'); - - await t.drag(draggableAppointment.element, 0, -170); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-dxTabPanel-drag-to-top.png'); - - await t.drag(draggableAppointment.element, 100, 0); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-dxTabPanel-drag-to-right.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxTabPanel', { - items: [{ - title: 'Info', - text: 'This is Info Tab', - }, { - title: 'Contacts', - text: 'This is Contacts Tab', - disabled: true, - }], - itemTemplate: ClientFunction(() => ($('
') as any).dxScheduler({ - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 30, 11), - endDate: new Date(2021, 2, 30, 12), - }], - views: ['week', 'month'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - startDayHour: 9, - height: 600, - })), - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.ts deleted file mode 100644 index 89c89a17c6bf..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/schedulerInContainer/schedulerInTransformContainer.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; -import { - appendElementTo, - setStyleAttribute, -} from '../../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Outlook dragging, for case scheduler in container with transform style` - .page(url(__dirname, '../../../../../container.html')); - -test('Dragging should be work right in case dxScheduler placed in container with transform style', async (t) => { - const scheduler = new Scheduler('#scheduler'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const draggableAppointment = scheduler.getAppointmentByIndex(0); - - await t - .drag(draggableAppointment.element, 0, 120); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-transform-container-drag-to-bottom.png'); - - await t.drag(draggableAppointment.element, 0, -170); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-transform-container-drag-to-top.png'); - - await t.drag(draggableAppointment.element, 100, 0); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-transform-container-drag-to-right.png'); - - await t.drag(draggableAppointment.element, -230, 0); - - await testScreenshot(t, takeScreenshot, 'dxScheduler-placed-in-transform-container-drag-to-left.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await setStyleAttribute(Selector('#container'), 'margin-top: 100px; margin-left: 100px; transform: translate(0px, 0px);'); - await appendElementTo('#container', 'div', 'scheduler'); - - return createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 24, 11), - endDate: new Date(2021, 2, 24, 12), - }], - views: ['workWeek'], - currentView: 'workWeek', - currentDate: new Date(2021, 2, 22), - startDayHour: 9, - height: 600, - width: 800, - }, '#scheduler'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.ts deleted file mode 100644 index 39ec3583ef94..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/outlookDragging/shiftedContainer.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { Selector } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; -import { setStyleAttribute } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Outlook dragging base tests in shifted container` - .page(url(__dirname, '../../../../container.html')); - -test('Basic drag-n-drop movements in shifted container', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.drag(draggableAppointment.element, 100, 0, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-right-in-shifted-container.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, -100, 0, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-left-in-shifted-container.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, 100, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-bottom-in-shifted-container.png', { element: scheduler.workSpace }); - - await t.drag(draggableAppointment.element, 0, -100, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-to-top-in-shifted-container.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await setStyleAttribute(Selector('#container'), 'margin-left: 50px; margin-top: 70px;'); - - return createWidget('dxScheduler', { - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date(2021, 2, 22, 10), - endDate: new Date(2021, 2, 22, 12, 30), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 22), - startDayHour: 9, - height: 600, - width: 950, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/timeline.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/timeline.ts deleted file mode 100644 index 2f483f0ef9e3..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/timeline.ts +++ /dev/null @@ -1,40 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { dataSource } from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Drag-and-drop appointments in the Scheduler timeline views` - .page(url(__dirname, '../../../container.html')); - -['timelineDay', 'timelineWeek', 'timelineWorkWeek'].forEach((view) => test(`Drag-n-drop in the "${view}" view`, async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(0, 4)) - .expect(draggableAppointment.size.width).eql('200px') - .expect(draggableAppointment.date.time) - .eql('11:00 AM - 11:30 AM'); -}).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, -}))); - -test('Drag-n-drop in the "timelineMonth" view', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getDateTableCell(0, 4)) - .expect(parseInt(await draggableAppointment.size.height, 10)) - .within(139, 140) - .expect(draggableAppointment.size.width) - .eql('200px') - .expect(draggableAppointment.date.time) - .eql('9:00 AM - 9:30 AM'); -}).before(async () => createScheduler({ - views: ['timelineMonth'], - currentView: 'timelineMonth', - dataSource, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/verticalGrouping.ts b/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/verticalGrouping.ts deleted file mode 100644 index a9fecd33d320..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/verticalGrouping.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Drag-and-drop appointments in the Scheduler with vertical grouping` - .page(url(__dirname, '../../../container.html')); - -test('Should drag appoinment to the previous day`s cell (T1025952)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('appointment'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.dragToElement(appointment.element, scheduler.getDateTableCell(1, 1)); - - await testScreenshot(t, takeScreenshot, 'drag-n-drop-previous-day-cell.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createScheduler({ - dataSource: [ - { - text: 'appointment', - startDate: new Date(2021, 3, 21, 9, 30), - endDate: new Date(2021, 3, 21, 10), - priorityId: 1, - }, - ], - views: [ - { - type: 'week', - groupOrientation: 'vertical', - }, - ], - currentView: 'week', - currentDate: new Date(2021, 3, 21), - groups: ['priorityId'], - resources: [ - { - dataSource: [ - { - text: 'Low Priority', - id: 1, - }, { - text: 'High Priority', - id: 2, - }, - ], - fieldExpr: 'priorityId', - displayExpr: 'name', - allowMultiple: false, - }, - ], - startDayHour: 9, - endDayHour: 12, - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png deleted file mode 100644 index c2cbb75ef4e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light)_mask.png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light)_mask.png deleted file mode 100644 index aab38d7ecbf6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/save-appointment-loading-panel-screenshot (fluent.blue.light)_mask.png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png deleted file mode 100644 index 2c7e0caf626e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-after-hiding-and-resizing (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png deleted file mode 100644 index 91f0d0d7caf7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-appointments-should-update-color (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png deleted file mode 100644 index 4052c4c2d059..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-active-state (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png deleted file mode 100644 index 4a77888762e4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scheduler-week-cell-hover-state (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png deleted file mode 100644 index 7f342ce17598..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/etalons/scrollable-month-workspace (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png deleted file mode 100644 index 08582faaffc3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-agenda-view-long-names (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png deleted file mode 100644 index 0e5da049c6c3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-group-by-date-long-names (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png deleted file mode 100644 index 1518a83f6d51..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-horizontal-grouping-long-names (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png deleted file mode 100644 index b7e44a97db81..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-header-css-vertical-grouping-long-names (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png deleted file mode 100644 index b3964cf48287..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png deleted file mode 100644 index 8269fa4082fd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png deleted file mode 100644 index b3964cf48287..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png deleted file mode 100644 index 8269fa4082fd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png deleted file mode 100644 index 99693189ec59..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png deleted file mode 100644 index 659c29d0ea43..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-allDay-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png deleted file mode 100644 index 99693189ec59..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png deleted file mode 100644 index 659c29d0ea43..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(month-vertical-hidden-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png deleted file mode 100644 index bffd736ba66e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png deleted file mode 100644 index fa992a377c16..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png deleted file mode 100644 index bffd736ba66e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png deleted file mode 100644 index fa992a377c16..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png deleted file mode 100644 index 3e675e77c5c4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png deleted file mode 100644 index b39a6bbba1e1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-allDay-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png deleted file mode 100644 index 3e675e77c5c4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-0-24) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png deleted file mode 100644 index b39a6bbba1e1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/group-overflow-(week-vertical-hidden-9-14) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png deleted file mode 100644 index c272d4e50be6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_fist-app-part_T1122185 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png deleted file mode 100644 index ac5da0d7bba4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_last-app-part_T1122185 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png deleted file mode 100644 index 9addc222a620..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/month-view_vertical-grouping_middle-app-part_T1122185 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png deleted file mode 100644 index ad54459e220b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/etalons/scrolling-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupHeaderLongNamesCss.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupHeaderLongNamesCss.ts deleted file mode 100644 index c0f2620ac6b7..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupHeaderLongNamesCss.ts +++ /dev/null @@ -1,165 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { extend } from 'devextreme/core/utils/extend'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -const SCHEDULER_SELECTOR = '#container'; - -const resources = [ - { - text: 'Very Long Priority Name for High Priority Tasks and Urgent Matters', - id: 1, - color: '#ff9747', - }, - { - text: 'Extremely Long Priority Name for Medium Priority Tasks and Regular Work', - id: 2, - color: '#24ff50', - }, - { - text: 'Super Long Priority Name for Low Priority Tasks and Background Activities', - id: 3, - color: '#3366ff', - }, -]; - -const dataSource = [ - { - text: 'Team Meeting', - startDate: new Date(2021, 3, 21, 10, 0), - endDate: new Date(2021, 3, 21, 11, 30), - priorityId: 1, - }, - { - text: 'Code Review', - startDate: new Date(2021, 3, 21, 14, 0), - endDate: new Date(2021, 3, 21, 15, 0), - priorityId: 2, - }, - { - text: 'Planning Session', - startDate: new Date(2021, 3, 22, 9, 0), - endDate: new Date(2021, 3, 22, 12, 0), - priorityId: 3, - }, -]; - -const DEFAULT_OPTIONS = { - currentDate: new Date(2021, 3, 21), - height: 600, - width: 1000, - startDayHour: 9, - endDayHour: 16, - crossScrollingEnabled: true, - showCurrentTimeIndicator: false, - showAllDayPanel: false, - groups: ['priorityId'], - views: [{ - type: 'workWeek', - name: 'Vertical Grouping', - groupOrientation: 'vertical', - cellDuration: 60, - intervalCount: 2, - }, - { - type: 'workWeek', - name: 'Horizontal Grouping', - groupOrientation: 'horizontal', - cellDuration: 30, - intervalCount: 2, - }, { - type: 'month', - name: 'Group By Date', - groupOrientation: 'horizontal', - }, 'agenda'], - resources: [{ - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: resources, - label: 'Priority', - }], - dataSource, -}; - -const CELL_SIZE_CSS = ` - #container .dx-scheduler-group-header { - width: auto; - } - #container .dx-scheduler-group-flex-container, - #container .dx-scheduler-work-space-vertical-group-table, - #container .dx-scheduler-sidebar-scrollable { - flex: 0 0 auto; - } -`; - -const createScheduler = async (options = {}): Promise => createWidget('dxScheduler', extend(DEFAULT_OPTIONS, options)); - -fixture`Scheduler: Group Header CSS for Long Resource Names` - .page(url(__dirname, '../../../container.html')); - -test('Group header CSS should work with vertical grouping and long resource names', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.expect(scheduler.element.find('.dx-scheduler-group-header').exists) - .ok('Group headers should exist'); - - await testScreenshot(t, takeScreenshot, 'group-header-css-vertical-grouping-long-names.png', { element: scheduler.element }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(CELL_SIZE_CSS); - await createScheduler({ currentView: 'Vertical Grouping' }); -}); - -test('Group header CSS should work with horizontal grouping and long resource names', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.expect(scheduler.element.find('.dx-scheduler-group-header').exists) - .ok('Group headers should exist'); - - await testScreenshot(t, takeScreenshot, 'group-header-css-horizontal-grouping-long-names.png', { element: scheduler.element }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(CELL_SIZE_CSS); - await createScheduler({ currentView: 'Horizontal Grouping' }); -}); - -test('Group header CSS should work with group by date and long resource names', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.expect(scheduler.element.find('.dx-scheduler-group-header').exists) - .ok('Group headers should exist'); - - await testScreenshot(t, takeScreenshot, 'group-header-css-group-by-date-long-names.png', { element: scheduler.element }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(CELL_SIZE_CSS); - await createScheduler({ currentView: 'Group By Date', groupByDate: true }); -}); - -test('Group header CSS should work with agenda view and long resource names', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.expect(scheduler.element.find('.dx-scheduler-group-header').exists) - .ok('Group headers should exist'); - - await testScreenshot(t, takeScreenshot, 'group-header-css-agenda-view-long-names.png', { element: scheduler.element }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(CELL_SIZE_CSS); - await createScheduler({ currentView: 'agenda' }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupingByDate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupingByDate.ts deleted file mode 100644 index b0f7c342a3b7..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/groupingByDate.ts +++ /dev/null @@ -1,21 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Drag-and-drop appointments into allDay panel in the grouped Scheduler ` - .page(url(__dirname, '../../../container.html')); - -test('Drag-n-drop between dateTable and allDay panel, groupByDate=true', async (t) => { - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Website Re-Design Plan'); - - await t - .dragToElement(draggableAppointment.element, scheduler.getAllDayTableCell(1), { speed: 0.2 }) - .expect(draggableAppointment.element.exists).ok() - .expect(draggableAppointment.isAllDay) - .ok(); -}).before(async () => createScheduler({ - dataSource, - groupByDate: true, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/init/widget.setup.ts deleted file mode 100644 index 80f8a70dfa69..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/init/widget.setup.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -const priorityData = [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, -]; - -export default async (options = {}): Promise => createWidget('dxScheduler', extend({ - views: ['week'], - dataSource: [], - resources: [ - { - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: priorityData, - label: 'Priority', - }, - ], - groups: ['priorityId'], - crossScrollingEnabled: true, - groupByDate: false, - width: 1666, - height: 833, - startDayHour: 9, - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'week', - currentDate: new Date(2018, 4, 21), -}, options)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/monthViewVerticalGrouping.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/monthViewVerticalGrouping.ts deleted file mode 100644 index d391505ebe16..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/monthViewVerticalGrouping.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -const SCHEDULER_SELECTOR = '#container'; - -fixture.disablePageReloads`Month view vertical grouping ` - .page(url(__dirname, '../../../container.html')); - -test('Scrolling: usual. Shouldn\'t overlap the next group with long all-day appointment in the month view (T1122185)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'month-view_vertical-grouping_fist-app-part_T1122185.png', { element: scheduler.workSpace }); - await t.click(await scheduler.toolbar.navigator.nextButton()); - await testScreenshot(t, takeScreenshot, 'month-view_vertical-grouping_middle-app-part_T1122185.png', { element: scheduler.workSpace }); - await t.click(await scheduler.toolbar.navigator.nextButton()); - await testScreenshot(t, takeScreenshot, 'month-view_vertical-grouping_last-app-part_T1122185.png', { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget( - 'dxScheduler', - { - dataSource: [ - { - text: 'Appointment group 1', - groupId: 1, - startDate: '2021-04-29T14:00:00Z', - endDate: '2021-06-20T14:00:00Z', - allDay: true, - }, - ], - views: [{ - type: 'month', - groupOrientation: 'vertical', - }], - currentView: 'month', - currentDate: '2021-04-29T00:00:00Z', - groups: ['groupId'], - resources: [ - { - fieldExpr: 'groupId', - allowMultiple: false, - dataSource: [{ - text: 'Group 1', - id: 1, - color: '#ff0000', - }, { - text: 'Group 2', - id: 2, - color: '#0000ff', - }], - label: 'Group', - }, - ], - }, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/overflow.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/overflow.ts deleted file mode 100644 index e820eb7d6353..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/overflow.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Grouping overflow` - .page(url(__dirname, '../../../container.html')); - -['week', 'month'].forEach((viewType) => { - ['vertical', 'horizontal'].forEach((groupOrientation) => { - ['hidden', 'allDay'].forEach((allDayPanelMode) => { - [[9, 14, 60], [0, 24, 360]].forEach(([startDayHour, endDayHour, cellDuration]) => { - const allParams = `${viewType}-${groupOrientation}-${allDayPanelMode}-${startDayHour}-${endDayHour}`; - - test(`Long appointments should not overflow group view (${allParams})`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `group-overflow-(${allParams}).png`, { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - text: '1', - priorityId: 1, - startDate: '2021-04-19T16:30:00', - endDate: '2021-04-25T18:30:00', - }, { - text: '2', - priorityId: 2, - startDate: '2021-04-19T16:30:00', - endDate: '2021-04-25T18:30:00', - }, { - text: '3', - priorityId: 3, - startDate: '2021-04-19T16:30:00', - endDate: '2021-04-25T18:30:00', - }, - ], - views: [{ - type: viewType, - name: 'myView', - groupOrientation, - }], - cellDuration, - currentView: 'myView', - currentDate: new Date(2021, 3, 21), - allDayPanelMode, - startDayHour, - endDayHour, - groups: ['priorityId'], - resources: [ - { - fieldExpr: 'priorityId', - dataSource: [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, - { - text: 'Custom', - id: 3, - color: 'red', - }, - ], - }, - ], - showAllDayPanel: false, - })); - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/resourceCellTemplate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/resourceCellTemplate.ts deleted file mode 100644 index 80c1ce1a368f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/resourceCellTemplate.ts +++ /dev/null @@ -1,39 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`ResourceCellTemplate` - .page(url(__dirname, '../../../container.html')); - -test('resourceCellTemplate layout should be rendered right in the agenda view', async (t) => { - const scheduler = new Scheduler('#container'); - const groupHeader = scheduler.getGroupCell(); - - await t.expect(groupHeader.textContent).eql('Custom resource text'); -}).before(async () => { - const currentDate = new Date(2017, 4, 25); - await createWidget('dxScheduler', { - dataSource: [{ - text: 'appointment', - startDate: currentDate, - endDate: currentDate, - resource: 1, - }], - views: ['agenda'], - currentView: 'agenda', - currentDate, - resourceCellTemplate() { - return 'Custom resource text'; - }, - groups: ['resource'], - resources: [{ - fieldExpr: 'resource', - dataSource: [{ - text: 'Resource text', - id: 1, - }], - label: 'Resource', - }], - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/smoothCellLines.ts b/e2e/testcafe-devextreme/tests/scheduler/common/grouping/smoothCellLines.ts deleted file mode 100644 index b8e22cc54309..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/grouping/smoothCellLines.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: SmoothCellLines` - .page(url(__dirname, '../../../container.html')); - -const resourcesData = [...Array(20).keys()].map((num: number) => ({ - text: `Name ${num}`, - id: num, -})); - -// visual: material.blue.light -test('The group panel and date table stay in sync during scrolling on material themes (T1146448)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.scroll(scheduler.workspaceScrollable, 0, 1100); - - await testScreenshot(t, takeScreenshot, 'scrolling-vertical', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['timelineWeek'], - currentView: 'timelineWeek', - groups: ['ownerId'], - currentDate: new Date(2021, 1, 2), - resources: [{ fieldExpr: 'ownerId', dataSource: resourcesData, label: 'Owner' }], - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/customization.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/customization.ts deleted file mode 100644 index 65a0bf32b5bc..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/customization.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler header customization` - .page(url(__dirname, '../../../container.html')); - -const customToolbarItems = [ - { - location: 'before', - name: 'dateNavigator', - options: { - items: [ - { key: 'today', text: 'Today' }, - 'prev', - 'next', - 'dateInterval', - ], - }, - }, - { - location: 'before', - locateInMenu: 'auto', - widget: 'dxButton', - options: { icon: 'plus' }, - }, - 'viewSwitcher', -]; - -test('Scheduler default toolbar should works', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, 'scheduler-default toolbar.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 3, 27), -})); - -test('Scheduler toolbar should be hided', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await t.expect(scheduler.toolbar.element.exists).notOk(); - - await testScreenshot(t, takeScreenshot, 'scheduler-hidden-toolbar.png', { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 3, 27), - toolbar: { - visible: false, - items: [ - { location: 'before', name: 'viewSwitcher' }, - { location: 'after', name: 'dateNavigator' }, - ], - }, -})); - -[ - { toolbar: { items: customToolbarItems }, description: 'custom toolbar' }, - { toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, description: 'toolbar with today' }, - { toolbar: { disabled: true, items: customToolbarItems }, description: 'disabled toolbar' }, -].forEach(({ toolbar, description }) => { - test(`Scheduler ${description} should works`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, `scheduler-${description}.png`, { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 3, 27), - toolbar, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/dateNavigator.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/dateNavigator.ts deleted file mode 100644 index 0d2e8a5e02b4..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/dateNavigator.ts +++ /dev/null @@ -1,167 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Date navigator` - .page(url(__dirname, '../../../container.html')); - -[{ - agendaDuration: 20, - result: '11-30 May 2021', -}, { - agendaDuration: 40, - result: '11 May-19 Jun 2021', -}].forEach(({ agendaDuration, result }) => { - test(`Caption of date navigator should be valid after change view to Agenda with agendaDuration=${agendaDuration}`, async (t) => { - const { toolbar } = new Scheduler('#container'); - - await t - .click(toolbar.viewSwitcher.getButton('Month').element) - .pressKey('down') - .pressKey('down') - .pressKey('enter'); - - await t - .expect(toolbar.navigator.caption.innerText) - .eql(result); - }).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: [{ - type: 'agenda', - agendaDuration, - }, 'month'], - currentView: 'month', - currentDate: new Date(2021, 4, 11), - height: 600, - })); -}); - -test('Current date in Calendar should be respond on prev and next buttons of Navigator', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { toolbar } = new Scheduler('#container'); - - await t - .click(toolbar.navigator.caption); - - await testScreenshot(t, takeScreenshot, 'initial-calendar-state.png'); - - await t - .click(toolbar.navigator.nextButton) - .click(toolbar.navigator.nextButton) - .click(toolbar.navigator.nextButton); - await t - .click(toolbar.navigator.caption); - - await testScreenshot(t, takeScreenshot, 'calendar-state-after-next-button-click.png'); - - await t - .click(toolbar.navigator.prevButton) - .click(toolbar.navigator.prevButton) - .click(toolbar.navigator.prevButton) - .click(toolbar.navigator.prevButton) - .click(toolbar.navigator.prevButton) - .click(toolbar.navigator.prevButton); - await t - .click(toolbar.navigator.caption); - - await testScreenshot(t, takeScreenshot, 'calendar-state-after-prev-button-click.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - width: 600, - height: 400, -})); - -test('Current date in Navigator should be respond on Current date of Calendar', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { toolbar } = new Scheduler('#container'); - const { navigator } = toolbar; - - await t - .click(toolbar.navigator.caption); - - await t - .click(navigator.calendar.getNavigatorNextButton().element) - .click(navigator.calendar.getView().getCellByIndex(20)); - - await testScreenshot(t, takeScreenshot, 'navigator-state-after-calendar-next-button-click.png'); - - await t - .click(toolbar.navigator.caption) - .click(navigator.calendar.getNavigatorPrevButton().element) - .click(navigator.calendar.getNavigatorPrevButton().element) - .click(toolbar.navigator.calendar.getView().getCellByIndex(15)); - - await testScreenshot(t, takeScreenshot, 'navigator-state-after-calendar-prev-button-click.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - width: 600, - height: 400, -})); - -test('Current date in navigator should be updated if scheduler currentDate is changed', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentDate', new Date(2022, 2, 28)); - - await t - .click(scheduler.toolbar.navigator.caption); - - await testScreenshot( - t, - takeScreenshot, - 'navigator-state-after-change-currentDate-option.png', - { element: scheduler.toolbar.navigator.calendar.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - width: 600, - height: 400, -})); - -test('Calendar should be have right appearance', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { toolbar } = new Scheduler('#container'); - - await t - .click(toolbar.navigator.caption); - - await testScreenshot( - t, - takeScreenshot, - 'right-calendar-appearance.png', - { element: toolbar.navigator.calendar.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png deleted file mode 100644 index c0c95d95af75..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__after (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png deleted file mode 100644 index 5121856be913..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/T1306971__scheduler__horizontal-scrolling__before (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png deleted file mode 100644 index e3c1036e61c1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-next-button-click (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png deleted file mode 100644 index 8f5c16a69f9e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/calendar-state-after-prev-button-click (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png deleted file mode 100644 index 02efcb080f13..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/initial-calendar-state (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png deleted file mode 100644 index 1520ca2a4354..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-next-button-click (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png deleted file mode 100644 index ca95257c7b67..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-calendar-prev-button-click (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png deleted file mode 100644 index 0342860e9b87..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/navigator-state-after-change-currentDate-option (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png deleted file mode 100644 index 5d2f7278290d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/right-calendar-appearance (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png deleted file mode 100644 index ad1f62986f0f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-custom toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png deleted file mode 100644 index d63fcb68b4ce..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-default toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png deleted file mode 100644 index ad1f62986f0f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-disabled toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png deleted file mode 100644 index edb26136b1ee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-hidden-toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png deleted file mode 100644 index e98001f9845a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-false-toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png deleted file mode 100644 index 90d3a9479cea..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-multiline-true-toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png deleted file mode 100644 index 85b6d0b7141c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png deleted file mode 100644 index 49d30ae09404..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar with today (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png deleted file mode 100644 index be42ee640e44..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png deleted file mode 100644 index 39d24371903c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-changed-2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png deleted file mode 100644 index edf88bcebc49..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-item-option-changed (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png deleted file mode 100644 index 39d24371903c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-items-changed (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png deleted file mode 100644 index 8248b8234a12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-location-changed (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png deleted file mode 100644 index 9694ea982195..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-menu (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png deleted file mode 100644 index dde82cf361b5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-toolbar-property-changed (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png deleted file mode 100644 index db982477976c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-empty-toolbar-config (material.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png deleted file mode 100644 index c69438c23066..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/scheduler-with-non-empty-toolbar-config (material.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png deleted file mode 100644 index e69083154099..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png deleted file mode 100644 index e69083154099..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/header/etalons/toolbar-without-view-switcher-(useDropDownViewSwitcher=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/header.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/header.ts deleted file mode 100644 index 848242a3fad2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/header.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler header` - .page(url(__dirname, '../../../container.html')); - -test('dateNavigator buttons should not be selected after clicking', async (t) => { - const { toolbar } = new Scheduler('#container'); - - await t - .click(toolbar.navigator.nextButton) - - .expect(toolbar.navigator.prevButton.hasClass('dx-item-selected')) - .notOk() - - .expect(toolbar.navigator.caption.hasClass('dx-item-selected')) - .notOk() - - .expect(toolbar.navigator.nextButton.hasClass('dx-item-selected')) - .notOk(); -}).before(async () => createWidget('dxScheduler', { - currentView: 'day', - views: ['day'], - height: 580, -})); - -test.meta({ runInTheme: 'generic.blue.light' })('dateNavigator buttons should have "contained" styling mode with generic theme', async (t) => { - const { toolbar } = new Scheduler('#container'); - - await t - .expect(toolbar.navigator.prevButton.hasClass('dx-button-mode-contained')) - .ok() - - .expect(toolbar.navigator.caption.hasClass('dx-button-mode-contained')) - .ok() - - .expect(toolbar.navigator.nextButton.hasClass('dx-button-mode-contained')) - .ok(); -}).before(async () => createWidget('dxScheduler', { - currentView: 'day', - views: ['day'], - height: 580, -})); - -const testData = [ - { - text: 'Website Re-Design Plan', - startDate: new Date('2021-03-29T16:30:00.000Z'), - endDate: new Date('2021-03-29T18:30:00.000Z'), - }, { - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date('2021-03-29T19:00:00.000Z'), - endDate: new Date('2021-03-29T20:00:00.000Z'), - allDay: true, - }, { - text: 'Install New Router in Dev Room', - startDate: new Date('2021-03-29T21:30:00.000Z'), - endDate: new Date('2021-03-29T22:30:00.000Z'), - }, { - text: 'Approve Personal Computer Upgrade Plan', - startDate: new Date('2021-03-30T17:00:00.000Z'), - endDate: new Date('2021-03-30T18:00:00.000Z'), - }, { - text: 'Final Budget Review', - startDate: new Date('2021-03-30T19:00:00.000Z'), - endDate: new Date('2021-03-30T20:35:00.000Z'), - }, { - text: 'New Brochures', - startDate: new Date('2021-03-30T21:30:00.000Z'), - endDate: new Date('2021-03-30T22:45:00.000Z'), - }, { - text: 'Install New Database', - startDate: new Date('2021-03-31T16:45:00.000Z'), - endDate: new Date('2021-03-31T18:15:00.000Z'), - }, { - text: 'Approve New Online Marketing Strategy', - startDate: new Date('2021-03-31T19:00:00.000Z'), - endDate: new Date('2021-03-31T21:00:00.000Z'), - }, { - text: 'Upgrade Personal Computers', - startDate: new Date('2021-03-31T22:15:00.000Z'), - endDate: new Date('2021-03-31T23:30:00.000Z'), - }, { - text: 'Customer Workshop', - startDate: new Date('2021-04-01T18:00:00.000Z'), - endDate: new Date('2021-04-01T19:00:00.000Z'), - allDay: true, - }, { - text: 'Prepare 2021 Marketing Plan', - startDate: new Date('2021-04-01T18:00:00.000Z'), - endDate: new Date('2021-04-01T20:30:00.000Z'), - }, { - text: 'Brochure Design Review', - startDate: new Date('2021-04-01T21:00:00.000Z'), - endDate: new Date('2021-04-01T22:30:00.000Z'), - }, { - text: 'Create Icons for Website', - startDate: new Date('2021-04-02T17:00:00.000Z'), - endDate: new Date('2021-04-02T18:30:00.000Z'), - }, { - text: 'Upgrade Server Hardware', - startDate: new Date('2021-04-02T21:30:00.000Z'), - endDate: new Date('2021-04-02T23:00:00.000Z'), - }, { - text: 'Submit New Website Design', - startDate: new Date('2021-04-02T23:30:00.000Z'), - endDate: new Date('2021-04-03T01:00:00.000Z'), - }, { - text: 'Launch New Website', - startDate: new Date('2021-04-02T19:20:00.000Z'), - endDate: new Date('2021-04-02T21:00:00.000Z'), - }, -]; - -const SCROLLBAR_STYLES = ` - ::-webkit-scrollbar { - -webkit-appearance: none; - width: 7px; - } - ::-webkit-scrollbar-thumb { - border-radius: 4px; - background-color: rgba(0, 0, 0, .5); - -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5); - } - .dx-scheduler-date-table-scrollable .dx-scrollable-container { - overflow: scroll !important; - } -`; - -test('Scheduler: maintain layout after horizontal scroll (T1306971)', async (t) => { - const { - takeScreenshot, - compareResults, - } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await insertStylesheetRulesToPage(SCROLLBAR_STYLES); - - await t.wait(100); - - await scheduler.repaint(); - - await t.wait(100); - - await testScreenshot(t, takeScreenshot, 'T1306971__scheduler__horizontal-scrolling__before.png', { element: scheduler.element }); - - const container = scheduler.dateTableScrollableContainer; - const scrollWidth = await container.scrollWidth; - const clientWidth = await container.clientWidth; - const maxScrollLeft = scrollWidth - clientWidth; - - await t.scroll(scheduler.workspaceScrollable, maxScrollLeft, 0); - - const finalScrollLeft = await container.scrollLeft; - - await t - .expect(maxScrollLeft).gt(0, 'No horizontal scroll available') - .expect(finalScrollLeft).gt(0, 'Scroll position should be greater than 0'); - - await t.wait(500); - - await testScreenshot(t, takeScreenshot, 'T1306971__scheduler__horizontal-scrolling__after.png', { element: scheduler.element }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource: testData, - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - startDayHour: 9, - height: 730, - crossScrollingEnabled: true, - width: 500, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/header_material.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/header_material.ts deleted file mode 100644 index 9615c9d3b11e..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/header_material.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { Selector } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { isMaterial, isMaterialBased, testScreenshot } from '../../../../helpers/themeUtils'; -import { Themes } from '../../../../helpers/themes'; - -fixture.disablePageReloads`Scheduler header: material theme` - .page(url(__dirname, '../../../container.html')); - -// visual: material.blue.light -test('dateNavigator buttons should have "text" styling mode', async (t) => { - const { toolbar } = new Scheduler('#container'); - - const expectedClass = isMaterialBased() ? 'dx-button-mode-text' : 'dx-button-mode-contained'; - - await t - .expect(toolbar.navigator.prevButton.hasClass(expectedClass)) - .ok() - - .expect(toolbar.navigator.caption.hasClass(expectedClass)) - .ok() - - .expect(toolbar.navigator.nextButton.hasClass(expectedClass)) - .ok(); -}).before(async () => createWidget('dxScheduler', { - currentView: 'day', - views: ['day'], - height: 580, -})); - -test.meta({ runInTheme: Themes.genericLight })('viewSwitcher dropdown button popup should have a specified class', async (t) => { - const { toolbar } = new Scheduler('#container'); - const dropDownButton = toolbar.viewSwitcher.getDropDownButton(); - - const viewSwitcherDropDownButtonContent = '.dx-scheduler-view-switcher-dropdown-button-content'; - - await t - .click(dropDownButton.element) - .expect(Selector(viewSwitcherDropDownButtonContent).count) - .eql(isMaterial() ? 1 : 0); -}).before(async () => createWidget('dxScheduler', { - currentView: 'day', - views: ['day', 'week'], - height: 580, -})); - -test.meta({ runInTheme: Themes.materialBlue })('The toolbar should not display if the config is empty', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, 'scheduler-with-empty-toolbar-config.png'); - - await scheduler.option('toolbar', { items: ['viewSwitcher'] }); - - await testScreenshot(t, takeScreenshot, 'scheduler-with-non-empty-toolbar-config.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2020, 2, 2), - currentView: 'day', - views: ['day', 'week'], - height: 580, - toolbar: { items: [] }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/multiline_header.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/multiline_header.ts deleted file mode 100644 index 014bc5378e49..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/multiline_header.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler multiline header` - .page(url(__dirname, '../../../container.html')); - -const buttons = Array.from({ length: 12 }).map((_, index) => ({ - location: 'before', - locateInMenu: 'auto', - widget: 'dxButton', - options: { text: `Button ${index}` }, -})); - -[true, false].forEach((multiline) => { - test(`Scheduler [multiline=${multiline}] toolbar`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `scheduler-multiline-${multiline}-toolbar.png`, - { element: scheduler.toolbar.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - views: ['day', 'week', 'workWeek', 'month'], - currentView: 'workWeek', - currentDate: new Date(2021, 3, 27), - height: 200, - toolbar: { - multiline, - items: [ - 'dateNavigator', - ...buttons, - 'viewSwitcher', - ], - }, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/sizes.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/sizes.ts deleted file mode 100644 index 678e7f5b7c06..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/sizes.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler header sizes` - .page(url(__dirname, '../../../container.html')); - -const buttons = Array.from({ length: 4 }).map((_, index) => ({ - location: 'before', - locateInMenu: 'auto', - widget: 'dxButton', - options: { text: `Button ${index}` }, -})); - -test('items inside toolbar menu should stretch', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await t.click(scheduler.toolbar.menuButton); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-menu.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - width: 320, - currentDate: new Date('2025-05-02T07:59:01.167Z'), - toolbar: { - items: ['today', 'dateNavigator', ...buttons, { - location: 'after', - locateInMenu: 'auto', - name: 'viewSwitcher', - }], - }, -})); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -test('Scheduler header should have correct sizes', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date('2025-05-02T07:59:01.167Z'), - toolbar: { items: ['today', 'dateNavigator', ...buttons, 'viewSwitcher'] }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/todayButton.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/todayButton.ts deleted file mode 100644 index b0d082654627..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/todayButton.ts +++ /dev/null @@ -1,38 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler header today button` - .page(url(__dirname, '../../../container.html')); - -test('Scheduler today button should works', async (t) => { - const scheduler = new Scheduler('#container'); - - await t.click(scheduler.toolbar.todayButton); - - const currentDate = await scheduler.option('currentDate') as Date; - const today = new Date(); - - currentDate.setHours(0, 0, 0, 0); - today.setHours(0, 0, 0, 0); - - await t.expect(currentDate).eql(today); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 3, 27), - toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, -})); - -const indicatorTime = new Date(2023, 3, 27); - -test('Scheduler today button should use indicatorTime', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .click(scheduler.toolbar.todayButton) - .expect(scheduler.option('currentDate')) - .eql(indicatorTime); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 3, 27), - indicatorTime, - toolbar: { items: ['today', 'dateNavigator', 'viewSwitcher'] }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/toolbar_option_change.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/toolbar_option_change.ts deleted file mode 100644 index cd84d8645876..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/toolbar_option_change.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Toolbar options change` - .page(url(__dirname, '../../../container.html')); - -const createScheduler = async () => createWidget('dxScheduler', { - views: ['day', 'week'], - currentView: 'day', - currentDate: new Date(2021, 3, 27), - height: 200, - width: 500, -}); -const buttons = Array.from({ length: 7 }).map((_, index) => ({ - location: 'before', - locateInMenu: 'auto', - widget: 'dxButton', - options: { text: `Button ${index}` }, -})); - -test('Scheduler should change toolbar item location', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar.items[0].location', 'after'); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-location-changed.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(createScheduler); - -test('Scheduler should change toolbar', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar', { items: [{ template: 'Custom text' }] }); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-changed.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(createScheduler); - -test('Scheduler should hide and show toolbar', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar.visible', false); - await t.expect(scheduler.toolbar.isInvisible()).ok(); - await scheduler.option('toolbar.visible', true); - await t.expect(scheduler.toolbar.isInvisible()).notOk(); -}).before(createScheduler); - -test('Scheduler should change toolbar items', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar.items', buttons); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-items-changed.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(createScheduler); - -test('Scheduler should change toolbar item option', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar.items[0].options.text', 'Changed text'); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-item-option-changed.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(createScheduler); - -test('Scheduler should change toolbar options / integration', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('toolbar.items', buttons); - await scheduler.option('toolbar.multiline', true); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-property-changed.png', { element: scheduler.toolbar.element }); - - await scheduler.option('toolbar', { multiline: false }); - - await testScreenshot(t, takeScreenshot, 'scheduler-toolbar-changed-2.png', { element: scheduler.toolbar.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(createScheduler); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/header/viewSwitcher.ts b/e2e/testcafe-devextreme/tests/scheduler/common/header/viewSwitcher.ts deleted file mode 100644 index ad646ec285ee..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/header/viewSwitcher.ts +++ /dev/null @@ -1,109 +0,0 @@ -import SelectBox from 'devextreme-testcafe-models/selectBox'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler header - View switcher` - .page(url(__dirname, '../../../container.html')); - -test('it should correctly switch a differently typed views (T1080992)', async (t) => { - const scheduler = new Scheduler('#container'); - const { - toolbar: { - viewSwitcher, - }, - } = scheduler; - - await t - .click(viewSwitcher.getButton('Day').element) - .pressKey('down') - .pressKey('down') - .pressKey('enter') - .click(viewSwitcher.getButton('Some week').element) - .expect(scheduler.checkViewType('week')) - .ok() - .pressKey('down') - .pressKey('down') - .pressKey('enter') - .expect(scheduler.checkViewType('day')) - .ok(); -}).before(async () => createWidget('dxScheduler', { - width: 800, - height: 600, - views: [ - 'day', - { - type: 'week', - name: 'Some week', - }, - ], -})); - -const defaultSelectBoxValue = 'Samantha Bright'; - -test('Changing view does not reset toolbar items state', async (t) => { - const scheduler = new Scheduler('#container'); - const selectBox = new SelectBox('.dx-selectbox'); - - await selectBox.open(); - const list = await selectBox.getList(); - - await t - .click(list.getItem(0).element) - .expect(selectBox.value) - .eql(defaultSelectBoxValue); - - await t - .pressKey('tab') - .pressKey('enter') - .pressKey('down') - .pressKey('down') - .pressKey('enter'); - - await t.click(scheduler.toolbar.viewSwitcher.getButton('Month').element) - .expect(scheduler.checkViewType('month')) - .ok(); - - await t.expect(selectBox.value).eql(defaultSelectBoxValue); -}).before(async () => createWidget('dxScheduler', { - views: ['week', 'month'], - currentView: 'week', - currentDate: new Date(2021, 3, 27), - toolbar: { - items: [ - { - location: 'before', - widget: 'dxSelectBox', - options: { items: [defaultSelectBoxValue] }, - }, - 'viewSwitcher', - ], - }, -})); - -[true, false].forEach((useDropDownViewSwitcher) => { - test(`view switcher should not be displayed if views has only one element when useDropDownViewSwitcher: ${useDropDownViewSwitcher}`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const { toolbar } = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `toolbar-without-view-switcher-(useDropDownViewSwitcher=${useDropDownViewSwitcher}).png`, - { element: toolbar.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2020, 2, 2), - currentView: 'day', - views: ['day'], - useDropDownViewSwitcher, - height: 580, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.ts b/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.ts deleted file mode 100644 index a8c3cba9007f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/hotkeysBehaviour.ts +++ /dev/null @@ -1,193 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import FocusableElement from 'devextreme-testcafe-models/internal/focusable'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Hotkeys for appointments update and navigation` - .page(url(__dirname, '../../../container.html')); - -['week', 'month'].forEach((view) => { - test(`Navigate between appointments in the "${view}" view (Tab/Shift+Tab)`, async (t) => { - const scheduler = new Scheduler('#container'); - const firstAppointment = scheduler.getAppointment('Website Re-Design Plan'); - const secondAppointment = scheduler.getAppointment('Book Flights to San Fran for Sales Trip'); - - await t - .click(firstAppointment.element) - .expect(firstAppointment.isFocused).ok() - .pressKey('tab') - .expect(firstAppointment.isFocused) - .notOk() - .expect(secondAppointment.isFocused) - .ok() - .pressKey('shift+tab') - .expect(secondAppointment.isFocused) - .notOk() - .expect(firstAppointment.isFocused) - .ok(); - }).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, - })); - - test(`Remove appointment in the "${view}" view (Del)`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Website Re-Design Plan'); - - await t - .click(appointment.element) - .expect(appointment.isFocused).ok() - .pressKey('delete') - .expect(appointment.element.exists) - .notOk(); - }).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, - })); - - test(`Show appointment popup in the "${view}" view (Enter)`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Website Re-Design Plan'); - const { appointmentPopup } = scheduler; - - await t - .click(appointment.element) - .expect(appointment.isFocused).ok() - .pressKey('enter') - .expect(appointmentPopup.popup.isVisible()) - .ok(); - }).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, - })); - - test(`Navigate between tooltip appointments in the "${view}" view (Up/Down)`, async (t) => { - const scheduler = new Scheduler('#container'); - const collector = scheduler.collectors.find('3'); - const { appointmentPopup, appointmentTooltip } = scheduler; - - await collector.click(); - - await t - .expect(appointmentTooltip.isVisible()).ok() - .pressKey('down') - .expect(appointmentTooltip.getListItem('New Brochures').isFocused) - .ok() - .pressKey('up') - .expect(appointmentTooltip.getListItem('Approve New Online Marketing Strategy').isFocused) - .ok() - .pressKey('enter') - .expect(appointmentTooltip.isVisible()) - .notOk() - .expect(appointmentPopup.popup.isVisible()) - .ok(); - }).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, - })); -}); - -test('Navigate between toolbar items', async (t) => { - const { toolbar } = new Scheduler('#container'); - const { navigator, viewSwitcher } = toolbar; - - const prevDuration = new FocusableElement(navigator.prevButton); - const caption = new FocusableElement(navigator.caption); - const nextDuration = new FocusableElement(navigator.nextButton); - - await t - .click(toolbar.element) - .pressKey('tab') - .expect(prevDuration.hasFocusedState) - .ok() - - .pressKey('right') - .expect(nextDuration.hasFocusedState) - .ok() - - .pressKey('right') - .expect(caption.hasFocusedState) - .ok() - - .pressKey('tab') - .expect(viewSwitcher.getButton('Day').hasFocusedState) - .ok() - .pressKey('enter') - .pressKey('down') - .pressKey('down') - .pressKey('enter') - .expect(viewSwitcher.getButton('Week').hasFocusedState) - .ok(); -}).before(async () => createScheduler({ - views: ['day', 'week'], - currentView: 'day', -})); - -test('Navigate between custom toolbar items', async (t) => { - const { toolbar } = new Scheduler('#container'); - const { navigator, viewSwitcher } = toolbar; - - const prevDuration = new FocusableElement(navigator.prevButton); - const caption = new FocusableElement(navigator.caption); - const nextDuration = new FocusableElement(navigator.nextButton); - const todayButton = new FocusableElement( - toolbar.element.find('.dx-button').withText('Today'), - ); - - await t - .click(toolbar.element) - .pressKey('tab') - .expect(viewSwitcher.getButton('Day').hasFocusedState) - .ok() - - .pressKey('right') - .pressKey('enter') - .pressKey('down') - .pressKey('down') - .pressKey('enter') - .expect(viewSwitcher.getButton('Week').hasFocusedState) - .ok() - - .pressKey('tab') - .expect(todayButton.hasFocusedState) - .ok() - - .pressKey('tab') - .expect(prevDuration.hasFocusedState) - .ok() - - .pressKey('right') - .expect(nextDuration.hasFocusedState) - .ok() - - .pressKey('right') - .expect(caption.hasFocusedState) - .ok(); -}).before(async () => createScheduler({ - views: ['day', 'week'], - currentView: 'day', - toolbar: { - items: [ - { - location: 'before', - name: 'viewSwitcher', - }, - { - location: 'before', - widget: 'dxButton', - options: { - text: 'Today', - }, - }, - { - location: 'after', - name: 'dateNavigator', - }, - ], - }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts deleted file mode 100644 index 8fcca0307933..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/hotkeysBehaviour/init/widget.setup.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -export default async (options = {}): Promise => createWidget('dxScheduler', extend({ - views: ['month'], - dataSource: [], - width: 1402, - height: 833, - startDayHour: 9, - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'month', - currentDate: new Date(2019, 3, 1), -}, options)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/appointments.ts b/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/appointments.ts deleted file mode 100644 index b10b175ef25b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/appointments.ts +++ /dev/null @@ -1,362 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { Selector } from 'testcafe'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { generateAppointmentsWithResources, resources } from '../../helpers/generateAppointmentsWithResources'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; - -fixture.disablePageReloads`KeyboardNavigation.Appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const resourceCount = 30; - -const dataSource = generateAppointmentsWithResources({ - startDay: new Date(2021, 1, 1), - endDay: new Date(2021, 1, 6), - startDayHour: 8, - endDayHour: 20, - resourceCount, -}); - -const appointmentCount = dataSource.length; - -const getConfig = () => ({ - views: [ - { - type: 'timelineWorkWeek', - name: 'Timeline', - groupOrientation: 'vertical', - }, - 'week', - ], - dataSource, - resources: [ - { fieldExpr: 'resourceId', label: 'Resource', dataSource: resources }, - ], - groups: ['resourceId'], - scrolling: { - mode: 'virtual', - }, - height: 600, - cellDuration: 60, - startDayHour: 8, - endDayHour: 20, - showAllDayPanel: false, - currentView: 'Timeline', - currentDate: new Date(2021, 1, 2), -}); - -const cellStyles = '#container .dx-scheduler-cell-sizes-vertical { height: 100px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'; - -['virtual', 'standard'].forEach((scrollingMode) => { - test(`focus next appointment on single tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 2]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus next appointment on 5 tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('tab') - .pressKey('tab') - .pressKey('tab') - .pressKey('tab') - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 6]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus prev appointment on single shift+tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const lastAppointmentText = `[Appointment ${appointmentCount}]`; - const prevAppointmentText = `[Appointment ${appointmentCount - 1}]`; - - await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); - - await t - .click(scheduler.getAppointment(lastAppointmentText).element) - .pressKey('shift+tab'); - - await t - .expect(scheduler.getAppointment(prevAppointmentText).isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus prev appointment on 5 shift+tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const lastAppointmentText = `[Appointment ${appointmentCount}]`; - const prevAppointmentText = `[Appointment ${appointmentCount - 5}]`; - - await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); - - await t - .click(scheduler.getAppointment(lastAppointmentText).element) - .pressKey('shift+tab') - .pressKey('shift+tab') - .pressKey('shift+tab') - .pressKey('shift+tab') - .pressKey('shift+tab'); - - await t - .expect(scheduler.getAppointment(prevAppointmentText).isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus last appointment on End (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('end'); - - await t - .expect(scheduler.getAppointment(`[Appointment ${appointmentCount}]`).isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus first appointment on Home (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: resourceCount }); - - await t - .click(scheduler.getAppointment(`[Appointment ${appointmentCount}]`).element) - .pressKey('home'); - - await t - .expect(scheduler.getAppointment('[Appointment 1]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus first appointment in the next group by tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await scheduler.scrollTo(new Date(2021, 1, 5), { resourceId: 1 }); - - await t - .click(scheduler.getAppointment('[Appointment 14]').element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 15]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`focus last appointment in the prev group by shift+tab (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 15]').element) - .pressKey('shift+tab'); - await t - .expect(scheduler.getAppointment('[Appointment 14]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`should focus appointment after close edit popup (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('tab') - .pressKey('enter') - .pressKey('esc'); - - await t - .expect(scheduler.getAppointment('[Appointment 2]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`first appointment should be focusable when navigating by tab second time (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('tab') - .click(scheduler.toolbar.viewSwitcher.element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 1]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`should not reset scroll after appointment focus and scrolling down (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 1]').element) - .pressKey('tab') - .scroll(scheduler.workspaceScrollable, 0, 1000); - - await t.expect(scheduler.workspaceScrollable.scrollTop).eql(1000); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); - - test(`should focus next appointment on tab after any appointment was clicked (${scrollingMode} scrolling)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('[Appointment 15]').element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 16]').isFocused).ok(); - }).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: scrollingMode } }); - }); -}); - -test('should focus first visible appointment on tab (virtual scrolling)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .scroll(scheduler.workspaceScrollable, 0, 1000) - .click(scheduler.toolbar.viewSwitcher.element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 135]').isFocused).ok(); -}).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: 'virtual' } }); -}); - -test('should focus first rendered appointment on tab (standard scrolling)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .scroll(scheduler.workspaceScrollable, 0, 1000) - .click(scheduler.toolbar.viewSwitcher.element) - .pressKey('tab'); - - await t - .expect(scheduler.getAppointment('[Appointment 1]').isFocused).ok(); -}).before(async () => { - await insertStylesheetRulesToPage(cellStyles); - await createWidget('dxScheduler', { ...getConfig(), scrolling: { mode: 'standard' } }); -}); - -const getDeleteFocusConfig = () => ({ - dataSource: [ - { text: 'Appointment 1', startDate: new Date(2021, 1, 2, 9), endDate: new Date(2021, 1, 2, 10) }, - { text: 'Appointment 2', startDate: new Date(2021, 1, 2, 10), endDate: new Date(2021, 1, 2, 11) }, - { text: 'Appointment 3', startDate: new Date(2021, 1, 2, 11), endDate: new Date(2021, 1, 2, 12) }, - ], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 1, 2), - startDayHour: 8, - endDayHour: 20, - height: 600, -}); - -test('should focus next appointment after deleting appointment by Delete key', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('Appointment 2').element) - .pressKey('delete'); - - await t - .expect(scheduler.getAppointmentCount()).eql(2) - .expect(scheduler.getAppointment('Appointment 3').isFocused).ok(); -}).before(async () => { - await createWidget('dxScheduler', getDeleteFocusConfig()); -}); - -test('should focus previous appointment after deleting the last appointment by Delete key', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('Appointment 3').element) - .pressKey('delete'); - - await t - .expect(scheduler.getAppointmentCount()).eql(2) - .expect(scheduler.getAppointment('Appointment 2').isFocused).ok(); -}).before(async () => { - await createWidget('dxScheduler', getDeleteFocusConfig()); -}); - -test('should focus toolbar element when no appointments remain after deleting by Delete key', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('Appointment 1').element) - .pressKey('delete'); - - await t - .expect(scheduler.getAppointmentCount()).eql(0) - .expect(scheduler.toolbar.element.find(':focus').exists).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - ...getDeleteFocusConfig(), - dataSource: [ - { text: 'Appointment 1', startDate: new Date(2021, 1, 2, 9), endDate: new Date(2021, 1, 2, 10) }, - ], - }); -}); - -test('should focus next occurrence after deleting recurring occurrence via dialog', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .click(scheduler.getAppointment('Recurring Appointment', 2).element) - .pressKey('delete') - .click(Selector('.dx-dialog-button').withText('Delete appointment')); - - await t - .expect(scheduler.getAppointmentCount()).eql(4) - .expect(scheduler.getAppointment('Recurring Appointment', 2).isFocused).ok(); -}).before(async () => { - await createWidget('dxScheduler', { - ...getDeleteFocusConfig(), - views: ['week'], - currentView: 'week', - dataSource: [{ - text: 'Recurring Appointment', - startDate: new Date(2021, 1, 1, 9), - endDate: new Date(2021, 1, 1, 10), - recurrenceRule: 'FREQ=DAILY;COUNT=5', - }], - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/dateTable.ts b/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/dateTable.ts deleted file mode 100644 index 547c5e92e5d9..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/dateTable.ts +++ /dev/null @@ -1,60 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { ClientFunction, Selector } from 'testcafe'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { appendElementTo } from '../../../../helpers/domUtils'; - -fixture.disablePageReloads`KeyboardNavigation.DateTable` - .page(url(__dirname, '../../../container.html')); - -const PARENT_SELECTOR = '#parentContainer'; -const SCHEDULER_SELECTOR = '#container'; -const BOTTOM_BTN_ID = 'bottom-btn'; -const BOTTOM_BTN_SELECTOR = `#${BOTTOM_BTN_ID}`; - -const setMacOsScrollableOptions = ClientFunction(() => { - ($(SCHEDULER_SELECTOR) as any) - .dxScheduler('instance') - .getWorkSpaceScrollable() - .option('useNative', true); -}, { dependencies: { SCHEDULER_SELECTOR } }); - -[ - 'day', - 'week', -].forEach((currentView) => { - test(`Should pass focus to the next elements after date table on Mac devices (view: ${currentView})`, async (t) => { - const bottomBtn = Selector(BOTTOM_BTN_SELECTOR); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const usualAppointment = scheduler.getAppointment('All-day'); - - await t - .click(usualAppointment.element) - .pressKey('tab tab'); - - await t.expect(bottomBtn.focused).ok(); - }).before(async () => { - await appendElementTo(PARENT_SELECTOR, 'button', BOTTOM_BTN_ID); - await createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-01T01:00:00', - endDate: '2024-01-01T02:00:00', - text: 'Usual', - }, - // NOTE: This case is reproduced only if view has allDay appointment - { - startDate: '2024-01-01T01:00:00', - endDate: '2024-01-01T02:00:00', - text: 'All-day', - allDay: true, - }, - ], - // NOTE: Scheduler should have a height limit for enabling native scroll container - height: 300, - currentDate: '2024-01-01', - currentView, - }); - await setMacOsScrollableOptions(); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.ts b/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.ts deleted file mode 100644 index 58c15fee1bb0..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/keyboardNavigation/documentScrollPrevented.ts +++ /dev/null @@ -1,98 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { ClientFunction } from 'testcafe'; -import url from '../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../helpers/createWidget'; -import { getDocumentScrollTop } from '../../../../helpers/domUtils'; - -fixture.disablePageReloads`KeyboardNavigation.DocumentScrollPrevented` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -test('Document should not scroll on \'End\' press when appointment is focused', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t.click(scheduler.getAppointment('Appointment 1').element); - - const expectedScrollTop = await getDocumentScrollTop(); - - await t - .pressKey('End') - .expect(getDocumentScrollTop()).eql(expectedScrollTop); -}).before(async () => { - await ClientFunction(() => { - document.body.style.height = '2000px'; - })(); - - await createWidget('dxScheduler', { - dataSource: [ - { - text: 'Appointment 1', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 9, 9), - }, - { - text: 'Appointment 2', - startDate: new Date(2015, 1, 9, 10), - endDate: new Date(2015, 1, 9, 11), - }, - { - text: 'Appointment 3', - startDate: new Date(2015, 1, 9, 12), - endDate: new Date(2015, 1, 9, 13), - }, - ], - height: 300, - currentView: 'day', - currentDate: new Date(2015, 1, 9), - }); -}).after(async () => { - await ClientFunction(() => { - document.body.style.height = ''; - })(); -}); - -test('Document should not scroll on \'Home\' press when appointment is focused', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t - .scroll(0, 100) - .click(scheduler.getAppointment('Appointment 1').element); - - const expectedScrollTop = await getDocumentScrollTop(); - - await t - .pressKey('Home') - .expect(getDocumentScrollTop()).eql(expectedScrollTop); -}).before(async () => { - await ClientFunction(() => { - document.body.style.height = '2000px'; - })(); - - await createWidget('dxScheduler', { - dataSource: [ - { - text: 'Appointment 1', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 9, 9), - }, - { - text: 'Appointment 2', - startDate: new Date(2015, 1, 9, 10), - endDate: new Date(2015, 1, 9, 11), - }, - { - text: 'Appointment 3', - startDate: new Date(2015, 1, 9, 12), - endDate: new Date(2015, 1, 9, 13), - }, - ], - height: 300, - currentView: 'day', - currentDate: new Date(2015, 1, 9), - }); -}).after(async () => { - await ClientFunction(() => { - document.body.style.height = ''; - })(); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/adaptive.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/adaptive.ts deleted file mode 100644 index 77a73cb7ecb9..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/adaptive.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { ADAPTIVE_SIZE } from '../../const'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; -import { - createDataSetForScreenShotTests, - resourceDataSource, - views, - verticalViews, - horizontalViews, -} from '../utils'; - -fixture.disablePageReloads`Scheduler: Adaptive layout in themes` - .page(url(__dirname, '../../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - dataSource: createDataSetForScreenShotTests(), - currentDate: new Date(2020, 6, 15), - height: 600, - ...additionalProps, - }); -}; - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -[false, true].forEach((rtlEnabled) => { - [false, true].forEach((crossScrollingEnabled) => { - test.meta({ browserSize: ADAPTIVE_SIZE })(`Adaptive views layout test, crossScrollingEnabled=${crossScrollingEnabled}${rtlEnabled ? 'in RTL' : ''}`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `view=${view}-crossScrolling=${crossScrollingEnabled}${rtlEnabled ? '-rtl' : ''}.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createScheduler({ - views, - currentView: 'day', - crossScrollingEnabled, - rtlEnabled, - }); - }); - - test.meta({ browserSize: ADAPTIVE_SIZE })(`Adaptive views layout test crossScrollingEnabled=${crossScrollingEnabled} when horizontal grouping${rtlEnabled ? ' and RTL are' : ' is'} used`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `view=${view}-crossScrolling=${crossScrollingEnabled}-horizontal${rtlEnabled ? '-rtl' : ''}.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createScheduler({ - views: horizontalViews, - currentView: 'day', - crossScrollingEnabled, - rtlEnabled, - groups: ['priorityId'], - resources: resourceDataSource, - }); - }); - - test.meta({ browserSize: ADAPTIVE_SIZE })(`Adaptive views layout test, crossScrollingEnabled=${crossScrollingEnabled} when vertical grouping${rtlEnabled ? ' and RTL are' : ' is'} used`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `view=${view}-crossScrolling=${crossScrollingEnabled}-vertical${rtlEnabled ? '-rtl' : ''}.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createScheduler({ - views: verticalViews, - currentView: 'day', - crossScrollingEnabled, - rtlEnabled, - groups: ['priorityId'], - resources: resourceDataSource, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index c4a89bd4713d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index b853ff9b7c15..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index bf96f9c74b09..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index 24c3b7413f90..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index 9bf4c833736e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index e1ecc9630f1b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index c4a89bd4713d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index 593da171165b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index e1b2a962a1e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index a88b23695a12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index 9679a70b5f1d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 53eec7dc5e16..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=day-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 3f6fe5433f84..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index a5dab2c8ec6e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index aaf004610916..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index 9ee10888f47b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index a335aa07caa9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 971174bc415e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index a368f0971f24..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index 6d560a60d14b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 82e15bd24009..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index 415d6b63508c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index 800cf78a0393..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 5b6abe091f83..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=month-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 6be9be1de1e3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index 033134d722a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 55be87f3bf8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index 6c54a40af788..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index 7e300026142c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 406aadf88c32..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 6be9be1de1e3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index 033134d722a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 55be87f3bf8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index 6c54a40af788..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index 7e300026142c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 406aadf88c32..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineDay-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index b5d94293a314..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index 29b551888f0c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index a896098fff03..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index f604148940a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index d31a94ed3796..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index dec7f5298c35..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index b5d94293a314..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index 29b551888f0c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index a896098fff03..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index f604148940a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index d31a94ed3796..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index dec7f5298c35..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineMonth-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index c1628a175889..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index fd5fca2ba16f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 74249e40f4dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index c7337da601d6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index 23823b4c32e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 0e371c009f9e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index c1628a175889..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index fd5fca2ba16f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 74249e40f4dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index c7337da601d6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index 23823b4c32e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 0e371c009f9e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=timelineWeek-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index ab944c8c4a42..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png deleted file mode 100644 index b31d8f9b4713..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index 5294372bf61f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png deleted file mode 100644 index 59d777351134..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png deleted file mode 100644 index a2a9550cd0e3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 791e00269114..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=false-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 232078bb88fc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png deleted file mode 100644 index d65ff5dfe16f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png deleted file mode 100644 index d2e2d6f1c3db..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-horizontal-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png deleted file mode 100644 index 6e1e647d19f2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png deleted file mode 100644 index c1af1d67b00a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png deleted file mode 100644 index 8c2cb327d041..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/etalons/view=week-crossScrolling=true-vertical-rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/browserResize.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/browserResize.ts deleted file mode 100644 index 390ef1e6969b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/browserResize.ts +++ /dev/null @@ -1,154 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:BrowserResize` - .page(url(__dirname, '../../../../../container.html')); - -const data = [{ - text: 'Website Re-Design Plan', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - roomId: 1, -}, { - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date(2017, 4, 22, 12, 0), - endDate: new Date(2017, 4, 22, 13, 0), - allDay: true, - roomId: 2, -}, { - text: 'Install New Router in Dev Room', - startDate: new Date(2017, 4, 22, 14, 30), - endDate: new Date(2017, 4, 22, 15, 30), - roomId: 3, -}, { - text: 'Approve Personal Computer Upgrade Plan', - startDate: new Date(2017, 4, 23, 10, 0), - endDate: new Date(2017, 4, 23, 11, 0), -}, { - text: 'Final Budget Review', - startDate: new Date(2017, 4, 23, 12, 0), - endDate: new Date(2017, 4, 23, 13, 35), - roomId: 1, -}, { - text: 'New Brochures', - startDate: new Date(2017, 4, 23, 14, 30), - endDate: new Date(2017, 4, 23, 15, 45), - roomId: 2, -}, { - text: 'Install New Database', - startDate: new Date(2017, 4, 24, 9, 45), - endDate: new Date(2017, 4, 24, 11, 15), - roomId: 1, -}, { - text: 'Approve New Online Marketing Strategy', - startDate: new Date(2017, 4, 24, 12, 0), - endDate: new Date(2017, 4, 24, 14, 0), -}, { - text: 'Upgrade Personal Computers', - startDate: new Date(2017, 4, 24, 15, 15), - endDate: new Date(2017, 4, 24, 16, 30), - roomId: 1, -}, { - text: 'Customer Workshop', - startDate: new Date(2017, 4, 25, 11, 0), - endDate: new Date(2017, 4, 25, 12, 0), - allDay: true, -}, { - text: 'Prepare 2015 Marketing Plan', - startDate: new Date(2017, 4, 25, 11, 0), - endDate: new Date(2017, 4, 25, 13, 30), -}, { - text: 'Brochure Design Review', - startDate: new Date(2017, 4, 25, 14, 0), - endDate: new Date(2017, 4, 25, 15, 30), - roomId: 3, -}, { - text: 'Create Icons for Website', - startDate: new Date(2017, 4, 26, 10, 0), - endDate: new Date(2017, 4, 26, 11, 30), - roomId: 2, -}, { - text: 'Upgrade Server Hardware', - startDate: new Date(2017, 4, 26, 14, 30), - endDate: new Date(2017, 4, 26, 16, 0), -}, { - text: 'Submit New Website Design', - startDate: new Date(2017, 4, 26, 16, 30), - endDate: new Date(2017, 4, 26, 18, 0), -}, { - text: 'Launch New Website', - startDate: new Date(2017, 4, 26, 12, 20), - endDate: new Date(2017, 4, 26, 14, 0), -}]; - -const resourceDataSource = [{ - text: 'Room 1', - id: 1, - color: '#00af2c', -}, { - text: 'Room 2', - id: 2, - color: '#56ca85', -}, { - text: 'Room 3', - id: 3, - color: '#8ecd3c', -}]; - -[{ - currentView: 'agenda', - currentDate: new Date(2017, 4, 25), -}, { - currentView: 'day', - currentDate: new Date(2017, 4, 25), -}, { - currentView: 'week', - currentDate: new Date(2017, 4, 25), -}, { - currentView: 'month', - currentDate: new Date(2017, 4, 25), -}, { - currentView: 'timelineDay', - currentDate: new Date(2017, 4, 26), -}].forEach(({ currentView, currentDate }) => { - test(`Appointment layout after resize should be rendered right in '${currentView}'`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `browser-resize-currentView=${currentView}-before-resize.png`, - { element: scheduler.workSpace }, - ); - - await t.resizeWindow(600, 600); - - await testScreenshot( - t, - takeScreenshot, - `browser-resize-currentView=${currentView}-after-resize.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: data, - views: [currentView], - currentView, - currentDate, - resources: [{ - fieldExpr: 'roomId', - dataSource: resourceDataSource, - }], - startDayHour: 9, - height: 600, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png deleted file mode 100644 index 5743dffcab26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-after-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png deleted file mode 100644 index 4fb8ca00e50e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=agenda-before-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png deleted file mode 100644 index 70a799756b92..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-after-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png deleted file mode 100644 index 957f37fa07ce..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=day-before-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png deleted file mode 100644 index d5c8f84a7cfc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-after-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png deleted file mode 100644 index 5411cb0a5304..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=month-before-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png deleted file mode 100644 index 96fa7fbc84b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-after-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png deleted file mode 100644 index 3b3ab619dc62..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=timelineDay-before-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png deleted file mode 100644 index 6f6cd0cb559d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-after-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png deleted file mode 100644 index f2c9993d5b36..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/adaptive/resize/etalons/browser-resize-currentView=week-before-resize (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.ts deleted file mode 100644 index d935022e0446..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/allDayPanel/allDayPanelMode.ts +++ /dev/null @@ -1,96 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import asyncForEach from '../../../../../helpers/asyncForEach'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Layout:AllDayPanelMode` - .page(url(__dirname, '../../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const ALL_DAY_PANEL_OPTION_NAME = 'allDayPanelMode'; - -[ - { - testCaseName: 'Usual appointment', - dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T10:00:00', text: 'Usual appt' }], - modesOrder: ['all', 'allDay', 'hidden'], - expectedCollapsed: [true, true, false], - expectedVisible: [true, true, false], - }, - { - testCaseName: 'Usual appointment reverse', - dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T10:00:00', text: 'Usual appt' }], - modesOrder: ['hidden', 'allDay', 'all'], - expectedCollapsed: [false, true, true], - expectedVisible: [false, true, true], - }, - { - testCaseName: 'Long appointment', - dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2024-01-01T00:00:00', text: 'Long appt' }], - modesOrder: ['all', 'allDay', 'hidden'], - expectedCollapsed: [false, true, false], - expectedVisible: [true, true, false], - }, - { - testCaseName: 'Long appointment reverse', - dataSource: [{ startDate: '2023-12-01T00:00:00', endDate: '2024-01-01T00:00:00', text: 'Long appt' }], - modesOrder: ['hidden', 'allDay', 'all'], - expectedCollapsed: [false, true, false], - expectedVisible: [false, true, true], - }, - { - testCaseName: 'All-day appointment', - dataSource: [{ - startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T00:00:00', text: 'All-day appt', allDay: true, - }], - modesOrder: ['all', 'allDay', 'hidden'], - expectedCollapsed: [false, false, false], - expectedVisible: [true, true, false], - }, - { - testCaseName: 'All-day appointment reverse', - dataSource: [{ - startDate: '2023-12-01T00:00:00', endDate: '2023-12-01T00:00:00', text: 'All-day appt', allDay: true, - }], - modesOrder: ['hidden', 'allDay', 'all'], - expectedCollapsed: [false, false, false], - expectedVisible: [false, true, true], - }, -].forEach(({ - testCaseName, - dataSource, - modesOrder, - expectedCollapsed, - expectedVisible, -}) => { - test( - `${testCaseName}: AllDayPanel visibility and collapsed state should be correct in runtime`, - async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await asyncForEach(modesOrder, async (mode, idx) => { - await scheduler.option(ALL_DAY_PANEL_OPTION_NAME, mode); - - const isAllDayPanelCollapsed = await scheduler.isAllDayPanelCollapsed(); - const isAllDayPanelVisible = await scheduler.allDayRow.exists; - - await t.expect(isAllDayPanelCollapsed) - .eql( - expectedCollapsed[idx], - `allDayPanel (mode: ${mode}) should be ${expectedCollapsed[idx] ? 'collapsed' : 'extended'}`, - ); - await t.expect(isAllDayPanelVisible) - .eql( - expectedVisible[idx], - `allDayPanel (mode: ${mode}) should be ${expectedVisible[idx] ? 'visible' : 'hidden'}`, - ); - }); - }, - ).before(async () => { - await createWidget('dxScheduler', { - currentView: 'week', - currentDate: '2023-12-01', - dataSource, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/allDayExpr.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/allDayExpr.ts deleted file mode 100644 index 1cb7202d4dc3..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/allDayExpr.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { Themes } from '../../../../../../helpers/themes'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:allDayExpr` - .page(url(__dirname, '../../../../../container.html')); - -[{ - config: { - allDayExpr: 'AllDay', - }, - data: { - AllDay: true, - }, -}, { - config: { - }, - data: { - allDay: true, - }, -}].forEach(({ config, data }) => { - test.meta({ runInTheme: Themes.genericLight })(`All day appointment should be render valid in case without endDate property with allDayExpr=${config.allDayExpr}(T1155630)`, async (t) => { - const { toolbar, workSpace } = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `week-all-day-expr-${config.allDayExpr}.png`, - { element: workSpace }, - ); - - await t - .click(toolbar.viewSwitcher.getButton('Timeline Week').element); - - await testScreenshot( - t, - takeScreenshot, - `timelineWeek-all-day-expr-${config.allDayExpr}.png`, - { element: workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'MY EVENT', - startDate: new Date(2023, 2, 19, 23, 45), - ...data, - }], - views: ['week', 'timelineWeek'], - currentView: 'week', - cellDuration: 360, - startDayHour: 18, - currentDate: new Date(2023, 2, 21), - height: 600, - ...config, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png deleted file mode 100644 index a0dbbda53fa4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/21-27-march-week-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png deleted file mode 100644 index 53efb7a0e6c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/27-march-day-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png deleted file mode 100644 index 600fc782476f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-3-apr-week-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png deleted file mode 100644 index 7346b68dd6c9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/28-march-day-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png deleted file mode 100644 index edc18c1ed063..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/29-march-day-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png deleted file mode 100644 index 53efb7a0e6c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/30-march-day-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png deleted file mode 100644 index 370a7cc47117..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/4-10-apr-week-view (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png deleted file mode 100644 index aaf4648e579a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-AllDay (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png deleted file mode 100644 index aaf4648e579a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/timelineWeek-all-day-expr-undefined (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (fluent.blue.light).png deleted file mode 100644 index dc52717bde4e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png deleted file mode 100644 index 3cfffad87adc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-AllDay (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (fluent.blue.light).png deleted file mode 100644 index dc52717bde4e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png deleted file mode 100644 index 3cfffad87adc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/etalons/week-all-day-expr-undefined (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/longAppointment.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/longAppointment.ts deleted file mode 100644 index 69f81ee11542..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/allDay/longAppointment.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:AllDay` - .page(url(__dirname, '../../../../../container.html')); - -test('Long all day appointment should be render, if him ended on next view day in currentView: \'day\'(T1021963)', async (t) => { - const { workSpace, toolbar } = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.click(toolbar.navigator.prevButton); - - await testScreenshot(t, takeScreenshot, '27-march-day-view.png', { element: workSpace }); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot(t, takeScreenshot, '28-march-day-view.png', { element: workSpace }); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot(t, takeScreenshot, '29-march-day-view.png', { element: workSpace }); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot(t, takeScreenshot, '30-march-day-view.png', { element: workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - allDay: true, - startDate: new Date(2021, 2, 28), - endDate: new Date(2021, 2, 29), - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 28), - startDayHour: 9, - width: 400, - height: 600, - }); -}); - -test('Long all day appointment should be render, if him ended on next view day in currentView:', async (t) => { - const { workSpace, toolbar } = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.click(toolbar.navigator.prevButton); - - await testScreenshot(t, takeScreenshot, '21-27-march-week-view.png', { element: workSpace }); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot(t, takeScreenshot, '28-march-3-apr-week-view.png', { element: workSpace }); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot(t, takeScreenshot, '4-10-apr-week-view.png', { element: workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - allDay: true, - startDate: new Date(2021, 2, 27), - endDate: new Date(2021, 3, 4), - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - startDayHour: 9, - width: 600, - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/collector.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/collector.ts deleted file mode 100644 index b31c6555187d..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/collector.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { generateOptionMatrix } from '../../../../../helpers/generateOptionMatrix'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointments collector` - .page(url(__dirname, '../../../../container.html')); - -test('Appointment collector has correct offset when adaptivityEnabled=true (T1024299)', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'appointment-collector-adaptability-timelineMonth.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - adaptivityEnabled: true, - currentDate: new Date(2021, 7, 1), - views: ['timelineMonth'], - currentView: 'timelineMonth', - dataSource: [{ - text: 'text', - startDate: new Date(2021, 7, 1), - endDate: new Date(2021, 7, 2), - }], - height: 300, -})); - -const getSchedulerBaseOptions = (view: string) => { - const count = 20; - const day = 1; - const allDayAppointments = Array(Math.round(count / 4)).fill({ - allDay: true, - text: 'text', - startDate: new Date(2021, 7, day, 0), - endDate: new Date(2021, 7, day, 2), - }); - const regularAppointments = Array(Math.round((count * 3) / 4)).fill({ - text: 'text', - startDate: new Date(2021, 7, day, 0), - endDate: new Date(2021, 7, day, 2), - }); - const width = ['month', 'week'].includes(view) ? 800 : 500; - const height = ['month'].includes(view) ? 500 : 300; - - return { - currentDate: new Date(2021, 7, day), - views: [view], - currentView: view, - dataSource: [...allDayAppointments, ...regularAppointments], - height, - width, - }; -}; - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -generateOptionMatrix({ - view: ['week', 'month', 'timelineWeek'], - adaptivityEnabled: [true, false], -}).forEach(({ view, adaptivityEnabled }) => { - test(`Appointment collector has correct offset when view=${view} adaptivityEnabled=${adaptivityEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `appointment-collector-${view}-adapt(${adaptivityEnabled}).png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - adaptivityEnabled, - ...getSchedulerBaseOptions(view), - })); -}); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -test('Appointment collector has correct offset when month view with double interval', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'appointment-collector-month-double-interval.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - ...getSchedulerBaseOptions('month'), - views: [{ type: 'month', intervalCount: 2 }], -})); - -generateOptionMatrix({ - view: ['week', 'month', 'timelineWeek'], - rtlEnabled: [false, true], -}).forEach(({ - view, rtlEnabled, -}) => { - test(`Appointment collector has correct offset when view=${view} rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `appointment-collector-${view}-rtl(${rtlEnabled}).png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - ...getSchedulerBaseOptions(view), - rtlEnabled, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/dataSource.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/dataSource.ts deleted file mode 100644 index b70e6b7d1a97..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/dataSource.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`DataSource` - .page(url(__dirname, '../../../../container.html')); - -test('Appointment key should be deleted when removing an appointment from series (T1024213)', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler('#container'); - - await t - .doubleClick(scheduler.getAppointmentByIndex(1).element) - .click(scheduler.appointmentPopup.saveButton.element); - - await testScreenshot( - t, - takeScreenshot, - 'exclude-appointment-from-series-via-form-editing.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const initScheduler = ClientFunction(() => { - const devExpress = (window as any).DevExpress; - - ($('#container') as any).dxScheduler({ - dataSource: new devExpress.data.DataSource({ - store: { - type: 'array', - key: 'appointmentId', - data: [{ - startDate: new Date(2021, 6, 12, 10), - endDate: new Date(2021, 6, 12, 11), - text: 'Test Appointment', - recurrenceRule: 'FREQ=DAILY;COUNT=3', - appointmentId: 0, - }], - }, - }), - recurrenceEditMode: 'occurrence', - views: ['week'], - currentView: 'week', - startDayHour: 9, - currentDate: new Date(2021, 6, 12, 10), - height: 600, - }); - }); - - await initScheduler(); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/disable.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/disable.ts deleted file mode 100644 index 4bbfc1d576db..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/disable.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:disable` - .page(url(__dirname, '../../../../container.html')); - -test('Appointment popup should be readOnly if appointment is disabled', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { appointmentPopup } = scheduler; - - await testScreenshot(t, takeScreenshot, 'disabled-appointments-in-grid.png'); - - await t.click(scheduler.getAppointment('A', 0).element) - .click(scheduler.appointmentTooltip.getListItem('A').element); - - await testScreenshot(t, takeScreenshot, 'disabled-appointment.png', { element: appointmentPopup.contentElement }); - - await t.click(appointmentPopup.cancelButton.element); - - await t.click(scheduler.getAppointment('B').element) - .click(scheduler.appointmentTooltip.getListItem('B').element); - - await testScreenshot(t, takeScreenshot, 'enabled-appointment.png', { element: appointmentPopup.contentElement }); - - await t.click(appointmentPopup.cancelButton.element); - - await t.click(scheduler.getAppointment('C').element) - .click(scheduler.appointmentTooltip.getListItem('C').element); - - await testScreenshot(t, takeScreenshot, 'disabled-by-function-appointment.png', { - element: appointmentPopup.contentElement, - }); - - await t.click(appointmentPopup.cancelButton.element); - - await t.click(scheduler.getAppointment('D').element) - .click(scheduler.appointmentTooltip.getListItem('D').element); - - await testScreenshot(t, takeScreenshot, 'enabled-by-function-appointment.png', { - element: appointmentPopup.contentElement, - }); - - await t.click(appointmentPopup.cancelButton.element); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const dailyRecurrenceRule = 'FREQ=DAILY;UNTIL=20210615T205959Z'; - const weeklyRecurrenceRule = 'FREQ=WEEKLY;UNTIL=20210615T205959Z'; - - await createWidget('dxScheduler', { - dataSource: [{ - disabled: true, - text: 'A', - startDate: new Date(2021, 4, 27, 0, 30), - endDate: new Date(2021, 4, 27, 1), - recurrenceRule: dailyRecurrenceRule, - }, { - disabled: false, - text: 'B', - startDate: new Date(2021, 4, 27, 1), - endDate: new Date(2021, 4, 27, 1, 30), - recurrenceRule: dailyRecurrenceRule, - }, { - disabled: () => true, - text: 'C', - startDate: new Date(2021, 4, 27, 1, 30), - endDate: new Date(2021, 4, 27, 2), - recurrenceRule: weeklyRecurrenceRule, - }, { - disabled: () => false, - text: 'D', - startDate: new Date(2021, 4, 27, 2), - endDate: new Date(2021, 4, 27, 2, 30), - recurrenceRule: weeklyRecurrenceRule, - }], - recurrenceEditMode: 'series', - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 4, 27), - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png deleted file mode 100644 index 02c656c9d4b5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/after-dragging(T1020820) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png deleted file mode 100644 index d61c8c671eee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-adaptability-timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png deleted file mode 100644 index abd4527335ac..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png deleted file mode 100644 index 4ad778d9fd56..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-adapt(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png deleted file mode 100644 index 3f02740e4af0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-double-interval (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png deleted file mode 100644 index abd4527335ac..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png deleted file mode 100644 index 36e5c3f7752a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-month-rtl(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png deleted file mode 100644 index 83297598a96c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png deleted file mode 100644 index 53fc387361e5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-adapt(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png deleted file mode 100644 index 83297598a96c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png deleted file mode 100644 index 905cd2d83f35..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-timelineWeek-rtl(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png deleted file mode 100644 index 82b39a866c98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png deleted file mode 100644 index e47ea34081a7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-adapt(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png deleted file mode 100644 index 82b39a866c98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png deleted file mode 100644 index 7153a56e0a80..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-collector-week-rtl(true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png deleted file mode 100644 index 5f9476ab380a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-agenda (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png deleted file mode 100644 index 2ebc2d40955f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-day (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png deleted file mode 100644 index 1fece30dfa06..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png deleted file mode 100644 index ee91cca6c060..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineDay (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png deleted file mode 100644 index bb77f34d82ab..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png deleted file mode 100644 index 098c62fcf861..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png deleted file mode 100644 index 098c62fcf861..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-timelineWorkWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png deleted file mode 100644 index 9df64e5c0a82..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png deleted file mode 100644 index e0bd3e352d59..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/appointment-no-subject-workWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png deleted file mode 100644 index 681575c9824d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/before-dragging(T1020820) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png deleted file mode 100644 index 900dcd3c9b4c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointment (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png deleted file mode 100644 index 04761307f636..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-appointments-in-grid (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png deleted file mode 100644 index cd188bdf0af3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/disabled-by-function-appointment (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png deleted file mode 100644 index de83794ac119..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-appointment (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png deleted file mode 100644 index a8c714682203..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/enabled-by-function-appointment (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png deleted file mode 100644 index e3391c0b4dc1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/exclude-appointment-from-series-via-form-editing (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png deleted file mode 100644 index ab942dce4d58..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index ab942dce4d58..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=false-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png deleted file mode 100644 index 4cd920641c8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index 57914faff83a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=true-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png deleted file mode 100644 index 4cd920641c8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png deleted file mode 100644 index 57914faff83a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/filtering-visible=undefined-maxAppointmentsPerCell=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png deleted file mode 100644 index b8173c5a03ea..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-day-view-T1086079 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png deleted file mode 100644 index ff1891e36795..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/long-appointment-week-view-T1086079 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index df1ad2cb703b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 73cf1d6e4467..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-agenda_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 8439326b783b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 5b664705b1a6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-day_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 8fff109bd4d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 5f6f53066f5d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-month_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index eb98e1f43f60..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 08926f2d5c6a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineDay_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index caa209f05474..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 67b07446b1aa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineMonth_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 0c419a22551b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index e80027c6943f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWeek_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 5e35c27bed37..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 1b2ce79d3110..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-timelineWorkWeek_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index c02f67370761..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 4754735b1bd1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-week_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 40c56409ec47..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-non-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png deleted file mode 100644 index 82d754671733..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/etalons/recurrent-appointment-in-workWeek_view-and-rtl_mode (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/longAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/longAppointments.ts deleted file mode 100644 index 695811f36e1b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/longAppointments.ts +++ /dev/null @@ -1,92 +0,0 @@ -// T1086079 -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:longAppointments(T1086079)` - .page(url(__dirname, '../../../../container.html')); - -const dataSource = [{ - text: 'Website Re-Design Plan', - startDate: new Date('2021-02-29T01:30:00.000Z'), - endDate: new Date('2021-02-29T14:30:00.000Z'), - recurrenceRule: 'FREQ=DAILY', -}]; - -const appointmentName = 'Website Re-Design Plan'; - -test('Control should be render top part of recurrent long appointment in day view(T1086079)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'long-appointment-day-view-T1086079.png', { - element: scheduler.workSpace, - }); - - await t.click(scheduler.getAppointment(appointmentName, 0).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 29 5:30 PM - March 30 6:30 AM'); - - await t.click(scheduler.getAppointment(appointmentName, 1).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 30 5:30 PM - March 31 6:30 AM'); - - await t.click(scheduler.toolbar.navigator.nextButton); - - await t.click(scheduler.getAppointment(appointmentName, 0).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 30 5:30 PM - March 31 6:30 AM'); - - await t.click(scheduler.getAppointment(appointmentName, 1).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 31 5:30 PM - April 1 6:30 AM'); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource, - cellDuration: 120, - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 30), - startDayHour: 2, - endDayHour: 22, - height: 600, - }); -}); - -test('Control should be render top part of recurrent long appointment in week view(T1086079)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'long-appointment-week-view-T1086079.png', { - element: scheduler.workSpace, - }); - - await t.click(scheduler.getAppointment(appointmentName, 0).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 27 5:30 PM - March 28 6:30 AM'); - - await t.click(scheduler.getAppointment(appointmentName, 1).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 28 5:30 PM - March 29 6:30 AM'); - - await t.click(scheduler.getAppointment(appointmentName, 2).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 28 5:30 PM - March 29 6:30 AM'); - - await t.click(scheduler.getAppointment(appointmentName, 3).element); - await t.expect(scheduler.appointmentTooltip.getListItem(appointmentName).date.innerText).eql('March 29 5:30 PM - March 30 6:30 AM'); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource, - cellDuration: 120, - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 30), - startDayHour: 2, - endDayHour: 22, - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.ts deleted file mode 100644 index 3d5fe3387036..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/narrowAppointmentFluent.ts +++ /dev/null @@ -1,37 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Layout:Appointments:narrowAppointmentFluent` - .page(url(__dirname, '../../../../container.html')); - -test('Very narrow appointment in horizontal timeline should hide the appointment strip in Fluent theme', async (t) => { - const scheduler = new Scheduler('#container'); - const strip = scheduler - .getAppointment('short') - .element.find('.dx-scheduler-appointment-strip'); - - await t - .expect(strip.exists) - .ok() - .expect(strip.getStyleProperty('display')) - .eql('none'); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2016, 1, 2), - dataSource: [ - { - text: 'short', - startDate: new Date(2016, 1, 2, 12, 0), - endDate: new Date(2016, 1, 2, 12, 1), - }, - ], - views: ['timelineWeek'], - currentView: 'timelineWeek', - maxAppointmentsPerCell: 'unlimited', - height: 505, - width: 800, - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - firstDayOfWeek: 0, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/noSubject.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/noSubject.ts deleted file mode 100644 index 64abea158f72..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/noSubject.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:noSubject` - .page(url(__dirname, '../../../../container.html')); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -const views = ['day', 'week', 'workWeek', 'month', 'timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth', 'agenda']; -const timelineViews = ['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth']; - -views.forEach((currentView) => { - test(`Appointment without text should display "(No subject)" in ${currentView} view`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointmentDate = new Date(2021, 0, 1, 10, 30); - - if (timelineViews.includes(currentView)) { - await scheduler.scrollTo(appointmentDate); - await t.wait(300); - } - - await testScreenshot( - t, - takeScreenshot, - `appointment-no-subject-${currentView}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: new Date(2021, 0, 1, 10, 30), - endDate: new Date(2021, 0, 1, 12, 0), - text: '', - }], - views, - currentView, - currentDate: new Date(2021, 0, 1), - startDayHour: 9, - endDayHour: 18, - height: 600, - width: 600, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/recurrence.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/recurrence.ts deleted file mode 100644 index 506d16877638..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/recurrence.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`AppointmentForm screenshot tests` - .page(url(__dirname, '../../../../container.html')); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -['day', 'week', 'workWeek', 'month', 'timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth', 'agenda'].forEach((currentView) => { - [true, false].forEach((rtlEnabled) => { - test('Appointemt form tests', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `recurrent-appointment-in-${currentView}_view-and-${rtlEnabled ? 'rtl' : 'non-rtl'}_mode.png`, - { element: scheduler.element }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Long Long Long Long Long Long Long Long Long Description', - startDate: new Date(2021, 0, 1, 1, 30), - endDate: new Date(2021, 0, 1, 3, 0), - recurrenceRule: 'FREQ=DAILY;COUNT=30', - }], - currentDate: new Date(2021, 0, 4), - height: 600, - currentView, - rtlEnabled, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/two-schedulers.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/two-schedulers.ts deleted file mode 100644 index 2bada5aeb1db..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/two-schedulers.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:two-schedulers` - .page(url(__dirname, '../../../../container.html')); - -test('Appointment\'s dragging should be work properly, if on page placed two dxSchedulers(T1020820)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'before-dragging(T1020820).png'); - - await t - .drag(scheduler.getAppointment('Install New Database').element, -100, -100, { speed: 0.5 }); - - await testScreenshot(t, takeScreenshot, 'after-dragging(T1020820).png'); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - maxAppointmentsPerCell: 'unlimited', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date('2021-03-29T16:30:00.000Z'), - endDate: new Date('2021-03-29T18:30:00.000Z'), - }, { - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date('2021-03-29T19:00:00.000Z'), - endDate: new Date('2021-03-29T20:00:00.000Z'), - allDay: true, - }, { - text: 'Approve Personal Computer Upgrade Plan', - startDate: new Date('2021-03-30T17:00:00.000Z'), - endDate: new Date('2021-03-30T18:00:00.000Z'), - }, { - text: 'Final Budget Review', - startDate: new Date('2021-03-30T19:00:00.000Z'), - endDate: new Date('2021-03-30T20:35:00.000Z'), - }, { - text: 'Install New Database', - startDate: new Date('2021-03-31T16:45:00.000Z'), - endDate: new Date('2021-03-31T18:15:00.000Z'), - }], - views: ['month'], - currentView: 'month', - currentDate: new Date(2021, 2, 29), - startDayHour: 9, - height: 400, - }); - - await createWidget('dxScheduler', { - maxAppointmentsPerCell: 'unlimited', - dataSource: [{ - text: 'Helen', - startDate: new Date('2021-03-29T16:30:00.000Z'), - endDate: new Date('2021-04-29T18:30:00.000Z'), - }, { - text: 'Alex', - startDate: new Date('2021-03-29T19:00:00.000Z'), - endDate: new Date('2021-04-29T20:00:00.000Z'), - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 29), - startDayHour: 9, - height: 400, - }, '#otherContainer'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/visible.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/visible.ts deleted file mode 100644 index 03553ca4969f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/appointments/visible.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Appointments:visible` - .page(url(__dirname, '../../../../container.html')); - -[1, 0].forEach((maxAppointmentsPerCell) => { - [true, false, undefined].forEach((visible) => { - test(`Appointments should be filtered by visible property(visible='${visible}', maxAppointmentsPerCell='${maxAppointmentsPerCell}'`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `filtering-visible=${visible}-maxAppointmentsPerCell=${maxAppointmentsPerCell}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - text: 'Recurrence app', - roomId: [1], - startDate: new Date(2021, 3, 13, 1, 30), - endDate: new Date(2021, 3, 13, 2, 30), - recurrenceRule: 'FREQ=DAILY', - visible, - }, { - text: 'Simple app', - roomId: [1], - startDate: new Date(2021, 3, 12, 3), - endDate: new Date(2021, 3, 12, 4), - visible, - }], - views: [{ - type: 'week', - name: 'Numeric Mode', - maxAppointmentsPerCell, - }], - currentView: 'Numeric Mode', - currentDate: new Date(2021, 3, 15), - height: 600, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizes.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizes.ts deleted file mode 100644 index 935f0d818d38..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizes.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Layout Customization: Cell Sizes` - .page(url(__dirname, '../../../../container.html')); - -const SELECTOR = '#container'; - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - currentDate: new Date(2021, 4, 11), - height: 500, - width: 700, - startDayHour: 9, - showAllDayPanel: false, - dataSource: [], - crossScrollingEnabled: true, - groups: ['priorityId'], - resources: [{ - fieldExpr: 'priorityId', - dataSource: [{ - text: 'Low Priority 1', - id: 0, - color: '#24ff50', - }, { - text: 'Low Priority 2', - id: 1, - color: '#ff9747', - }, { - text: 'Low Priority 3', - id: 2, - color: '#24ff50', - }, { - text: 'High Priority 1', - id: 3, - color: '#ff9747', - }, { - text: 'High Priority 2', - id: 4, - color: '#24ff50', - }, { - text: 'High Priority 3', - id: 5, - color: '#ff9747', - }], - label: 'Priority', - }], - ...additionalProps, - }); -}; - -const views = [{ - type: 'week', - groupOrientation: 'horizontal', -}, { - type: 'month', - groupOrientation: 'horizontal', -}, { - type: 'timelineWeek', - groupOrientation: 'vertical', -}, { - type: 'timelineMonth', - groupOrientation: 'vertical', -}]; - -test('Cell sizes customization should work', async (t) => { - const scheduler = new Scheduler(SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const { type } of views) { - await scheduler.option('currentView', type); - - await testScreenshot( - t, - takeScreenshot, - `custom-cell-sizes-in-${type}.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-cell-sizes-vertical { height: 150px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'); - await createScheduler({ - views, - }); -}); - -test('Cell sizes customization should work when all-day panel is enabled', async (t) => { - const scheduler = new Scheduler(SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'custom-cell-sizes-with-all-day-panel-in-week.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-cell-sizes-vertical { height: 150px; } #container .dx-scheduler-cell-sizes-horizontal { width: 150px; }'); - - await createScheduler({ - views, - showAllDayPanel: true, - currentView: 'week', - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizesCss.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizesCss.ts deleted file mode 100644 index 3dd124482087..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/cellSizesCss.ts +++ /dev/null @@ -1,126 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; - -fixture.disablePageReloads`Scheduler: Layout Customization: Cell Sizes CSS classes` - .page(url(__dirname, '../../../../container.html')); - -const SELECTOR = '#container'; - -const HORIZONTAL_SIZE_CLASSNAME = 'dx-scheduler-cell-sizes-horizontal'; -const VERTICAL_SIZE_CLASSNAME = 'dx-scheduler-cell-sizes-vertical'; -const CELL_SIZE_CSS = ` -#container .${HORIZONTAL_SIZE_CLASSNAME} { - width: 300px; -} - -#container .${VERTICAL_SIZE_CLASSNAME} { - height: 300px; -} -`; - -const DAY_VIEW_CASE = { - views: ['day'], - crossScrollingEnabled: false, - expect: { - width: 'skipCheck', - height: 300, - hasHorizontalClass: false, - hasVerticalClass: true, - }, -}; - -const DAY_VIEW_CROSS_SCROLLING_CASE = { - views: ['day'], - crossScrollingEnabled: true, - expect: { - width: 'skipCheck', - height: 300, - hasHorizontalClass: true, - hasVerticalClass: true, - }, -}; - -const VERTICAL_VIEW_CASES = { - views: ['week', 'workWeek', 'month'], - crossScrollingEnabled: false, - expect: { - width: 'skipCheck', - height: 300, - hasHorizontalClass: false, - hasVerticalClass: true, - }, -}; - -const VERTICAL_VIEW_CROSS_SCROLLING_CASES = { - views: ['week', 'workWeek', 'month'], - crossScrollingEnabled: true, - expect: { - width: 300, - height: 300, - hasHorizontalClass: true, - hasVerticalClass: true, - }, -}; - -const HORIZONTAL_VIEW_CASES = { - views: ['timelineDay', 'timelineWeek', 'timelineMonth'], - crossScrollingEnabled: false, - expect: { - width: 300, - height: 300, - hasHorizontalClass: true, - hasVerticalClass: true, - }, -}; - -const HORIZONTAL_VIEW_CROSS_SCROLLING_CASES = { - views: ['timelineDay', 'timelineWeek', 'timelineMonth'], - crossScrollingEnabled: true, - expect: { - width: 300, - height: 300, - hasHorizontalClass: true, - hasVerticalClass: true, - }, -}; - -[ - DAY_VIEW_CASE, - DAY_VIEW_CROSS_SCROLLING_CASE, - VERTICAL_VIEW_CASES, - VERTICAL_VIEW_CROSS_SCROLLING_CASES, - HORIZONTAL_VIEW_CASES, - HORIZONTAL_VIEW_CROSS_SCROLLING_CASES, -].forEach(({ views, expect, crossScrollingEnabled }) => { - views.forEach((view) => { - test( - `Cells should have correct sizes and css classes (view:${view}, crossScrolling:${crossScrollingEnabled})`, - async (t) => { - const scheduler = new Scheduler(SELECTOR); - - const cell = scheduler.getDateTableCell(0, 0); - const { width, height } = await cell.boundingClientRect; - const hasHorizontalClass = cell.hasClass(HORIZONTAL_SIZE_CLASSNAME); - const hasVerticalClass = cell.hasClass(VERTICAL_SIZE_CLASSNAME); - - if (typeof expect.width === 'number') { - await t.expect(width).eql(expect.width, 'Date table cell has incorrect width'); - } - - await t.expect(height).eql(expect.height, 'Date table cell has incorrect height'); - await t.expect(hasHorizontalClass).eql(expect.hasHorizontalClass, 'Cell should has horizontal css class'); - await t.expect(hasVerticalClass).eql(expect.hasVerticalClass, 'Cell should has vertical css class'); - }, - ).before(async () => { - await insertStylesheetRulesToPage(CELL_SIZE_CSS); - await createWidget('dxScheduler', { - dataSource: [], - currentView: view, - currentDate: '2024-01-01', - crossScrollingEnabled, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png deleted file mode 100644 index d005d121f00f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png deleted file mode 100644 index a93b1a376bae..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png deleted file mode 100644 index c766c5cc8422..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-timelineWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png deleted file mode 100644 index d08436b0ed02..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png deleted file mode 100644 index 70e0acf03df5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-cell-sizes-with-all-day-panel-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index bf1d8dcab532..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 9bcd9c19092c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-month-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 30e6b0a0b236..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 30e6b0a0b236..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 7b19599f57a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 7b19599f57a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index e2c2ecaa1c44..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 6f5ee6bb128a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-group-panel-in-week-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 94b9b97d2786..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 5ac552f9ff39..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-month-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 2ef6e0ceb7be..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 2ef6e0ceb7be..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineMonth-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index a5c70c365201..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index a5c70c365201..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-timelineWeek-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index f0af5293a054..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index f10a29837acf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-header-panel-in-week-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 3dd1002a1d98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 3dd1002a1d98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-agenda-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png deleted file mode 100644 index 9456e3febb8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png deleted file mode 100644 index 9456e3febb8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/etalons/custom-time-panel-in-week-cross-scrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/groupPanel.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/groupPanel.ts deleted file mode 100644 index 98b628d7473b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/groupPanel.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Layout Customization: Group Panel` - .page(url(__dirname, '../../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - currentDate: new Date(2021, 4, 11), - height: 500, - width: 700, - startDayHour: 9, - showAllDayPanel: false, - dataSource: [{ - text: 'Create Report on Customer Feedback', - startDate: new Date(2021, 4, 1, 14), - endDate: new Date(2021, 4, 1, 15), - priorityId: 0, - }, { - text: 'Review Customer Feedback Report', - startDate: new Date(2021, 4, 9, 9, 30), - endDate: new Date(2021, 4, 9, 11), - priorityId: 0, - }], - groups: ['priorityId'], - resources: [{ - fieldExpr: 'priorityId', - dataSource: [ - { - text: 'Low Priority', - id: 0, - color: '#24ff50', - }, { - text: 'High Priority', - id: 1, - color: '#ff9747', - }, - ], - label: 'Priority', - }], - ...additionalProps, - }); -}; - -const views = [{ - type: 'week', - groupOrientation: 'vertical', -}, { - type: 'month', - groupOrientation: 'vertical', -}, { - type: 'timelineWeek', - groupOrientation: 'vertical', -}, { - type: 'timelineMonth', - groupOrientation: 'vertical', -}]; - -[false, true].forEach((crossScrollingEnabled) => { - test('Group panel customization should work', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view.type); - - await testScreenshot( - t, - takeScreenshot, - `custom-group-panel-in-${view.type}-cross-scrolling=${crossScrollingEnabled}.png`, - { element: scheduler.element }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-group-header { width: 200px;}'); - - await createScheduler({ - views, - crossScrollingEnabled, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/headerPanel.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/headerPanel.ts deleted file mode 100644 index c48e22a9a524..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/headerPanel.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Layout Customization: Header Panel` - .page(url(__dirname, '../../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - currentDate: new Date(2021, 4, 11), - height: 500, - width: 700, - startDayHour: 9, - showAllDayPanel: false, - dataSource: [{ - text: 'Create Report on Customer Feedback', - startDate: new Date(2021, 4, 11, 14), - endDate: new Date(2021, 4, 11, 15), - priorityId: 0, - }, { - text: 'Review Customer Feedback Report', - startDate: new Date(2021, 4, 9, 9, 30), - endDate: new Date(2021, 4, 9, 11), - priorityId: 0, - }], - groups: ['priorityId'], - resources: [{ - fieldExpr: 'priorityId', - dataSource: [ - { - text: 'Low Priority', - id: 0, - color: '#24ff50', - }, { - text: 'High Priority', - id: 1, - color: '#ff9747', - }, - ], - label: 'Priority', - }], - ...additionalProps, - }); -}; - -const views = [{ - type: 'week', - groupOrientation: 'horizontal', -}, { - type: 'month', - groupOrientation: 'horizontal', -}, { - type: 'timelineWeek', - groupOrientation: 'horizontal', -}, { - type: 'timelineMonth', - groupOrientation: 'horizontal', -}]; - -[false, true].forEach((crossScrollingEnabled) => { - test('Header panel customization should work', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view.type); - - await testScreenshot( - t, - takeScreenshot, - `custom-header-panel-in-${view.type}-cross-scrolling=${crossScrollingEnabled}.png`, - { element: scheduler.element }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-group-header, #container .dx-scheduler-header-panel-cell { height: 100px; }'); - - await createScheduler({ - views, - crossScrollingEnabled, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/timePanel.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/timePanel.ts deleted file mode 100644 index 818b8dec6acd..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/customization/timePanel.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Layout Customization: Time Panel` - .page(url(__dirname, '../../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - currentDate: new Date(2021, 4, 11), - height: 500, - width: 700, - startDayHour: 9, - showAllDayPanel: false, - dataSource: [{ - text: 'Create Report on Customer Feedback', - startDate: new Date('2021-05-11T22:15:00.000Z'), - endDate: new Date('2021-05-12T00:30:00.000Z'), - }, { - text: 'Review Customer Feedback Report', - startDate: new Date('2021-05-11T23:15:00.000Z'), - endDate: new Date('2021-05-12T01:30:00.000Z'), - }, { - text: 'Customer Feedback Report Analysis', - startDate: new Date('2021-05-12T16:30:00.000Z'), - endDate: new Date('2021-05-12T17:30:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY', - }, { - text: 'Prepare Shipping Cost Analysis Report', - startDate: new Date('2021-05-12T19:30:00.000Z'), - endDate: new Date('2021-05-12T20:30:00.000Z'), - }, { - text: 'Provide Feedback on Shippers', - startDate: new Date('2021-05-12T21:15:00.000Z'), - endDate: new Date('2021-05-12T23:00:00.000Z'), - }, { - text: 'Select Preferred Shipper', - startDate: new Date('2021-05-13T00:30:00.000Z'), - endDate: new Date('2021-05-13T03:00:00.000Z'), - }, { - text: 'Complete Shipper Selection Form', - startDate: new Date('2021-05-13T15:30:00.000Z'), - endDate: new Date('2021-05-13T17:00:00.000Z'), - }, { - text: 'Upgrade Server Hardware', - startDate: new Date('2021-05-13T19:00:00.000Z'), - endDate: new Date('2021-05-13T21:15:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY', - }, { - text: 'Upgrade Personal Computers', - startDate: new Date('2021-05-13T21:45:00.000Z'), - endDate: new Date('2021-05-13T23:30:00.000Z'), - }], - ...additionalProps, - }); -}; - -[false, true].forEach((crossScrollingEnabled) => { - ['week', 'agenda'].forEach((view) => { - test(`Time panel customization should work in ${view} view`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `custom-time-panel-in-${view}-cross-scrolling=${crossScrollingEnabled}.png`, - { element: '#container' }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage('#container .dx-scheduler-time-panel { width: 150px;}'); - - await createScheduler({ - views: [view], - currentView: view, - crossScrollingEnabled, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png deleted file mode 100644 index c5fef8f8ece7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png deleted file mode 100644 index 224b94d1d784..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=agenda-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png deleted file mode 100644 index db200130f6d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png deleted file mode 100644 index a4c3d3cc49a6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=day-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png deleted file mode 100644 index b497db259bf8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png deleted file mode 100644 index e37431ab593b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=month-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png deleted file mode 100644 index d27e62d33f45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png deleted file mode 100644 index b62744345d98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineDay-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png deleted file mode 100644 index 837a5648c5c6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png deleted file mode 100644 index 7f449b426c18..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineMonth-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png deleted file mode 100644 index 6f79ecab3c29..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png deleted file mode 100644 index ecb5d78cac2e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWeek-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png deleted file mode 100644 index 256d8f1b210b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png deleted file mode 100644 index cf7625259e9a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=timelineWorkWeek-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png deleted file mode 100644 index 60b137c89744..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png deleted file mode 100644 index 087256c0fff3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=week-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png deleted file mode 100644 index 67aea49f78bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png deleted file mode 100644 index 71963fb4b671..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/etalons/resource(view=workWeek-resource=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/resources.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/resources.ts deleted file mode 100644 index 661499c36fbc..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/resources.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { createDataSetForScreenShotTests, resourceDataSource } from '../../utils'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Resources layout` - .page(url(__dirname, '../../../../../container.html')); - -const createScheduler = async (view: string, resourcesValue?: unknown[]): Promise => { - await createWidget('dxScheduler', { - dataSource: createDataSetForScreenShotTests(), - currentDate: new Date(2020, 6, 15), - views: [view], - currentView: view, - resources: resourcesValue, - height: 600, - }); -}; - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -[undefined, resourceDataSource].forEach((resourcesValue) => { - ['agenda', 'day', 'week', 'month', 'workWeek'].forEach((view) => { - test(`Base views layout test with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.click(scheduler.toolbar.element); - await t.click(scheduler.getAppointment('1 appointment', 0).element); - await t.expect(scheduler.appointmentTooltip.isVisible()).ok(); - - await testScreenshot(t, takeScreenshot, `resource(view=${view}-resource=${!!resourcesValue}).png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createScheduler(view, resourcesValue)); - }); -}); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -[undefined, resourceDataSource].forEach((resourcesValue) => { - ['timelineDay', 'timelineWeek', 'timelineMonth', 'timelineWorkWeek'].forEach((view) => { - test(`Timeline views layout test with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - /* - * If appointment position is the same in the next view,then mouse doesn't change - * their position and doesn't trigger hover effect. This is the reason for the instability - * of the tests. The following operation ensures that the mouse position is changed. - */ - await t.click(scheduler.toolbar.element); - await t.click(scheduler.getAppointment('1 appointment', 0).element); - await t.expect(scheduler.appointmentTooltip.isVisible()).ok(); - - await testScreenshot(t, takeScreenshot, `resource(view=${view}-resource=${!!resourcesValue}).png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createScheduler(view, resourcesValue)); - }); -}); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -test('Scheduler should have correct height in month view (T927862)', async (t) => { - const scheduler = new Scheduler('#container'); - - const dataTableBoundingClientRect = await scheduler.dateTable.boundingClientRect; - const workspaceBoundingClientRect = await scheduler.workspaceScrollable.boundingClientRect; - - await t - .expect(dataTableBoundingClientRect.bottom) - .eql(workspaceBoundingClientRect.bottom); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['month'], - currentView: 'month', - height: 800, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index 1194836811ed..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 1194836811ed..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=agenda-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index dec500ec9099..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 786d74dd09c1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=day-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index 438cf2be244a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index d04615fed4ac..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=month-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index a06f59d7a3a9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 221b7fd3a0f8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineDay-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index 61eedf3ffcbc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index c285e1cd7ddb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineMonth-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index 163b7bad1385..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 2cb2697b28e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWeek-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index a89a8f63643f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 47b473f97cd9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=timelineWorkWeek-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index 92a1e191a6dd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index 38b63a0fd4e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=week-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png deleted file mode 100644 index c9096b3e959f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=horizontal) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png deleted file mode 100644 index a1a8f1734b1a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/etalons/groups(view=workWeek-orientation=vertical) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/groups.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/groups.ts deleted file mode 100644 index 9798461e4873..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/groups/groups.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { createDataSetForScreenShotTests, resourceDataSource } from '../../utils'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Groups layout` - .page(url(__dirname, '../../../../../container.html')); - -const createScheduler = async (view: string, groupOrientation: string): Promise => { - await createWidget('dxScheduler', { - dataSource: createDataSetForScreenShotTests(), - currentDate: new Date(2020, 6, 15), - startDayHour: 0, - endDayHour: 4, - views: [{ - type: view, - name: view, - groupOrientation, - }], - currentView: view, - crossScrollingEnabled: true, - resources: resourceDataSource, - groups: ['priorityId'], - height: 700, - }); -}; - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -['vertical', 'horizontal'].forEach((groupOrientation) => { - ['agenda', 'day', 'week', 'workWeek', 'month'].forEach((view) => { - test(`Base views layout test with groups(view='${view}', groupOrientation=${groupOrientation})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `groups(view=${view}-orientation=${groupOrientation}).png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createScheduler(view, groupOrientation)); - }); -}); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -['vertical', 'horizontal'].forEach((groupOrientation) => { - ['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth'].forEach((view) => { - test(`Timeline views layout test with groups(view='${view}', groupOrientation=${groupOrientation})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `groups(view=${view}-orientation=${groupOrientation}).png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => createScheduler(view, groupOrientation)); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplate.ts deleted file mode 100644 index cc64fe3dee73..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplate.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Templates:appointmentTemplate` - .page(url(__dirname, '../../../../container.html')); - -['day', 'workWeek', 'month', 'timelineDay', 'timelineWorkWeek', 'agenda'].forEach((currentView) => { - test(`appointmentTemplate layout should be rendered right in '${currentView}'`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `appointment-template-currentView=${currentView}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: new Date(2017, 4, 21, 0, 30), - endDate: new Date(2017, 4, 21, 2, 30), - }, { - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 2, 30), - }, { - startDate: new Date(2017, 4, 23, 0, 30), - endDate: new Date(2017, 4, 23, 2, 30), - }, { - startDate: new Date(2017, 4, 24, 0, 30), - endDate: new Date(2017, 4, 24, 2, 30), - }, { - startDate: new Date(2017, 4, 25, 0, 30), - endDate: new Date(2017, 4, 25, 2, 30), - }, { - startDate: new Date(2017, 4, 26, 0, 30), - endDate: new Date(2017, 4, 26, 2, 30), - }, { - startDate: new Date(2017, 4, 27, 0, 30), - endDate: new Date(2017, 4, 27, 2, 30), - }], - views: [currentView], - currentView, - currentDate: new Date(2017, 4, 25), - appointmentTemplate: ClientFunction((appointment) => { - const result = $('
'); - - const startDateBox = ($('
') as any).dxDateBox({ - type: 'datetime', - value: appointment.appointmentData.startDate, - }); - - const endDateBox = ($('
') as any).dxDateBox({ - type: 'datetime', - value: appointment.appointmentData.endDate, - }); - - result.append(startDateBox, endDateBox); - - return result; - }), - height: 600, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.ts deleted file mode 100644 index 96889fe479d5..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/appointmentTemplateTargetedData.ts +++ /dev/null @@ -1,270 +0,0 @@ -import type { - Appointment, - Orientation, - ScrollMode, - ViewType, -} from 'devextreme/ui/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; - -import { generateOptionMatrix } from '../../../../../helpers/generateOptionMatrix'; -import { scrollToDate } from '../../../helpers/utils'; - -fixture.disablePageReloads`Layout:Templates:appointmentTemplate:targetedData` - .page(url(__dirname, '../../../../container.html')); - -const getResourceCount = ( - viewType: ViewType, - scrollMode: ScrollMode, - groupOrientation: Orientation, -): number => { - if ( - (viewType === 'workWeek' - || viewType === 'timelineWorkWeek' - || viewType === 'week' - || viewType === 'timelineWeek') - && (scrollMode === 'standard' && groupOrientation === 'horizontal') - ) { - return 2; - } - - if (scrollMode === 'standard') { - return 10; - } - - return 30; -}; - -const getGroupAppointmentDates = (viewType: ViewType): Date[] => { - const isWorkWeek = viewType === 'workWeek' || viewType === 'timelineWorkWeek'; - - if (isWorkWeek || viewType === 'week' || viewType === 'timelineWeek') { - const [ - dayCount, - startDate, - ] = isWorkWeek - ? [5, new Date(2024, 0, 1, 8)] - : [7, new Date(2023, 11, 31, 8)]; - - return Array.from( - { length: 12 * dayCount }, - (_, index) => { - const result = new Date(startDate); - result.setDate(result.getDate() + Math.floor(index / 12)); - result.setHours(result.getHours() + (index % 12)); - return result; - }, - ); - } - - if (viewType === 'month' || viewType === 'timelineMonth') { - return Array.from( - { length: 31 }, - (_, index) => { - const result = new Date(2024, 0, 1, 8); - result.setDate(result.getDate() + index); - return result; - }, - ); - } - - const startDate = viewType === 'agenda' - ? new Date(2024, 0, 1, 8) - : new Date(2024, 0, 2, 8); - - return Array.from( - { length: 12 }, - (_, index) => { - const result = new Date(startDate); - result.setHours(result.getHours() + index); - return result; - }, - ); -}; - -const viewTypes: ViewType[] = [ - 'agenda', - 'day', - 'week', - 'workWeek', - 'month', - 'timelineDay', - 'timelineWeek', - 'timelineWorkWeek', - 'timelineMonth', -]; - -const groupOrientations: Orientation[] = ['horizontal', 'vertical']; -const scrollModes: ScrollMode[] = ['standard', 'virtual']; -const rtlEnabledOptions: boolean[] = [false, true]; - -const testOptions = generateOptionMatrix({ - viewType: viewTypes, - groupOrientation: groupOrientations, - scrollMode: scrollModes, - rtlEnabled: rtlEnabledOptions, -}, [ - // Not supported - { - viewType: 'agenda', - scrollMode: 'virtual', - }, - // Not supported - { - viewType: 'agenda', - groupOrientation: 'horizontal', - }, - { - viewType: 'day', - groupOrientation: 'vertical', - scrollMode: 'standard', - }, - { - viewType: 'week', - groupOrientation: 'vertical', - scrollMode: 'standard', - }, - { - viewType: 'workWeek', - groupOrientation: 'vertical', - scrollMode: 'standard', - }, - { - viewType: 'day', - groupOrientation: 'horizontal', - rtlEnabled: true, - }, - { - viewType: 'week', - groupOrientation: 'horizontal', - rtlEnabled: true, - }, - { - viewType: 'workWeek', - groupOrientation: 'horizontal', - rtlEnabled: true, - }, - { - viewType: 'month', - groupOrientation: 'horizontal', - rtlEnabled: true, - }, - { - viewType: 'timelineDay', - groupOrientation: 'vertical', - rtlEnabled: true, - }, - { - viewType: 'timelineWeek', - groupOrientation: 'vertical', - rtlEnabled: true, - }, - { - viewType: 'timelineWorkWeek', - groupOrientation: 'vertical', - rtlEnabled: true, - }, - { - viewType: 'timelineMonth', - groupOrientation: 'vertical', - rtlEnabled: true, - }, -]); - -// NOTE: no assertions are present, checking but not throwing an error in a template function -testOptions.forEach(({ - viewType, - groupOrientation, - scrollMode, - rtlEnabled, -}) => { - test(`targetedAppointmentData should be correct with groups (viewType="${viewType}", groupOrientation="${groupOrientation}", scrollMode="${scrollMode}", rtlEnabled="${rtlEnabled}") (T1205120)`, async (t) => { - const currentDate = new Date(2024, 0, 2); - const HOUR = 1000 * 60 * 60; - const resourceCount = getResourceCount(viewType, scrollMode, groupOrientation); - const appointmentDates = getGroupAppointmentDates(viewType); - - const datesToCheck = [ - appointmentDates[0], - appointmentDates[Math.floor(appointmentDates.length / 3)], - appointmentDates[appointmentDates.length - 1], - ]; - - const groupsToCheck = [ - { groupId: 0 }, - { groupId: Math.floor(resourceCount / 3) }, - { groupId: resourceCount - 1 }, - ]; - - const resourceDataSource = Array.from({ length: resourceCount }, (_, index) => ({ - id: index, - text: `Resource ${index}`, - })); - - const appointments = resourceDataSource.reduce((acc, resource) => acc.concat( - appointmentDates - .map((date) => ({ - text: resource.text, - startDate: date, - endDate: new Date(date.getTime() + HOUR / 2), - groupId: resource.id, - })), - ), []); - - await createWidget('dxScheduler', { - rtlEnabled, - height: 600, - width: 800, - currentDate, - startDayHour: 8, - endDayHour: 20, - scrolling: { - mode: scrollMode, - }, - groups: ['groupId'], - views: [ - { - type: viewType, - groupOrientation, - }, - ], - currentView: viewType, - dataSource: appointments, - resources: [ - { - fieldExpr: 'groupId', - allowMultiple: true, - dataSource: resourceDataSource, - label: 'Employees', - displayExpr: 'id', - }, - ], - appointmentTemplate(model, _, element) { - const { groupId: targetedId } = model.targetedAppointmentData; - const { groupId } = model.appointmentData; - - if (groupId !== targetedId[0]) { - throw new Error('Group ID and targeted ID are mismatched'); - } - - element.append(`tid[${targetedId}] gid[${groupId}]`); - return element; - }, - }); - - if (scrollMode !== 'virtual') { - return; - } - - const scrollOptions = generateOptionMatrix({ - date: datesToCheck, - group: groupsToCheck, - }); - - // eslint-disable-next-line no-restricted-syntax - for (const { date, group } of scrollOptions) { - await scrollToDate(date, group); - await t.wait(50); - } - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/cellTemplate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/cellTemplate.ts deleted file mode 100644 index 83ae949af2c2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/cellTemplate.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Templates:CellTemplate` - .page(url(__dirname, '../../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -['day', 'workWeek', 'month', 'timelineDay', 'timelineWorkWeek', 'timelineMonth'].forEach((currentView) => { - test(`dataCellTemplate and dateCellTemplate layout should be rendered right in '${currentView}'`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - `data-cell-template-currentView=${currentView}.png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: [currentView], - currentView, - currentDate: new Date(2017, 4, 25), - showAllDayPanel: false, - dataCellTemplate: ClientFunction((itemData) => ($('
') as any).dxDateBox({ - type: 'time', - value: itemData.startDate, - })), - dateCellTemplate: ClientFunction((itemData) => ($('
') as any).dxTextBox({ - value: new Intl.DateTimeFormat('en-US').format(itemData.date), - })), - height: 600, - }); - }); -}); - -test('[T1251590] Async dateCellTemplate should be rendered only once', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const firstTableCell = scheduler.headerPanel.headerCells.nth(0); - - await t.expect(firstTableCell.textContent).eql('TEST'); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-01T01:00:00', - endDate: '2024-01-01T02:00:00', - allDay: true, - }, - ], - dateCellTemplate: ClientFunction((_, __, itemElement) => { - setTimeout(() => { - itemElement.append('TEST'); - }, 0); - }), - currentDate: '2024-01-01', - currentView: 'week', - }); -}); - -test('[T1251590] Async dateCellTemplate should be rendered only once if has reference props (grouping)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const firstTableCell = scheduler.headerPanel.headerCells.nth(0); - - await t.expect(firstTableCell.textContent).eql('TEST'); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-01T01:00:00', - endDate: '2024-01-01T02:00:00', - allDay: true, - }, - ], - groups: ['groupId'], - resources: [ - { - label: 'group', - fieldExpr: 'groupId', - dataSource: [ - { - text: 'A', - id: 0, - color: '#00af2c', - }, - ], - }, - ], - dateCellTemplate: ClientFunction((_, __, itemElement) => { - setTimeout(() => { - itemElement.append('TEST'); - }, 0); - }), - currentDate: '2024-01-01', - currentView: 'week', - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png deleted file mode 100644 index 4e3fc5fb89fe..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=agenda (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png deleted file mode 100644 index cb43a4aaa292..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=day (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png deleted file mode 100644 index 2fd7e6dda2ed..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png deleted file mode 100644 index 035ddd2cc0d4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineDay (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png deleted file mode 100644 index 4110d2eae7f0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=timelineWorkWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png deleted file mode 100644 index e58d561177d9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-template-currentView=workWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png deleted file mode 100644 index f6def659755d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/appointment-tooltip-template (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png deleted file mode 100644 index a53be86fd047..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=day (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png deleted file mode 100644 index b5fb3adc2b97..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png deleted file mode 100644 index 392c599ee879..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineDay (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png deleted file mode 100644 index 85f8c5064f1c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png deleted file mode 100644 index a7899fc8e59c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=timelineWorkWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png deleted file mode 100644 index 611da4fcb442..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/etalons/data-cell-template-currentView=workWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/tooltipTemplate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/tooltipTemplate.ts deleted file mode 100644 index c3e9b7ff5c98..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/templates/tooltipTemplate.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Templates:appointmentTooltipTemplate` - .page(url(__dirname, '../../../../container.html')); - -test('appointmentTooltipTemplate layout should be rendered right', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.click(scheduler.getAppointmentByIndex().element); - - await testScreenshot( - t, - takeScreenshot, - 'appointment-tooltip-template.png', - { element: scheduler.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: new Date(2017, 4, 25, 0, 30), - endDate: new Date(2017, 4, 25, 2, 30), - }], - views: ['workWeek'], - currentView: 'workWeek', - currentDate: new Date(2017, 4, 25), - appointmentTooltipTemplate: ClientFunction((appointment) => { - const result = $('
'); - - const startDateBox = ($('
') as any).dxDateBox({ - type: 'datetime', - value: appointment.appointmentData.startDate, - }); - - const endDateBox = ($('
') as any).dxDateBox({ - type: 'datetime', - value: appointment.appointmentData.endDate, - }); - - result.append(startDateBox, endDateBox); - - return result; - }), - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.ts deleted file mode 100644 index fd6484ffa069..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/currentTimeIndicator.ts +++ /dev/null @@ -1,151 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Current Time Indication` - .page(url(__dirname, '../../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const TIMELINE_VIEWS = ['timelineDay', 'timelineWeek', 'timelineMonth']; - -test('Current time indicator should be placed correctly when there are many groups and orientation is horizontal', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of ['day', 'week']) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `current-time-indicator-in-${view}-with-many-groups.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - currentDate: new Date(2021, 7, 1), - height: 400, - width: 700, - startDayHour: 5, - indicatorTime: new Date(2021, 7, 1, 6), - currentView: 'day', - views: ['day', 'week'], - groups: ['groupId'], - resources: [{ - fieldExpr: 'groupId', - label: 'group', - dataSource: [ - { text: 'Group 1', id: 1 }, - { text: 'Group 2', id: 2 }, - { text: 'Group 3', id: 3 }, - { text: 'Group 4', id: 4 }, - { text: 'Group 5', id: 5 }, - { text: 'Group 6', id: 6 }, - ], - }], - }); -}); - -[ - 'none', - 'vertical', - 'horizontal', -].forEach((grouping) => { - [ - { view: 'day', cellDuration: 240 }, - { view: 'week', cellDuration: 240 }, - { view: 'timelineDay', cellDuration: 360 }, - { view: 'timelineWeek', cellDuration: 360 }, - // NOTE: cellDuration doesn't affect the timelineMonth view. - { view: 'timelineMonth', cellDuration: 60 }, - ].forEach(({ view, cellDuration }) => { - [ - [0, 24], - [6, 18], - ].forEach(([startDayHour, endDayHour]) => { - [ - '2023-12-03T00:00:00', - '2023-12-03T06:30:00', - '2023-12-03T12:00:00', - '2023-12-03T17:30:00', - '2023-12-03T23:59:59', - ].forEach((indicatorTime) => { - // NOTE: Due the technical reasons we cannot test these cases by testcafe here. - if (grouping === 'horizontal' && TIMELINE_VIEWS.includes(view)) { - return; - } - - // NOTE: The indicatorTime options works incorrectly - // in the 'timelineMonth' view with startDayHour/endDayHour. - if (view === 'timelineMonth' && startDayHour !== 0 && endDayHour !== 24) { - return; - } - - test(` -Current time indicator should be rendered correctly ( -view: ${view}, -now: ${indicatorTime}, -grouping: ${grouping}, -startDayHour: ${startDayHour}, -endDayHour: ${endDayHour} -)`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await testScreenshot( - t, - takeScreenshot, - `current-time-indicator_${view}_${indicatorTime.replace(/:/g, '-')}_g-${grouping}_${startDayHour}_${endDayHour}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - const additionalOptions = grouping === 'none' - ? { - views: [{ - type: view, - name: 'TEST_VIEW', - }], - } - : { - views: [{ - type: view, - name: 'TEST_VIEW', - groupOrientation: grouping, - }], - groups: ['any'], - resources: [{ - fieldExpr: 'any', - dataSource: [ - { text: 'Group_0', id: 0 }, - { text: 'Group_1', id: 1 }, - ], - }], - }; - - await createWidget('dxScheduler', { - dataSource: [], - currentView: 'TEST_VIEW', - shadeUntilCurrentTime: true, - currentDate: indicatorTime, - startDayHour, - endDayHour, - indicatorTime, - cellDuration, - ...additionalOptions, - }); - }); - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png deleted file mode 100644 index f49faf14923d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-day-with-many-groups (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png deleted file mode 100644 index fe26ba74e93e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator-in-week-with-many-groups (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 158db08be506..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index 19070b9943ef..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 1405a6ac4cc6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 59feeccb7771..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 5dcf8985f1e7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 57d0e68e23bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 455a7cb6d17d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index 7c4c37190a90..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 3b777e0c11fd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index af477a9efd91..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 92581490ff77..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index b5b9cd14c64b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 0409cc8efee4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index 2323300e96ed..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index b902e69fffdc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index a56982b6ea19..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 11a0605c2bfc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index fffb2c3b670b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index b3b9a8f29a79..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index c6a9a7de51a2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 7e8ae3465e10..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index f8ae242ba786..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 8cd32c2041d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index e4e129798f76..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 78aa1f90fcf4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index c9157f37cbf7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 3d0a7ba82030..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index f5c05b03c4dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index a6726d6e7eb2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index e539bc140584..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_day_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 22169dc41bb7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 993ee46fceac..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index aa7eec857954..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index ed5c60a8157c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 91d2d3dcc960..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 2890a400f562..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index ac125c52364a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 9bf475a45cf6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 0a31ac30ea38..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 571183cd627f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 717f9157b611..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index dcf95723a436..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 0f4c83cb2df6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index d7f9c2ad6eec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 425fd227583b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 9fab9d9d53ac..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 5798d5932292..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index f39f9717f4d6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index b8a79ba55206..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 0908b7b948f5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineDay_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index e413e7c33e60..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index d1e781c7f5a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index a016b9f8e80b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 334c79a83dc2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 88488cf294a5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 1a8c5e715860..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index e2199db31bfd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 2f4c447f0fd7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index e9a837dea37e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineMonth_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 04106e6f1c7e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 69a9236c4d08..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 0e18ef06cab3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index df36f46c0d1a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 5a3237bdec76..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 2c2984afc657..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 4a0b8fd6780a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 43e0b9ce6f6a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 7f52fcda39bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 8bce44896c96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index e81987daea26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 7f9c8249196a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 2ab6c907181e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 9f8ae666a8ae..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 54a44a0a0522..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index cbdccfefb93c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 839563f6fe4b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index e1d279940dff..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 7112c1cad2b4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 777b68bc75f7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_timelineWeek_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index b62dfd396a85..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index fcfb6eb0abd6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 0ff53028ee51..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index cb35f724151f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 54c44d86587b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 77528e459746..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T00-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 8679e4045c8f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index cf63519d9f9c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 9c477e8488dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 2285cb6f8ca6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 7dcc1dc0b520..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 0440330a1abb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T06-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index aa6c294d7fec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index cc8b01714fb6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index b924e78cee2a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index a067944c46dd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 4d8fc505bd45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 74b5e7163cc5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T12-00-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index e008eaf5f6f3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index 0ac330f13a98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 246868672469..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 272cbcfcafcf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index cef74682ddcf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index 9756c55402a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T17-30-00_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png deleted file mode 100644 index 9d14aa2c82a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png deleted file mode 100644 index 4962eede8b50..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-horizontal_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png deleted file mode 100644 index 721d0caf4260..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png deleted file mode 100644 index 0ab91ed4c881..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-none_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png deleted file mode 100644 index 12bb680db982..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_0_24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png deleted file mode 100644 index c653600cc086..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/current-time-indicator_week_2023-12-03T23-59-59_g-vertical_6_18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 857162081f26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index facad2727f52..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index b52c8a7d3516..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=false-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 857162081f26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index facad2727f52..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 54174761b001..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-day-crossScrolling=true-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 44a1a76cdeec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 189c1867a96f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 189c1867a96f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=false-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 44a1a76cdeec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 189c1867a96f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 189c1867a96f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineDay-crossScrolling=true-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 75e334fc18f9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index b70879056187..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 2bbf5d162759..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=false-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 75e334fc18f9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index b70879056187..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 2bbf5d162759..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineMonth-crossScrolling=true-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 446a79e03f87..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 9e2e44ada622..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 2d7fe75817c4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=false-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 446a79e03f87..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 9e2e44ada622..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 2d7fe75817c4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-timelineWeek-crossScrolling=true-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png deleted file mode 100644 index 9ad147b0eb23..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 3b9a46a24bec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 3cdd0b058a4f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=false-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png deleted file mode 100644 index 9ad147b0eb23..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 38b5274ced1c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png deleted file mode 100644 index 114e355c9b20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-in-week-crossScrolling=true-vertical-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png deleted file mode 100644 index c0d53fa47e16..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png deleted file mode 100644 index cbedbc14a593..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-end-with-current-time-indicator (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png deleted file mode 100644 index 4ba67ea48a26..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png deleted file mode 100644 index ef5ceaeb7028..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/etalons/shader-virtual-scrolling-week-start-with-current-time-indicator (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shader.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shader.ts deleted file mode 100644 index d55b100546f7..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shader.ts +++ /dev/null @@ -1,164 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Current Time Indication: Shader` - .page(url(__dirname, '../../../../container.html')); - -const views = ['day', 'week', 'timelineDay', 'timelineWeek', 'timelineMonth']; -const style = ` -.dx-scheduler-date-time-shader-top::before, -.dx-scheduler-date-time-shader-bottom::before, -.dx-scheduler-timeline .dx-scheduler-date-time-shader::before, -.dx-scheduler-date-time-shader-all-day { - background-color: red !important; -}`; - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - dataSource: [], - currentDate: new Date(2021, 7, 1), - height: 400, - width: 700, - startDayHour: 5, - indicatorTime: new Date(2021, 7, 1, 6), - currentView: 'day', - resources: [{ - fieldExpr: 'priorityId', - dataSource: [ - { - text: 'Low Priority', - id: 0, - color: '#24ff50', - }, { - text: 'High Priority', - id: 1, - color: '#ff9747', - }, - ], - label: 'Priority', - }], - shadeUntilCurrentTime: true, - ...additionalProps, - }); -}; - -[false, true].forEach((crossScrollingEnabled) => { - test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `shader-in-${view}-crossScrolling=${crossScrollingEnabled}.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(style); - - await createScheduler({ - views, - crossScrollingEnabled, - }); - }); - - test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled} and horizontal grouping is used`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `shader-in-${view}-crossScrolling=${crossScrollingEnabled}-horizontal-grouping.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(style); - - await createScheduler({ - views: [{ - type: 'day', - groupOrientation: 'horizontal', - }, { - type: 'week', - groupOrientation: 'horizontal', - }, { - type: 'tiemlineDay', - groupOrientation: 'horizontal', - }, { - type: 'timelineWeek', - groupOrientation: 'horizontal', - }, { - type: 'timelineMonth', - groupOrientation: 'horizontal', - }], - crossScrollingEnabled, - groups: ['priorityId'], - }); - }); - - test(`Shader should be displayed correctly when crossScrollingEnabled=${crossScrollingEnabled} and vertical grouping is used`, async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - await scheduler.option('currentView', view); - - await testScreenshot( - t, - takeScreenshot, - `shader-in-${view}-crossScrolling=${crossScrollingEnabled}-vertical-grouping.png`, - { element: scheduler.workSpace }, - ); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(style); - - await createScheduler({ - views: [{ - type: 'day', - groupOrientation: 'vertical', - }, { - type: 'week', - groupOrientation: 'vertical', - }, { - type: 'tiemlineDay', - groupOrientation: 'vertical', - }, { - type: 'timelineWeek', - groupOrientation: 'vertical', - }, { - type: 'timelineMonth', - groupOrientation: 'vertical', - }], - crossScrollingEnabled, - groups: ['priorityId'], - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.ts deleted file mode 100644 index 7df681256759..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/timeIndication/shaderVirtualScrolling.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { insertStylesheetRulesToPage } from '../../../../../helpers/domUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Current Time Indication: Shader with Virtual Scrolling` - .page(url(__dirname, '../../../../container.html')) - .beforeEach(async (t) => { - await t.resizeWindow(2560, 600); - }); - -const style = ` -.dx-scheduler-date-time-shader-top::before, -.dx-scheduler-date-time-shader-bottom::before, -.dx-scheduler-timeline .dx-scheduler-date-time-shader::before, -.dx-scheduler-date-time-shader-all-day { - background-color: red !important; -}`; - -const resources = [ - { text: 'Room 1', id: 1, color: '#cb6bb2' }, - { text: 'Room 2', id: 2, color: '#56ca85' }, - { text: 'Room 3', id: 3, color: '#1e90ff' }, - { text: 'Room 4', id: 4, color: '#ff9747' }, - { text: 'Room 5', id: 5, color: '#ff6a00' }, - { text: 'Room 6', id: 6, color: '#ffc0cb' }, -]; - -test('Should render shader correct with virtual scrolling without current time indicator', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'shader-virtual-scrolling-week-start.png', - ); - - await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); - - await testScreenshot( - t, - takeScreenshot, - 'shader-virtual-scrolling-week-end.png', - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(style); - - await createWidget('dxScheduler', { - dataSource: [], - currentView: 'week', - views: ['week'], - groups: ['roomId'], - resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], - startDayHour: 8, - endDayHour: 18, - currentDate: new Date(2025, 9, 15), - height: 400, - shadeUntilCurrentTime: true, - scrolling: { mode: 'virtual' }, - }); -}); - -test('Should render shader correctly with virtual scrolling and current time indicator', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'shader-virtual-scrolling-week-start-with-current-time-indicator.png', - ); - - await scheduler.scrollTo(new Date(2025, 9, 15, 17, 30), { roomId: 6 }); - - await testScreenshot( - t, - takeScreenshot, - 'shader-virtual-scrolling-week-end-with-current-time-indicator.png', - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(style); - - await createWidget('dxScheduler', { - dataSource: [], - currentView: 'week', - views: ['week'], - groups: ['roomId'], - resources: [{ fieldExpr: 'roomId', dataSource: resources, label: 'Room' }], - startDayHour: 8, - endDayHour: 18, - currentDate: new Date(2025, 9, 15), - indicatorTime: new Date(2025, 9, 15, 17, 30), - height: 400, - shadeUntilCurrentTime: true, - scrolling: { mode: 'virtual' }, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/crossScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/crossScrolling.ts deleted file mode 100644 index 11ac39245b7b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/crossScrolling.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; - -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: View with cross-scrolling` - .page(url(__dirname, '../../../../container.html')); - -test('Scrollable synchronization should work after changing current date (T1027231)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.option('currentDate', new Date(2021, 4, 5)); - await scheduler.scrollTo(new Date(2021, 4, 15), { priorityId: 2 }); - - await testScreenshot(t, takeScreenshot, 'cross-scrolling-sync.png', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - views: [{ - type: 'week', - name: 'Horizontal Grouping', - groupOrientation: 'horizontal', - cellDuration: 30, - intervalCount: 2, - }], - currentView: 'Horizontal Grouping', - crossScrollingEnabled: true, - currentDate: new Date(2021, 3, 21), - groups: ['priorityId'], - resources: [{ - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, - ], - label: 'Priority', - }], - height: 600, - }); -}); - -test('Scrollable should be prepared correctly after change visibility (T1032171)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.option('visible', true); - await scheduler.scrollTo(new Date(2021, 1, 12)); - - await testScreenshot(t, takeScreenshot, 'cross-scrolling-sync-visibility.png', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - views: ['timelineMonth'], - currentView: 'timelineMonth', - currentDate: new Date(2021, 1, 2), - firstDayOfWeek: 0, - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - visible: false, - height: 400, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/allDay.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/allDay.ts deleted file mode 100644 index 95070c056499..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/allDay.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout:Views:Day:AllDay` - .page(url(__dirname, '../../../../../container.html')); - -const enableNativeScroll = ClientFunction(() => { - ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().option('useNative', true); -}); - -[1, 2].forEach((intervalCount) => { - ['horizontal', 'vertical'].forEach((groupOrientation) => { - [true, false].forEach((showAllDayPanel) => { - const testName = `Day view with interval and crossScrollingEnabled(groupOrientation='${groupOrientation}', showAllDayPanel='${showAllDayPanel}', intervalCount='${intervalCount}') - layout test`; - - test(testName, async (t) => { - const scheduler = new Scheduler('#container'); - await enableNativeScroll(); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const pngName = `day-orientation=${groupOrientation}-allDay=${showAllDayPanel}-interval=${intervalCount}.png`; - - await testScreenshot(t, takeScreenshot, pngName, { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - resources: [{ - fieldExpr: 'roomId', - dataSource: [{ - text: 'Room 1', - id: 1, - }, { - text: 'Room 2', - id: 2, - }], - label: 'Room', - }], - dataSource: [], - views: [{ - name: 'dayView', - type: 'day', - intervalCount, - groupOrientation, - }], - currentView: 'dayView', - currentDate: new Date(2021, 2, 25), - height: 600, - groups: ['roomId'], - showAllDayPanel, - crossScrollingEnabled: true, - })); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png deleted file mode 100644 index c202f8e493e0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png deleted file mode 100644 index 6b60a62a92f8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=false-interval=2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png deleted file mode 100644 index aca24e66526d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png deleted file mode 100644 index 897425a72f47..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=horizontal-allDay=true-interval=2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png deleted file mode 100644 index 4072554376b5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png deleted file mode 100644 index 4dae4814c633..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=false-interval=2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png deleted file mode 100644 index 506cbc4fe40c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png deleted file mode 100644 index 689181ec1f72..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/day/etalons/day-orientation=vertical-allDay=true-interval=2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png deleted file mode 100644 index ad1a780bac99..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png deleted file mode 100644 index 3d6b709473fd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/cross-scrolling-sync-visibility (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png deleted file mode 100644 index 5d6288dbb661..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/etalons/work-week-first-day-of-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/firstDayOfWeek.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/firstDayOfWeek.ts deleted file mode 100644 index 8adf527ee6e0..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/firstDayOfWeek.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: View with first day of week` - .page(url(__dirname, '../../../../container.html')); - -test('WorkWeek should generate correct start view date', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'work-week-first-day-of-week.png', { - element: scheduler.element, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - views: ['workWeek'], - currentView: 'workWeek', - firstDayOfWeek: 1, - currentDate: new Date(2021, 11, 12), - height: 600, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png deleted file mode 100644 index 80ff0753797b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png deleted file mode 100644 index 7ea80a893825..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-timelineWorkWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png deleted file mode 100644 index 05a5cd1e21a3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png deleted file mode 100644 index 2b9b3542b296..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/complex-start-date-in-workWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png deleted file mode 100644 index ddba14f284f4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png deleted file mode 100644 index 941e6a9dce6b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-month-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png deleted file mode 100644 index 91bb7c28d090..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png deleted file mode 100644 index bbc15e90d15e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineDay-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png deleted file mode 100644 index 919739940db2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png deleted file mode 100644 index 267d2f020309..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineMonth-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png deleted file mode 100644 index 2077d84dc5cd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png deleted file mode 100644 index 98c4538f663f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWeek-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png deleted file mode 100644 index 1ce66b94800e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png deleted file mode 100644 index 4b9da67af2bc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-timelineWorkWeek-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png deleted file mode 100644 index ad3803c4f1d4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png deleted file mode 100644 index 4d73995ac482..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-week-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png deleted file mode 100644 index 214171fbf7b3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png deleted file mode 100644 index 240cad025fb6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/etalons/start-date-in-workWeek-with-form (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.ts deleted file mode 100644 index 7e2912606670..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/intervalCount/viewsWithStartDate.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Layout: Views: IntervalCount with StartDate` - .page(url(__dirname, '../../../../../container.html')); - -[{ - view: 'timelineDay', - currentDate: new Date(2021, 4, 11), - startDate: new Date(2021, 4, 8), - intervalCount: 6, -}, { - view: 'week', - currentDate: new Date(2021, 4, 11), - startDate: new Date(2021, 3, 12), - intervalCount: 8, -}, { - view: 'timelineWeek', - currentDate: new Date(2021, 4, 11), - startDate: new Date(2021, 3, 12), - intervalCount: 8, -}, { - view: 'workWeek', - currentDate: new Date(2021, 4, 11), - startDate: new Date(2021, 3, 12), - intervalCount: 8, -}, { - view: 'timelineWorkWeek', - currentDate: new Date(2021, 4, 11), - startDate: new Date(2021, 3, 12), - intervalCount: 8, -}, { - view: 'month', - currentDate: new Date(2020, 5, 11), - startDate: new Date(2020, 3, 8), - intervalCount: 6, -}, { - view: 'timelineMonth', - currentDate: new Date(2020, 5, 11), - startDate: new Date(2020, 3, 8), - intervalCount: 6, -}].forEach(({ - view, currentDate, startDate, intervalCount, -}) => { - test(`startDate should work in ${view} view`, async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `start-date-in-${view}.png`); - - await t.doubleClick(scheduler.getDateTableCell(0, 0)); - - await testScreenshot(t, takeScreenshot, `start-date-in-${view}-with-form.png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - views: [{ - type: view, - intervalCount, - startDate, - }], - currentView: view, - currentDate, - dataSource: [], - crossScrollingEnabled: true, - })); -}); - -[{ - view: 'week', - currentDate: new Date(2020, 9, 6), - startDate: new Date(2020, 8, 16), - intervalCount: 3, -}, { - view: 'timelineWeek', - currentDate: new Date(2020, 9, 6), - startDate: new Date(2020, 8, 16), - intervalCount: 3, -}, { - view: 'workWeek', - currentDate: new Date(2020, 9, 6), - startDate: new Date(2020, 8, 16), - intervalCount: 3, -}, { - view: 'timelineWorkWeek', - currentDate: new Date(2020, 9, 6), - startDate: new Date(2020, 8, 16), - intervalCount: 3, -}].forEach(({ - view, currentDate, startDate, intervalCount, -}) => { - test(`startDate should work in ${view} view when it indicates the same week as the start as currentDate`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, `complex-start-date-in-${view}.png`); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - views: [{ - type: view, - intervalCount, - startDate, - }], - currentView: view, - currentDate, - dataSource: [], - crossScrollingEnabled: true, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png deleted file mode 100644 index 5922e63d333a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/etalons/week-without-all-day-panel (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/withoutAllDay.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/withoutAllDay.ts deleted file mode 100644 index b088a62b4e91..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/material/withoutAllDay.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Material theme without all-day panel` - .page(url(__dirname, '../../../../../container.html')); - -// visual: material.blue.light -test('Week view without all-day panel should be rendered correctly', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, 'week-without-all-day-panel.png', { - element: scheduler.workSpace, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [], - currentDate: new Date(2020, 6, 15), - views: ['week'], - currentView: 'week', - height: 500, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/crossScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/crossScrolling.ts deleted file mode 100644 index 6d39e2ea6df4..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/crossScrolling.ts +++ /dev/null @@ -1,69 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler Timeline: Cross-Scrolling` - .page(url(__dirname, '../../../../../container.html')); - -test('Timeline should have Cross-Scrolling enabled', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(await scheduler.workspaceHasBothScrollbar) - .ok(); -}).before(async () => { - await createWidget('dxScheduler', { - height: 400, - width: 800, - currentDate: new Date(2021, 1, 2), - dataSource: [], - views: ['timelineDay'], - currentView: 'timelineDay', - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - showAllDayPanel: false, - groups: ['humanId'], - resources: [{ - fieldExpr: 'humanId', - dataSource: [{ - id: 0, - text: 'David Carter', - color: '#74d57b', - }, { - id: 1, - text: 'Emma Lewis', - color: '#1db2f5', - }, { - id: 2, - text: 'Noah Hill', - color: '#f5564a', - }, { - id: 3, - text: 'William Bell', - color: '#97c95c', - }, { - id: 4, - text: 'Jane Jones', - color: '#ffc720', - }, { - id: 5, - text: 'Violet Young', - color: '#eb3573', - }, { - id: 6, - text: 'Samuel Perry', - color: '#a63db8', - }, { - id: 7, - text: 'Luther Murphy', - color: '#ffaa66', - }, { - id: 8, - text: 'Craig Morris', - color: '#2dcdc4', - }], - label: 'Employee', - }], - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png deleted file mode 100644 index 5b58ce26b639..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/etalons/timeline-month-change-current-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/grouping.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/grouping.ts deleted file mode 100644 index 50f56e0f044b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/grouping.ts +++ /dev/null @@ -1,37 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler Timeline: Grouping` - .page(url(__dirname, '../../../../../container.html')); - -[ - 'timelineDay', - 'timelineWeek', - 'timelineWorkWeek', -].forEach((view) => { - test(`${view} view - header panel should contain group rows if horizontal grouping`, async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(await scheduler.headerPanel.groupCells.count) - .eql(2); - }).before(async () => { - await createWidget('dxScheduler', { - groupOrientation: 'horizontal', - views: [{ - type: 'timelineDay', - groupOrientation: 'horizontal', - }], - currentView: 'timelineDay', - groups: ['one'], - resources: [{ - fieldExpr: 'one', - dataSource: [ - { id: 1, text: 'a' }, - { id: 2, text: 'b' }, - ], - }], - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/month.ts b/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/month.ts deleted file mode 100644 index 95ba1e21d0da..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/layout/views/timeline/month.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../../../helpers/createWidget'; -import url from '../../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Layout Views: Timeline Month` - .page(url(__dirname, '../../../../../container.html')); - -test('Header cells should be aligned with date-table cells in timeline-month when current date changes', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.option('currentDate', new Date(2020, 11, 1)); - - await testScreenshot(t, takeScreenshot, 'timeline-month-change-current-date.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - currentDate: new Date(2020, 10, 1), - currentView: 'timelineMonth', - height: 600, - views: ['timelineMonth'], - crossScrollingEnabled: true, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/loadingPanel.ts b/e2e/testcafe-devextreme/tests/scheduler/common/loadingPanel.ts deleted file mode 100644 index c5f0fb9e0032..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/loadingPanel.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../helpers/themeUtils'; - -const SCHEDULER_SELECTOR = '#container'; -const INITIAL_APPOINTMENT_TITLE = 'appointment'; -const ADDITIONAL_TITLE_TEXT = '-updated'; - -fixture.disablePageReloads`Scheduler loading panel` - .page(url(__dirname, '../../container.html')); - -test('Save appointment loading panel screenshot', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); - const { appointmentPopup } = scheduler; - - await t - .doubleClick(appointment.element) - .click(appointmentPopup.textEditor.element) - .typeText(appointmentPopup.textEditor.element, ADDITIONAL_TITLE_TEXT) - .click(appointmentPopup.saveButton.element); - - await testScreenshot(t, takeScreenshot, 'save-appointment-loading-panel-screenshot.png', { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - id: 1, - text: INITIAL_APPOINTMENT_TITLE, - startDate: new Date(2021, 2, 29, 9, 30), - endDate: new Date(2021, 2, 29, 11, 30), - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 29), - startDayHour: 9, - endDayHour: 14, - height: 600, - onAppointmentUpdating: (e) => { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - e.cancel = new Promise((resolve, reject) => {}); - }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/diferrentInvtervalCounts.ts b/e2e/testcafe-devextreme/tests/scheduler/common/month/diferrentInvtervalCounts.ts deleted file mode 100644 index 7c67ba2ffda3..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/month/diferrentInvtervalCounts.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: different intervalCount option's values` - .page(url(__dirname, '../../../container.html')); - -test('Interval count: 1, February of 2021', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot(t, takeScreenshot, 'month-february-2021.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - views: [{ - type: 'month', - intervalCount: 1, - }], - currentView: 'month', - firstDayOfWeek: 1, - currentDate: new Date(2021, 1, 1), -})); - -test('Interval count: 12', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - await scheduler.scrollTo(new Date(2024, 6, 1)); // scroll to last row - - await testScreenshot(t, takeScreenshot, 'month-interval-count-12.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - views: [{ - type: 'month', - intervalCount: 12, - }], - height: 600, - currentView: 'month', - currentDate: new Date(2023, 6, 1), -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png deleted file mode 100644 index f8995c898fd9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-february-2021 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png deleted file mode 100644 index a1dd7f0312dd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-interval-count-12 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png deleted file mode 100644 index c50b130c0330..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 2 rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png deleted file mode 100644 index 44dc2965ecbe..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans 3 rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png deleted file mode 100644 index 61d03509ce83..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=false, text=Appointment spans all rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png deleted file mode 100644 index f1212ec1454d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 2 rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png deleted file mode 100644 index 561f51eb54e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans 3 rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png deleted file mode 100644 index f1af68439557..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment(rtl=true, text=Appointment spans all rows) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png deleted file mode 100644 index 359dd8432ec4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png deleted file mode 100644 index a9a50e551408..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-february(rtl=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png deleted file mode 100644 index 144b7cad3e41..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png deleted file mode 100644 index 5c7d68db011d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-january(rtl=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png deleted file mode 100644 index ee7d11664c80..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=false) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png deleted file mode 100644 index 436f497c7078..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-appointment-several-months-march(rtl=true) (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png deleted file mode 100644 index 8e40cb7803b0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-february (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png deleted file mode 100644 index a8e64791fee8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/month/etalons/month-long-recurrence-appointment-several-months-january (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/longAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/common/month/longAppointments.ts deleted file mode 100644 index 921a84667e25..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/month/longAppointments.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: long appointments in month view` - .page(url(__dirname, '../../../container.html')); - -[false, true].forEach((rtlEnabled) => { - [ - { - text: 'Appointment spans 3 rows', - startDate: new Date(2020, 0, 6), - endDate: new Date(2020, 0, 24), - }, { - text: 'Appointment spans all rows', - startDate: new Date(2019, 11, 29), - endDate: new Date(2020, 1, 8, 15), - }, { - text: 'Appointment spans 2 rows', - startDate: new Date(2020, 0, 17), - endDate: new Date(2020, 0, 20), - }, - ].forEach((appointment) => { - test(`Long appointment should display valid on month view(rtl='${rtlEnabled}', text='${appointment.text}')`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `month-long-appointment(rtl=${rtlEnabled}, text=${appointment.text}).png`, - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .meta({ renovation: true }) - .before(async () => createWidget('dxScheduler', { - dataSource: [appointment], - views: ['month'], - currentView: 'month', - rtlEnabled, - currentDate: new Date(2020, 0, 1), - })); - }); -}); - -[false, true].forEach((rtlEnabled) => { - test(`Long appointment(several months) should display valid on month view(rtl='${rtlEnabled})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { toolbar, workSpace } = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - `month-long-appointment-several-months-january(rtl=${rtlEnabled}).png`, - { element: workSpace }, - ); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot( - t, - takeScreenshot, - `month-long-appointment-several-months-february(rtl=${rtlEnabled}).png`, - { element: workSpace }, - ); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot( - t, - takeScreenshot, - `month-long-appointment-several-months-march(rtl=${rtlEnabled}).png`, - { element: workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Text', - startDate: new Date(2020, 0, 6), - endDate: new Date(2020, 2, 10), - }], - views: ['month'], - currentView: 'month', - rtlEnabled, - currentDate: new Date(2020, 0, 1), - })); -}); - -test('Long recurrence appointment should display valid on month view', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const { toolbar, workSpace } = new Scheduler('#container'); - - await testScreenshot( - t, - takeScreenshot, - 'month-long-recurrence-appointment-several-months-january.png', - { element: workSpace }, - ); - - await t.click(toolbar.navigator.nextButton); - - await testScreenshot( - t, - takeScreenshot, - 'month-long-recurrence-appointment-several-months-february.png', - { element: workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Text', - startDate: new Date(2020, 0, 6), - endDate: new Date(2020, 0, 10), - recurrenceRule: 'FREQ=DAILY;INTERVAL=5', - }], - views: ['month'], - currentView: 'month', - currentDate: new Date(2020, 0, 1), -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/month/outOfDayHours.ts b/e2e/testcafe-devextreme/tests/scheduler/common/month/outOfDayHours.ts deleted file mode 100644 index d050185e437c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/month/outOfDayHours.ts +++ /dev/null @@ -1,48 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler: take into account start and end day hour` - .page(url(__dirname, '../../../container.html')); - -test('Should show appointment in month view', async (t) => { - const scheduler = new Scheduler('#container'); - await t.expect(scheduler.getAppointment('test').element.exists).ok(); -}).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-01T11:00:00', - endDate: '2024-01-01T12:00:00', - text: 'test', - }, - ], - startDayHour: 11, - endDayHour: 22, - currentDate: '2024-01-01', - views: [ - 'month', - 'timelineMonth', - ], - currentView: 'month', -})); - -test('Shouldn\'t show appointment in month view', async (t) => { - const scheduler = new Scheduler('#container'); - await t.expect(scheduler.getAppointment('test').element.exists).notOk(); -}).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2024-01-01T11:00:00', - endDate: '2024-01-01T12:00:00', - text: 'test', - }, - ], - startDayHour: 13, - endDayHour: 22, - currentDate: '2024-01-01', - views: [ - 'month', - 'timelineMonth', - ], - currentView: 'month', -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/navigator.ts b/e2e/testcafe-devextreme/tests/scheduler/common/navigator.ts deleted file mode 100644 index 1fc7718ed167..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/navigator.ts +++ /dev/null @@ -1,89 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler: Navigator` - .page(url(__dirname, '../../container.html')); - -const createScheduler = async (options = {}): Promise => { - await createWidget('dxScheduler', extend(options, { - dataSource: [], - currentDate: new Date(2017, 4, 18), - firstDayOfWeek: 1, - height: 600, - views: ['week', 'month'], - })); -}; - -test('Navigator can change week when current date interval is more than diff between current date and `max` (T830754)', async (t) => { - const { toolbar } = new Scheduler('#container'); - - // Navigation `next` must be enabled at default - - await t - .expect(toolbar.navigator.nextButton.hasClass('dx-state-disabled')).notOk(); - - // Navigation `next` must be disabled after change 1 week earlier - - await t - .click(toolbar.navigator.nextButton) - .expect(toolbar.navigator.nextButton.hasClass('dx-state-disabled')).ok(); -}).before(async () => createScheduler({ - max: new Date(2017, 4, 24), - currentView: 'week', -})); - -test('Navigator can change week when current date interval is more than diff between current date and `min` (T830754)', async (t) => { - const { toolbar } = new Scheduler('#container'); - - // Navigation `prev` must be enabled at default - - await t - .expect(toolbar.navigator.prevButton.hasClass('dx-state-disabled')).notOk(); - - // Navigation `prev` must be disabled after change 1 week later - - await t - .click(toolbar.navigator.prevButton) - .expect(toolbar.navigator.prevButton.hasClass('dx-state-disabled')).ok(); -}).before(async () => createScheduler({ - min: new Date(2017, 4, 13), - currentView: 'week', -})); - -test('Navigator can change month when current date interval is more than diff between current date and `max` (T830754)', async (t) => { - const { toolbar } = new Scheduler('#container'); - - // Navigation `next` must be enabled at default - - await t - .expect(toolbar.navigator.nextButton.hasClass('dx-state-disabled')).notOk(); - - // Navigation `next` must be disabled after change 1 week earlier - - await t - .click(toolbar.navigator.nextButton) - .expect(toolbar.navigator.nextButton.hasClass('dx-state-disabled')).ok(); -}).before(async () => createScheduler({ - max: new Date(2017, 5, 15), - currentView: 'month', -})); - -test('Navigator can change month when current date interval is more than diff between current date and `min` (T830754)', async (t) => { - const { toolbar } = new Scheduler('#container'); - - // Navigation `prev` must be enabled at default - - await t - .expect(toolbar.navigator.prevButton.hasClass('dx-state-disabled')).notOk(); - - // Navigation `prev` must be disabled after change 1 week later - - await t - .click(toolbar.navigator.prevButton) - .expect(toolbar.navigator.prevButton.hasClass('dx-state-disabled')).ok(); -}).before(async () => createScheduler({ - min: new Date(2017, 3, 28), - currentView: 'month', -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.ts b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.ts deleted file mode 100644 index 4565c9adef3a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/appointmentTooltip.timeZone.ts +++ /dev/null @@ -1,61 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Appointment tooltip with recurrence appointment and custom time zone` - .page(url(__dirname, '../../../container.html')); - -test('Time in appointment tooltip should has valid value in case with recurrence appointment and custom time zone(T848058)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointmentCount = await scheduler.getAppointmentCount(); - - for (let i = 0; i < appointmentCount; i += 1) { - await t - .click(scheduler.getAppointment('Stand-up meeting', i).element) - .expect(scheduler.appointmentTooltip.getListItem('Stand-up meeting').date.textContent) - .eql('8:30 AM - 8:45 AM'); - } -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Stand-up meeting', - startDate: '2017-05-22T15:30:00.000Z', - endDate: '2017-05-22T15:45:00.000Z', - recurrenceRule: 'FREQ=DAILY', - startDateTimeZone: 'America/Los_Angeles', - endDateTimeZone: 'America/Los_Angeles', - }], - views: ['week'], - currentView: 'week', - currentDate: new Date(2017, 4, 25), - startDayHour: 8, - timeZone: 'America/Los_Angeles', - height: 600, -})); - -test('The only one displayed part of recurrence appointment ' - + 'must have correct offset after DST(T1034216)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .click(scheduler.getAppointment('apt').element) - .expect(scheduler.appointmentTooltip.getListItem('apt').date.textContent) - .eql('December 2 12:00 PM - 1:00 PM'); -}).before(async () => createWidget('dxScheduler', { - timeZone: 'Europe/Moscow', - startDateTimeZoneExpr: 'TimeZone', - endDateTimeZoneExpr: 'TimeZone', - views: ['month', 'week'], - currentView: 'month', - currentDate: '2021-12-01', - dataSource: [ - { - text: 'apt', - startDate: '2021-09-01T01:00:00-07:00', - endDate: '2021-09-01T02:00:00-07:00', - recurrenceException: '', - recurrenceRule: 'FREQ=MONTHLY;BYDAY=WE,FR;BYSETPOS=1;UNTIL=20211231T235959Z', - TimeZone: 'America/Los_Angeles', - }, - ], - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/basic.ts b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/basic.ts deleted file mode 100644 index 4ec8956d6607..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/basic.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture`Rendering of the recurrence appointments in Scheduler ` - .page(url(__dirname, '../../../container.html')); - -// the drop cell is resolved 10px below the top edge of the dragged appointment, -// a grab at the vertical center leaves that point above the all-day panel -const DRAG_OFFSET_Y = 15; - -test('Drag-n-drop recurrence appointment between dateTable and allDay panel', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - const draggableAppointment = scheduler.getAppointment('Simple recurrence appointment'); - - await testScreenshot(t, takeScreenshot, 'basic-recurrence-appointment-init.png'); - - await t - .dragToElement( - draggableAppointment.element, - scheduler.getAllDayTableCell(0), - { speed: 0.5, offsetY: DRAG_OFFSET_Y }, - ) - .wait(300) - .expect(scheduler.getAppointmentCount()).eql(7) - .wait(500); - - await testScreenshot(t, takeScreenshot, 'basic-recurrence-appointment-after-drag.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createScheduler({ - dataSource, - startDayHour: 1, - recurrenceEditMode: 'series', -})); - -test('Appointments in DST should not have offset when ' - + 'recurring appointment timezoine not equal to scheduler timezone', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentByIndex(0).date.time) - .eql('2:00 PM - 2:30 PM') - - .expect(scheduler.getAppointmentByIndex(1).date.time) - .eql('2:00 PM - 2:30 PM'); - - await scheduler.option('currentDate', new Date(2021, 10, 1)); - - await t - .expect(scheduler.getAppointmentByIndex(0).date.time) - .eql('2:00 PM - 2:30 PM') - - .expect(scheduler.getAppointmentByIndex(1).date.time) - .eql('2:00 PM - 2:30 PM'); -}).before(async () => createScheduler({ - timeZone: 'America/New_York', - dataSource: [ - { - text: 'Recurrence', - startDate: new Date('2021-03-13T19:00:00.000Z'), - endDate: new Date('2021-03-13T19:30:00.000Z'), - recurrenceRule: 'FREQ=DAILY;COUNT=1000', - startDateTimeZone: 'America/New_York', - endDateTimeZone: 'America/New_York', - }, - ], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 13), - firstDayOfWeek: 1, -})); - -test('Appointments in end of DST should have correct offset', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentByIndex(5).date.time) - .eql('11:00 AM - 11:30 AM') - - .expect(scheduler.getAppointmentByIndex(6).date.time) - .eql('12:00 PM - 12:30 PM'); -}).before(async () => createScheduler({ - timeZone: 'America/Phoenix', - dataSource: [ - { - text: 'Recurrence', - startDate: new Date('2021-03-13T19:00:00.000Z'), - endDate: new Date('2021-03-13T19:30:00.000Z'), - recurrenceRule: 'FREQ=DAILY;COUNT=1000', - startDateTimeZone: 'America/New_York', - endDateTimeZone: 'America/New_York', - }, - ], - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 10, 1), - firstDayOfWeek: 1, -})); - -test('Appointment displayed without errors if it was only one DST in year(T1037853)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.getAppointmentByIndex(0).element.exists) - .eql(true); -}).before(async () => createScheduler({ - timeZone: 'America/Los_Angeles', - dataSource: [{ - text: 'Recurrence', - startDate: new Date(1942, 3, 29, 0), - endDate: new Date(1942, 3, 29, 1), - recurrenceRule: 'FREQ=DAILY;COUNT=2', - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(1942, 3, 29), - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/dialog.ts b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/dialog.ts deleted file mode 100644 index 927f82530577..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/dialog.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -const SCHEDULER_SELECTOR = '#container'; -const INITIAL_APPOINTMENT_TITLE = 'appointment'; - -fixture.disablePageReloads`Recurrence dialog` - .page(url(__dirname, '../../../container.html')); - -test('Recurrence edit dialog screenshot', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); - - await t.doubleClick(appointment.element); - - await testScreenshot(t, takeScreenshot, 'recurrence-edit-dialog-screenshot.png', { element: scheduler.element }); - - await t - .expect(Scheduler.getEditRecurrenceDialog().element.exists) - .ok() - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - id: 1, - text: INITIAL_APPOINTMENT_TITLE, - startDate: new Date(2021, 2, 29, 9, 30), - endDate: new Date(2021, 2, 29, 11, 30), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 29), - startDayHour: 9, - endDayHour: 14, - height: 600, -})); - -test('Recurrence delete dialog screenshot', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(INITIAL_APPOINTMENT_TITLE); - - await t - // act - .click(appointment.element) - // assert - .expect(scheduler.appointmentTooltip.element.exists) - .ok() - // act - .click(scheduler.appointmentTooltip.deleteButton); - - await testScreenshot(t, takeScreenshot, 'recurrence-delete-dialog-screenshot.png', { element: scheduler.element }); - - await t - // assert - .expect(Scheduler.getDeleteRecurrenceDialog().element.exists) - .ok() - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - id: 1, - text: INITIAL_APPOINTMENT_TITLE, - startDate: new Date(2021, 2, 29, 9, 30), - endDate: new Date(2021, 2, 29, 11, 30), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }], - views: ['day'], - currentView: 'day', - currentDate: new Date(2021, 2, 29), - startDayHour: 9, - endDayHour: 14, - height: 600, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png deleted file mode 100644 index 60458f7b1ec2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-after-drag (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png deleted file mode 100644 index 4078941c6e1e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/basic-recurrence-appointment-init (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png deleted file mode 100644 index e871e99b5098..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-delete-dialog-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png deleted file mode 100644 index 4be5cd6e9983..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/etalons/recurrence-edit-dialog-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/init/widget.setup.ts deleted file mode 100644 index 5411bc0c058e..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/recurrences/init/widget.setup.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -export default async (options = {}): Promise => createWidget('dxScheduler', extend({ - currentDate: new Date(2020, 1, 9), - views: ['week'], - currentView: 'week', - groupByDate: true, - dataSource: [], - width: 900, -}, options)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/rerenderOnResize.ts b/e2e/testcafe-devextreme/tests/scheduler/common/rerenderOnResize.ts deleted file mode 100644 index 3dc3756cfc03..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/rerenderOnResize.ts +++ /dev/null @@ -1,64 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { getStyleAttribute, setStyleAttribute } from '../../../helpers/domUtils'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Re-render on resize` - .page(url(__dirname, '../../container.html')); - -const createScheduler = async (container, options?): Promise => createWidget('dxScheduler', { - currentDate: new Date(2020, 8, 7), - startDayHour: 8, - endDayHour: 20, - cellDuration: 60, - scrolling: { - mode: 'virtual', - }, - currentView: 'Timeline', - views: [{ - type: 'timelineWorkWeek', - name: 'Timeline', - groupOrientation: 'vertical', - }], - dataSource: [{ - startDate: new Date(2020, 8, 7, 8), - endDate: new Date(2020, 8, 7, 9), - text: 'test', - }], - ...options, -}, container); - -test.meta({ browserSize: [800, 400] })('Appointment should re-rendered on window resize-up (T1139566)', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('test'); - - await setStyleAttribute(element, 'background-color: red;'); - await t.expect(await getStyleAttribute(element)).match(/transform: translate\(0px, 0px\); width: \d+\.\d+px; height: \d+px; background-color: red;/); -}).before(async () => createScheduler('#container', { currentView: 'workWeek' })); - -test.meta({ browserSize: [300, 300] })('Appointment should not re-rendered on window resize when width and height not set (T1139566)', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('test'); - - await setStyleAttribute(element, 'background-color: red;'); - - await t.expect(await getStyleAttribute(element)).eql('transform: translate(0px, 30px); width: 200px; height: 70px; background-color: red;'); -}).before(async () => createScheduler('#container')); - -test.meta({ browserSize: [300, 400] })('Appointment should not re-rendered on window resize when width and height have percent value (T1139566)', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('test'); - - await setStyleAttribute(element, 'background-color: red;'); - - await t.expect(await getStyleAttribute(element)).eql('transform: translate(0px, 30px); width: 200px; height: 70px; background-color: red;'); -}).before(async () => createScheduler('#container', { width: '100%', height: '100%' })); - -test.meta({ browserSize: [300, 300] })('Appointment should not re-rendered on window resize when width and height have static value (T1139566)', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('test'); - - await setStyleAttribute(element, 'background-color: red;'); - - await t.expect(await getStyleAttribute(element)).eql('transform: translate(0px, 30px); width: 200px; height: 61.7539px; background-color: red;'); -}).before(async () => createScheduler('#container', { width: 600, height: 400 })); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1255474.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1255474.ts deleted file mode 100644 index 46d0adf7e5dd..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1255474.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../../helpers/machineTimezones'; -import url from '../../../../helpers/getPageUrl'; -import createScheduler from './init/widget.setup'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Resize appointment that cross DTC time` - .page(url(__dirname, '../../../container.html')); - -const appointmentText = 'Book Flights to San Fran for Sales Trip'; - -getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])('Resize appointment that cross DTC time', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment(appointmentText); - - await t - .drag(appointment.resizableHandle.right, 100, 0) - .drag(appointment.resizableHandle.right, -100, 0); - - await testScreenshot( - t, - takeScreenshot, - 'T1255474-resize-all-day-appointment.png', - { element: scheduler.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createScheduler({ - timeZone: 'America/Los_Angeles', - views: ['week'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - allDayPanelMode: 'allDay', - height: 600, - width: 800, - firstDayOfWeek: 7, - dataSource: [{ - text: appointmentText, - startDate: new Date('2021-03-28T17:00:00.000Z'), - endDate: new Date('2021-03-28T18:00:00.000Z'), - TimeZone: 'Europe/Belgrade', - allDay: true, - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1294528.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1294528.ts deleted file mode 100644 index 24f40018db30..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/T1294528.ts +++ /dev/null @@ -1,224 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../helpers/getPageUrl'; -import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../../helpers/machineTimezones'; -import createScheduler from './init/widget.setup'; - -fixture.disablePageReloads`Resize all day panel appointments` - .page(url(__dirname, '../../../container.html')); - -[true, false].forEach((rtlEnabled) => { - test(`Resize all day appointment rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - const text = 'Appointment: February 9, 2015, All day'; - const startDateExtendedText = 'Appointment: February 8, 2015 - February 9, 2015, All day'; - const endDateExtendedText = 'Appointment: February 9, 2015 - February 10, 2015, All day'; - - await t - .drag(right, 100, 0) - .expect(appointment.getAriaLabel()) - .eql(rtlEnabled ? startDateExtendedText : endDateExtendedText); - await t - .drag(right, -100, 0) - .expect(appointment.getAriaLabel()) - .eql(text); - await t - .drag(left, -100, 0) - .expect(appointment.getAriaLabel()) - .eql(rtlEnabled ? endDateExtendedText : startDateExtendedText); - await t - .drag(left, 100, 0) - .expect(appointment.getAriaLabel()) - .eql(text); - }).before(async () => createScheduler({ - currentDate: new Date(2015, 1, 9), - currentView: 'week', - firstDayOfWeek: 0, - rtlEnabled, - height: 400, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 9, 10), - allDay: true, - }], - })); - - getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])(`Shrink long appointment endDate rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - - // eslint-disable-next-line @typescript-eslint/no-unused-expressions - rtlEnabled - ? await t.drag(right, -100, 0) - : await t.drag(left, 100, 0); - await t.expect(appointment.getAriaLabel()) - .eql('Appointment: February 10, 2015, 12:00 AM - 10:00 AM'); - }).before(async () => createScheduler({ - currentDate: new Date(2015, 1, 9), - currentView: 'week', - firstDayOfWeek: 0, - rtlEnabled, - height: 400, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 10, 10), - }], - })); - - getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])(`Shrink long appointment startDate rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - - // eslint-disable-next-line @typescript-eslint/no-unused-expressions - rtlEnabled - ? await t.drag(left, 100, 0) - : await t.drag(right, -100, 0); - await t.expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 8:00 AM - February 10, 2015, 12:00 AM'); - }).before(async () => createScheduler({ - currentDate: new Date(2015, 1, 9), - currentView: 'week', - firstDayOfWeek: 0, - rtlEnabled, - height: 400, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 10, 10), - }], - })); - - getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])(`Resize long appointment endDate with offset rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - const drag = async () => (rtlEnabled - ? t.drag(left, 100, 0) - : t.drag(right, -100, 0)); - - await drag(); - await t - .expect(appointment.getAriaLabel()) - .eql('Appointment: March 30, 2021, 5:00 AM - March 31, 2021, 6:00 AM'); - await drag(); - await t - .expect(appointment.getAriaLabel()) - .eql('Appointment: March 30, 2021, 5:00 AM - 6:00 AM'); - }).before(async () => createScheduler({ - timeZone: 'Europe/Berlin', - dataSource: [{ - text: 'Appointment', - startDate: new Date('2021-03-30T03:00:00.000Z'), - endDate: new Date('2021-04-01T03:00:00.000Z'), - }], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - height: 400, - offset: 360, - rtlEnabled, - firstDayOfWeek: 0, - })); - - getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])(`Resize long appointment startDate with offset rtlEnabled=${rtlEnabled}`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - const drag = async () => (rtlEnabled - ? t.drag(right, -100, 0) - : t.drag(left, 100, 0)); - - await drag(); - await t - .expect(appointment.getAriaLabel()) - .eql('Appointment: March 30, 2021, 6:00 AM - April 1, 2021, 5:00 AM'); - await drag(); - await t - .expect(appointment.getAriaLabel()) - .eql('Appointment: March 31, 2021, 6:00 AM - April 1, 2021, 5:00 AM'); - }).before(async () => createScheduler({ - dataSource: [{ - text: 'Appointment', - startDate: new Date('2021-03-30T03:00:00.000Z'), - endDate: new Date('2021-04-01T03:00:00.000Z'), - }], - currentView: 'week', - currentDate: new Date('2021-03-30T03:00:00.000Z'), - height: 400, - offset: 360, - rtlEnabled, - firstDayOfWeek: 0, - })); -}); - -getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])('Resize long appointment rtlEnabled=true', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - - await t - .drag(right, 100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 8, 2015, 12:00 AM - February 10, 2015, 10:00 AM'); - await t - .drag(right, -100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 12:00 AM - February 10, 2015, 10:00 AM'); - await t - .drag(left, -100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 12:00 AM - February 12, 2015, 12:00 AM'); - await t - .drag(left, 100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); -}).before(async () => createScheduler({ - currentDate: new Date(2015, 1, 9), - currentView: 'week', - firstDayOfWeek: 0, - rtlEnabled: true, - height: 400, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 10, 10), - }], -})); - -getTimezoneTest([MACHINE_TIMEZONES.EuropeBerlin])('Resize long appointment rtlEnabled=false', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - const { left, right } = appointment.resizableHandle; - - await t - .drag(right, 100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 8:00 AM - February 12, 2015, 12:00 AM'); - await t - .drag(right, -100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 8:00 AM - February 11, 2015, 12:00 AM'); - await t - .drag(left, -100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 8, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); - await t - .drag(left, 100, 0) - .expect(appointment.getAriaLabel()) - .eql('Appointment: February 9, 2015, 12:00 AM - February 11, 2015, 12:00 AM'); -}).before(async () => createScheduler({ - currentDate: new Date(2015, 1, 9), - currentView: 'week', - firstDayOfWeek: 0, - rtlEnabled: false, - height: 400, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2015, 1, 9, 8), - endDate: new Date(2015, 1, 10, 10), - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/allDay.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/allDay.ts deleted file mode 100644 index e375f516bc8a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/allDay.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Resize appointments in All Day Panel` - .page(url(__dirname, '../../../container.html')); - -test('Resize in the workWeek view between weeks', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - const appointment1 = scheduler.getAppointment('1st'); - const appointment2 = scheduler.getAppointment('2nd'); - const appointment3 = scheduler.getAppointment('3rd'); - - await t - .drag(appointment1.resizableHandle.right, 400, 0) - .drag(appointment2.resizableHandle.left, -400, 0) - .drag(appointment3.resizableHandle.right, -140, 0); - - await testScreenshot(t, takeScreenshot, 'resize-all-day-workweek-weekend-0.png'); - - await t - .drag(appointment1.resizableHandle.right, -400, 0) - .drag(appointment2.resizableHandle.left, 400, 0) - .drag(appointment3.resizableHandle.right, 140, 0); - - await testScreenshot(t, takeScreenshot, 'resize-all-day-workweek-weekend-1.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createScheduler({ - width: 800, - height: 600, - views: [{ - type: 'workWeek', - intervalCount: 2, - startDate: new Date(2021, 5, 29), - }], - currentDate: new Date(2021, 5, 29), - currentView: 'workWeek', - maxAppointmentsPerCell: 'unlimited', - startDayHour: 9, - endDayHour: 13, - dataSource: [ - { - text: '1st', - startDate: new Date(2021, 5, 29), - allDay: true, - }, - { - text: '2nd', - startDate: new Date(2021, 6, 7), - allDay: true, - }, - { - text: '3rd', - startDate: new Date(2021, 6, 1), - endDate: new Date(2021, 6, 5), - allDay: true, - }, - ], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/basic.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/basic.ts deleted file mode 100644 index e8d715bd0ea0..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/basic.ts +++ /dev/null @@ -1,98 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Resize appointments in the Scheduler basic views` - .page(url(__dirname, '../../../container.html')); - -['day', 'week', 'workWeek'].forEach((view) => test(`Resize in the "${view}" view`, async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.bottom, 0, 100) - .expect(resizableAppointment.size.height).eql('190px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:30 PM') - - .drag(resizableAppointment.resizableHandle.top, 0, 100) - .expect(resizableAppointment.size.height) - .eql('76px') - .expect(resizableAppointment.date.time) - .eql('11:30 AM - 12:30 PM') - - .drag(resizableAppointment.resizableHandle.top, 0, -100) - .expect(resizableAppointment.size.height) - .eql('190px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:30 PM') - - .drag(resizableAppointment.resizableHandle.bottom, 0, -100) - .expect(resizableAppointment.size.height) - .eql('76px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM'); -}).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, -}))); - -test('Resize in the "month" view', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.right, 100, 0) - .expect(resizableAppointment.size.width).eql('400px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.left, 100, 0) - .expect(resizableAppointment.size.width) - .eql('200px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.left, -100, 0) - .expect(resizableAppointment.size.width) - .eql('400px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.right, -100, 0) - .expect(resizableAppointment.size.width) - .eql('200px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM'); -}).before(async () => createScheduler({ - views: ['month'], - currentView: 'month', - dataSource, -})); - -test('Resize should work correctly with startDateExpr (T944693)', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.bottom, 0, 100) - .expect(resizableAppointment.size.height).eql('190px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:30 PM') - - .drag(resizableAppointment.resizableHandle.top, 0, 100) - .expect(resizableAppointment.size.height) - .eql('76px') - .expect(resizableAppointment.date.time) - .eql('11:30 AM - 12:30 PM'); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - startDateExpr: 'start', - dataSource: dataSource.map(({ startDate, ...restProps }) => ({ - ...restProps, - start: startDate, - })), -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.ts deleted file mode 100644 index 0f4e058f4c4f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/cancelAppointmentResize.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { MouseAction, MouseUpEvents } from '../../../../helpers/mouseUpEvents'; -import createScheduler from '../dragAndDrop/init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Cancel appointment Resizing` - .page(url(__dirname, '../../../container.html')); - -test('onAppointmentUpdating - newDate should be correct after cancel appointment resize and cellDuration=24h (T1070565)', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Test Resize'); - const etalonEndDateIso = '2021-06-03T00:00:00Z'; - - // 1st iteration - await t - .drag(resizableAppointment.resizableHandle.right, 200, 0) - .expect(resizableAppointment.date.time) - .eql('1:00 AM - 8:00 PM') - .expect(ClientFunction(() => (window as any).newEndDate)()) - .eql(etalonEndDateIso); - - // 2nd iteration - await t - .drag(resizableAppointment.resizableHandle.right, 200, 0) - .expect(resizableAppointment.date.time) - .eql('1:00 AM - 8:00 PM') - .expect(ClientFunction(() => (window as any).newEndDate)()) - .eql(etalonEndDateIso); -}).before(async () => createScheduler({ - timeZone: 'Etc/GMT', - width: 400, - currentDate: '2021-06-01T00:00:00Z', - dataSource: [{ - text: 'Test Resize', - startDate: '2021-06-01T01:00:00Z', - endDate: '2021-06-01T20:00:00Z', - }], - views: [{ - type: 'timelineDay', - intervalCount: 2, - }], - currentView: 'timelineDay', - startDayHour: 0, - cellDuration: 1440, - onAppointmentUpdating: (e) => { - (window as any).newEndDate = e.newData.endDate; - e.cancel = true; - }, -})).after(async () => { - await ClientFunction(() => { - delete (window as any).newEndDate; - })(); -}); - -test('on escape - date should not changed when it\'s pressed after resize (T1125615)', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Test Resize'); - - await t - .drag(resizableAppointment.resizableHandle.right, 50, 0) - .expect(resizableAppointment.date.time) - .eql('1:00 AM - 12:00 AM') - .click(resizableAppointment.element) - .pressKey('esc') - .drag(resizableAppointment.resizableHandle.right, 150, 0) - .expect(resizableAppointment.date.time) - .eql('1:00 AM - 12:00 AM'); -}).before(async () => createScheduler({ - timeZone: 'Etc/GMT', - width: 400, - currentDate: '2021-06-01T00:00:00Z', - dataSource: [{ - text: 'Test Resize', - startDate: '2021-06-01T01:00:00Z', - endDate: '2021-06-01T20:00:00Z', - }], - views: [{ - type: 'timelineDay', - intervalCount: 2, - }], - currentView: 'timelineDay', - startDayHour: 0, - cellDuration: 1440, -})); - -test('on escape - date should not changed when it\'s pressed during resize (T1125615)', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Test Resize'); - await MouseUpEvents.disable(MouseAction.dragToOffset); - - await t - .drag(resizableAppointment.resizableHandle.right, 150, 0) - .pressKey('esc'); - - await MouseUpEvents.enable(MouseAction.dragToOffset); - - await t - .expect(resizableAppointment.date.time) - .eql('1:00 AM - 8:00 PM'); -}).before(async () => createScheduler({ - timeZone: 'Etc/GMT', - width: 400, - currentDate: '2021-06-01T00:00:00Z', - dataSource: [{ - text: 'Test Resize', - startDate: '2021-06-01T01:00:00Z', - endDate: '2021-06-01T20:00:00Z', - }], - views: [{ - type: 'timelineDay', - intervalCount: 2, - }], - currentView: 'timelineDay', - startDayHour: 0, - cellDuration: 1440, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png deleted file mode 100644 index 090db38eb2ad..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png deleted file mode 100644 index b762b1ea714b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/etalons/resize-all-day-workweek-weekend-1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/init/widget.setup.ts deleted file mode 100644 index e25e492a8168..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/init/widget.setup.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -const resources = [ - { id: 0, color: '#e01e38' }, - { id: 1, color: '#f98322' }, - { id: 2, color: '#1e65e8' }, -]; - -export default async (options = {}): Promise => createWidget('dxScheduler', extend({ - views: ['day'], - dataSource: [], - resources: [ - { - fieldExpr: 'resourceId', - dataSource: resources, - label: 'Color', - }, - ], - width: 1402, - height: 833, - startDayHour: 9, - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'day', - currentDate: new Date(2019, 3, 1), -}, options)); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/timeline.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/timeline.ts deleted file mode 100644 index 8b4427444597..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/timeline.ts +++ /dev/null @@ -1,219 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Resize appointments in the Scheduler basic views` - .page(url(__dirname, '../../../container.html')); - -['timelineDay', 'timelineWeek', 'timelineWorkWeek'].forEach((view) => test(`Resize in the "${view}" view`, async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.right, 400, 0) - .expect(resizableAppointment.size.width).eql('800px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:00 PM') - - .drag(resizableAppointment.resizableHandle.left, 400, 0) - .expect(resizableAppointment.size.width) - .eql('400px') - .expect(resizableAppointment.date.time) - .eql('11:00 AM - 12:00 PM') - - .drag(resizableAppointment.resizableHandle.left, -400, 0) - .expect(resizableAppointment.size.width) - .eql('800px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:00 PM') - - .drag(resizableAppointment.resizableHandle.right, -400, 0) - .expect(resizableAppointment.size.width) - .eql('400px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM'); -}).before(async () => createScheduler({ - views: [view], - currentView: view, - dataSource, -}))); - -test('Resize in the "timelineMonth" view', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.right, 400, 0) - .expect(resizableAppointment.size.width).eql('600px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.left, 400, 0) - .expect(resizableAppointment.size.width) - .eql('200px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.left, -400, 0) - .expect(resizableAppointment.size.width) - .eql('600px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM') - - .drag(resizableAppointment.resizableHandle.right, -400, 0) - .expect(resizableAppointment.size.width) - .eql('200px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 11:00 AM'); -}).before(async () => createScheduler({ - views: ['timelineMonth'], - currentView: 'timelineMonth', - dataSource, -})); - -test.meta({ browserSize: [1400, 800] })('Resize appointment on timelineWeek view with custom startDayHour & endDayHour (T804779)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - - await t - .drag(appointment.resizableHandle.right, -400, 0) - .expect(appointment.size.width).eql('200px') - .expect(appointment.date.time) - .eql('2:00 PM - 3:00 PM'); -}).before(async () => createScheduler({ - views: [{ - type: 'timelineWeek', startDayHour: 10, endDayHour: 16, cellDuration: 60, - }], - currentView: 'timelineWeek', - currentDate: new Date(2019, 8, 1), - firstDayOfWeek: 0, - dataSource: [{ - text: 'Appointment', - startDate: new Date(2019, 8, 1, 14), - endDate: new Date(2019, 8, 2, 11), - }], -})); - -// T948164 -test('Resize should work correctly when cell\'s width is not an integer', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - - await t - .drag(appointment.resizableHandle.right, 100, 0) - .expect(appointment.date.time) - .eql('12:00 AM - 4:00 AM'); -}).before(async () => createScheduler({ - views: [{ - type: 'timelineDay', - cellDuration: 120, - }], - currentView: 'timelineDay', - currentDate: new Date(2020, 10, 13), - dataSource: [{ - text: 'Appointment', - startDate: new Date(2020, 10, 13, 0, 0), - endDate: new Date(2020, 10, 13, 2, 0), - }], - width: 2999, // Cell's width in this case will not be an integer - startDayHour: 0, - endDayHour: 24, -})); - -test('Resize in the "timelineDay" view with start and end day hour (T1134583)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - - await t - .drag(appointment.resizableHandle.right, 200, 0) - .expect(appointment.size.width) - .eql('600px') - .expect(appointment.date.time) - .eql('9:30 AM - 11:00 AM'); - - await t - .drag(appointment.resizableHandle.left, -200, 0) - .expect(appointment.size.width) - .eql('800px') - .expect(appointment.date.time) - .eql('11:00 AM - 11:00 AM'); -}).before(async () => createScheduler({ - dataSource: [{ - text: 'Appointment', - startDate: new Date(2024, 0, 3, 9, 30), - endDate: new Date(2024, 0, 3, 12, 30), - }], - views: [{ - type: 'timelineDay', - intervalCount: 3, - }], - currentView: 'timelineDay', - currentDate: new Date(2024, 0, 2), - cellDuration: 60, - startDayHour: 10, - endDayHour: 12, - width: 1200, -})); - -['timelineWeek', 'timelineWorkWeek'].forEach((view) => { - test(`Resize in the "${view}" view with start and end day hour (T1134583)`, async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - - await t - .drag(appointment.resizableHandle.right, 200, 0) - .expect(appointment.size.width) - .eql('600px') - .expect(appointment.date.time) - .eql('9:30 AM - 11:00 AM'); - - await t - .drag(appointment.resizableHandle.left, -200, 0) - .expect(appointment.size.width) - .eql('800px').expect(appointment.date.time) - .eql('11:00 AM - 11:00 AM'); - }).before(async () => createScheduler({ - dataSource: [{ - text: 'Appointment', - startDate: new Date(2024, 0, 3, 9, 30), - endDate: new Date(2024, 0, 3, 12, 30), - }], - views: [view], - currentView: view, - currentDate: new Date(2024, 0, 2), - cellDuration: 60, - startDayHour: 10, - endDayHour: 12, - })); -}); - -test('Resize in the "timelineMonth" view with start and end day hour (T1134583)', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Appointment'); - - await t - .drag(appointment.resizableHandle.right, 200, 0) - .expect(appointment.size.width) - .eql('400px') - .expect(appointment.date.time) - .eql('9:30 AM - 12:30 PM'); - - await t - .drag(appointment.resizableHandle.left, -200, 0) - .expect(appointment.size.width) - .eql('600px').expect(appointment.date.time) - .eql('9:30 AM - 12:30 PM'); -}).before(async () => createScheduler({ - dataSource: [{ - text: 'Appointment', - startDate: new Date(2024, 0, 3, 9, 30), - endDate: new Date(2024, 0, 3, 12, 30), - }], - views: ['timelineMonth'], - currentView: 'timelineMonth', - currentDate: new Date(2024, 0, 2), - cellDuration: 60, - startDayHour: 10, - endDayHour: 12, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/verticalGrouping.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/verticalGrouping.ts deleted file mode 100644 index 79f835adf74b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/verticalGrouping.ts +++ /dev/null @@ -1,115 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Resize appointments in the Scheduler with vertical groupping` - .page(url(__dirname, '../../../container.html')); - -test('Should correctly calculate group resizing area (T1025952)', async (t) => { - const scheduler = new Scheduler('#container'); - const firstAppointment = scheduler.getAppointment('first'); - const secondAppointment = scheduler.getAppointment('second'); - - await t - .drag(firstAppointment.resizableHandle.bottom, 0, 100) - .expect(firstAppointment.size.height) - .eql('140.594px') - .expect(firstAppointment.date.time) - .eql('9:30 AM - 11:21 AM') - - .drag(secondAppointment.resizableHandle.bottom, 0, 100) - .expect(secondAppointment.size.height) - .eql('165.922px') - .expect(secondAppointment.date.time) - .eql('9:30 AM - 11:41 AM'); -}).before(async () => createScheduler({ - dataSource: [ - { - text: 'first', - startDate: new Date(2021, 3, 21, 9, 30), - endDate: new Date(2021, 3, 21, 10), - priorityId: 1, - }, - { - text: 'second', - startDate: new Date(2021, 3, 21, 9, 30), - endDate: new Date(2021, 3, 21, 10), - priorityId: 2, - }, - ], - views: [{ - type: 'workWeek', - groupOrientation: 'vertical', - }], - currentView: 'workWeek', - currentDate: new Date(2021, 3, 21), - startDayHour: 9, - endDayHour: 12, - groups: ['priorityId'], - resources: [ - { - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, - ], - }, - ], -})); - -test('Should correctly calculate group resizing area after scroll (T1041672)', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.scrollTo(new Date(2021, 3, 21, 9, 30), { priorityId: 2 }); - - const appointment = scheduler.getAppointment('app'); - - await t - .drag(appointment.resizableHandle.bottom, 0, 100) - .expect(appointment.size.height) - .eql('165.922px') - .expect(appointment.date.time) - .eql('9:30 AM - 11:41 AM'); -}).before(async () => createScheduler({ - dataSource: [ - { - text: 'app', - startDate: new Date(2021, 3, 21, 9, 30), - endDate: new Date(2021, 3, 21, 10), - priorityId: 2, - }, - ], - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], - currentView: 'week', - currentDate: new Date(2021, 3, 21), - height: 400, - groups: ['priorityId'], - resources: [ - { - fieldExpr: 'priorityId', - allowMultiple: false, - dataSource: [ - { - text: 'Low Priority', - id: 1, - color: '#1e90ff', - }, { - text: 'High Priority', - id: 2, - color: '#ff9747', - }, - ], - }, - ], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/virtualScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/virtualScrolling.ts deleted file mode 100644 index 636232c0a6af..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/virtualScrolling.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import dataSource from './init/widget.data'; -import createScheduler from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Resize appointments with virtual scrolling` - .page(url(__dirname, '../../../container.html')); - -test('T1325041: Appointment resize works with virtual scrolling enabled', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .drag(resizableAppointment.resizableHandle.right, 400, 0) - .expect(resizableAppointment.size.width).eql('800px') - .expect(resizableAppointment.date.time) - .eql('10:00 AM - 12:00 PM'); -}).before(async () => createScheduler({ - views: [{ - type: 'timelineWorkWeek', - groupOrientation: 'vertical', - }], - currentView: 'timelineWorkWeek', - dataSource, - groups: ['resourceId'], - scrolling: { mode: 'virtual' }, -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/zooming.ts b/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/zooming.ts deleted file mode 100644 index 3e25d27f9a83..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/resizeAppointments/zooming.ts +++ /dev/null @@ -1,42 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import { setZoomLevel } from '../virtualScrolling/utils'; - -fixture.disablePageReloads`Resize appointments - Zooming` - .page(url(__dirname, '../../../container.html')); - -test('Vertical resize with zooming', async (t) => { - const scheduler = new Scheduler('#container'); - const resizableAppointment = scheduler.getAppointment('Appt-01'); - - await t - .drag(resizableAppointment.resizableHandle.bottom, 0, 430, { offsetY: 20 }); - - const height = parseInt(await resizableAppointment.size.height, 10); - - await t - .expect(height) - .eql(94); -}).before(async () => { - await setZoomLevel(110); - await insertStylesheetRulesToPage('.dx-scheduler-cell-sizes-vertical { height: 43px;}'); - - await createWidget( - 'dxScheduler', - { - dataSource: [{ - text: 'Appt-01', - startDate: new Date(2021, 2, 28, 0), - endDate: new Date(2021, 2, 28, 0, 30), - }], - views: ['day'], - currentView: 'day', - cellDuration: 15, - currentDate: new Date(2021, 2, 28), - }, - ); -}).after(async () => { - await setZoomLevel(0); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/scrollTo.ts b/e2e/testcafe-devextreme/tests/scheduler/common/scrollTo.ts deleted file mode 100644 index e405b63bcacc..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/scrollTo.ts +++ /dev/null @@ -1,320 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler: ScrollTo` - .page(url(__dirname, '../../container.html')); - -const createScheduler = async (options): Promise => createWidget('dxScheduler', options); - -const scrollToDate = ClientFunction(() => { - const instance = ($('#container') as any).dxScheduler('instance'); - const currentDate = instance.option('currentDate'); - const date = new Date(currentDate.getTime()); - date.setHours(date.getHours() + 6, 30, 0, 0); - instance.scrollTo(date); -}); - -const scrollToDateWithGroups = ClientFunction(() => { - const instance = ($('#container') as any).dxScheduler('instance'); - const currentDate = instance.option('currentDate'); - const date = new Date(currentDate.getTime()); - date.setHours(date.getHours() + 6, 30, 0, 0); - instance.scrollTo(date, { priority: 1 }); -}); - -const scrollToAllDay = ClientFunction(() => { - const instance = ($('#container') as any).dxScheduler('instance'); - const currentDate = instance.option('currentDate'); - const date = new Date(currentDate.getTime()); - date.setHours(date.getHours() + 6, 30, 0, 0); - instance.scrollTo(date, undefined, true); -}); - -test('ScrollTo works correctly with week and day views', async (t) => { - const scheduler = new Scheduler('#container'); - - const views = [{ name: 'week', initValue: 0 }, { name: 'day', initValue: 0 }]; - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - const { name, initValue } = view; - - await scheduler.option('currentView', name); - await scheduler.option('useNative', true); - await t.wait(1000); - - await scrollToDate(); - await t.wait(1000); - - await t - .expect(scheduler.workSpaceScroll.top).gt(initValue, `Work space is scrolled in ${name} view`); - } -}).before(async () => createScheduler({ - dataSource: [], - views: ['week', 'day'], - currentView: 'week', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - height: 580, -})); - -test('ScrollTo works correctly with grouping in week view', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentView', 'week'); - await scheduler.option('useNative', true); - await t.wait(1000); - - const initialTop = await scheduler.workSpaceScroll.top; - - await scrollToDateWithGroups(); - await t.wait(1000); - - await t - .expect(scheduler.workSpaceScroll.top).gt(initialTop, 'Work space is scrolled with groups'); -}).before(async () => createScheduler({ - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - groups: ['priority'], - resources: [{ - fieldExpr: 'priority', - dataSource: [ - { id: 1, text: 'High Priority' }, - { id: 2, text: 'Low Priority' }, - ], - }], - height: 580, -})); - -test('ScrollTo works correctly with all-day panel', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentView', 'week'); - await scheduler.option('useNative', true); - - const initValue = 0; - const expectedTopValue = 0; - - await t - .expect(scheduler.workSpaceScroll.top).eql(initValue, 'Work space has init scroll position'); - - await scrollToAllDay(); - await t.wait(3000); - - await t - .expect(scheduler.workSpaceScroll.top).eql(expectedTopValue, 'Work space is scrolled to all-day panel'); -}).before(async () => createScheduler({ - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - showAllDayPanel: true, - height: 580, -})); - -test('ScrollTo works correctly with RTL mode', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentView', 'week'); - await scheduler.option('useNative', true); - await scheduler.option('rtlEnabled', true); - await t.wait(1000); - - const initialBrowserTop = await scheduler.workSpaceScroll.top; - - await scrollToDate(); - await t.wait(1000); - - const browserTop = await ClientFunction(() => ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().scrollTop())(); - - await t - .expect(browserTop).gt(initialBrowserTop, 'Work space is scrolled in RTL'); -}).before(async () => createScheduler({ - dataSource: [], - views: ['week'], - currentView: 'week', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - height: 580, -})); - -test('ScrollTo works correctly with timeline views (native, sync header/workspace) (T749957)', async (t) => { - const scheduler = new Scheduler('#container'); - - const views = [{ name: 'timelineDay' }, { name: 'timelineWeek' }]; - - // eslint-disable-next-line no-restricted-syntax - for (const view of views) { - const { name } = view; - - await scheduler.option('currentView', name); - await scheduler.option('useNative', true); - await t.wait(200); - - const getWSLeft = ClientFunction(() => ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().scrollLeft()); - const getHeaderLeft = ClientFunction(() => $('.dx-scheduler-header-scrollable .dx-scrollable-container').scrollLeft()); - - const initialLeft = await getWSLeft(); - const initialHeaderLeft = await getHeaderLeft(); - - await t.expect(initialLeft).eql(initialHeaderLeft, `${name}: header/workspace initial sync`); - - await scrollToDate(); - await t.wait(300); - - const left = await getWSLeft(); - const headerLeft = await getHeaderLeft(); - - await t - .expect(left).notEql(initialLeft, `${name}: workspace left changed`) - .expect(headerLeft).eql(left, `${name}: header synchronized with workspace`); - } -}).before(async () => createScheduler({ - dataSource: [], - views: ['timelineDay', 'timelineWeek'], - currentView: 'timelineDay', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - height: 580, -})); - -test('ScrollTo works correctly in timeline RTL (native, sync header/workspace)', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentView', 'timelineWeek'); - await scheduler.option('useNative', true); - await scheduler.option('rtlEnabled', true); - await t.wait(200); - - const getWSLeft = ClientFunction(() => ($('#container') as any).dxScheduler('instance').getWorkSpaceScrollable().scrollLeft()); - const getHeaderLeft = ClientFunction(() => $('.dx-scheduler-header-scrollable .dx-scrollable-container').scrollLeft()); - - const initialLeft = await getWSLeft(); - const initialHeaderLeft = await getHeaderLeft(); - - await t.expect(initialLeft).eql(initialHeaderLeft, 'timeline RTL: initial sync'); - - await scrollToDate(); - await t.wait(300); - - const left = await getWSLeft(); - const headerLeft = await getHeaderLeft(); - - await t - .expect(left).notEql(initialLeft, 'timeline RTL: workspace left changed') - .expect(headerLeft).eql(left, 'timeline RTL: header synchronized'); -}).before(async () => createScheduler({ - dataSource: [], - views: ['timelineWeek'], - currentView: 'timelineWeek', - currentDate: new Date(2019, 5, 1, 9, 40), - firstDayOfWeek: 0, - startDayHour: 0, - endDayHour: 20, - height: 580, - rtlEnabled: true, -})); - -[ - // startDayHour: 6:00, endDayHour: 18:00 - { - offset: 0, - targetDate: new Date(2021, 1, 3, 4, 0), - expectedDate: new Date(2021, 1, 3, 6, 0), - }, - { - offset: 0, - targetDate: new Date(2021, 1, 3, 12, 0), - expectedDate: new Date(2021, 1, 3, 12, 0), - }, - { - offset: 0, - targetDate: new Date(2021, 1, 3, 20, 0), - expectedDate: new Date(2021, 1, 3, 18, 0), - }, - - // startDayHour: 18:00, endDayHour: next day 6:00 - { - offset: 720, - targetDate: new Date(2021, 1, 3, 10, 0), - expectedDate: new Date(2021, 1, 3, 6, 0), - }, - { - offset: 720, - targetDate: new Date(2021, 1, 3, 20, 0), - expectedDate: new Date(2021, 1, 3, 20, 0), - }, - { - offset: 720, - targetDate: new Date(2021, 1, 4, 1, 0), - expectedDate: new Date(2021, 1, 4, 1, 0), - }, - { - offset: 720, - targetDate: new Date(2021, 1, 4, 7, 0), - expectedDate: new Date(2021, 1, 4, 6, 0), - }, - - // startDayHour: prev day 18:00, endDayHour: 6:00 - { - offset: -720, - targetDate: new Date(2021, 1, 3, 16, 0), - expectedDate: new Date(2021, 1, 3, 18, 0), - }, - { - offset: -720, - targetDate: new Date(2021, 1, 3, 21, 0), - expectedDate: new Date(2021, 1, 3, 21, 0), - }, - { - offset: -720, - targetDate: new Date(2021, 1, 4, 3, 0), - expectedDate: new Date(2021, 1, 4, 3, 0), - }, - { - offset: -720, - targetDate: new Date(2021, 1, 3, 7, 0), - expectedDate: new Date(2021, 1, 3, 6, 0), - }, -].forEach(({ offset, targetDate, expectedDate }) => { - test(`scrollTo should scroll to date with offset=${offset}, targetDate=${targetDate.toString()} (T1310544)`, async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.scrollTo(targetDate); - - const cellData = await scheduler.getCellDataAtViewportCenter(); - - await t - .expect(expectedDate.getTime()).gte(cellData.startDate.getTime()) - // eslint-disable-next-line spellcheck/spell-checker - .expect(expectedDate.getTime()).lte(cellData.endDate.getTime()); - }).before(async () => createScheduler({ - dataSource: [], - views: [{ - type: 'timelineWeek', - offset, - cellDuration: 60, - }], - currentView: 'timelineWeek', - currentDate: new Date(2021, 1, 2), - startDayHour: 6, - endDayHour: 18, - height: 580, - })); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png deleted file mode 100644 index 9014b8b05842..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__summer-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png deleted file mode 100644 index 0c130c5f9c00..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-down__winter-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png deleted file mode 100644 index 18c64ced92b3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__summer-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png deleted file mode 100644 index 0cd73bc51d08..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__drag-n-drop-up__winter-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png deleted file mode 100644 index fa27aa0de574..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__summer-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png deleted file mode 100644 index 479ece65e7a2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__popup__winter-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png deleted file mode 100644 index 6c2b33223700..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__summer-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png deleted file mode 100644 index e20e4c2cc4da..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-bottom__winter-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png deleted file mode 100644 index c889f2599543..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__summer-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png deleted file mode 100644 index 52d93fc0ed57..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/etalons/recurrent-appointment-timezone-dst__editing__resize-top__winter-time (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.ts deleted file mode 100644 index 8a28e5dc47f1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/T1102713/recurrenceAppointmentInDstTimeEditing.ts +++ /dev/null @@ -1,207 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import AppointmentDialog from 'devextreme-testcafe-models/scheduler/appointment/dialog'; -import Appointment from 'devextreme-testcafe-models/scheduler/appointment'; -import { createWidget } from '../../../../../helpers/createWidget'; -import url from '../../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Editing recurrent appointment in DST time` - .page(url(__dirname, '../../../../container.html')); - -interface ITestResizeOptions { - direction: keyof Appointment['resizableHandle']; - value: number; -} -interface ITestDragNDropOptions { - rowIdx: number; - cellIdx: number; -} - -const SCREENSHOT_BASE_NAME = 'recurrent-appointment-timezone-dst__editing'; -const SCHEDULER_SELECTOR = '#container'; -const TEST_APPOINTMENT_TEXT = 'Watercolor Landscape'; -const TEST_CURSOR_OPTIONS = { speed: 0.5 }; -const APPOINTMENT_DATETIME = { - winter: { - start: new Date('2020-11-01T17:30:00.000Z'), - end: new Date('2020-11-01T19:00:00.000Z'), - }, - summer: { - start: new Date('2020-03-08T16:30:00.000Z'), - end: new Date('2020-03-08T18:00:00.000Z'), - }, -}; - -async function editingPopupTestFunction(t: TestController, screenshotName: string): Promise { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const screenshotZone = scheduler.workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); - await t.doubleClick(appointmentToEdit.element, TEST_CURSOR_OPTIONS); - - const appointmentDialog = new AppointmentDialog(); - await t.click(appointmentDialog.series); - - const { appointmentPopup } = scheduler; - await t.click(appointmentPopup.saveButton.element); - - await testScreenshot(t, takeScreenshot, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -} - -async function dragAndDropTestFunction( - t: TestController, - screenshotName: string, - { rowIdx, cellIdx }: ITestDragNDropOptions, -): Promise { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const screenshotZone = scheduler.workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); - const cellToMoveElement = scheduler.getDateTableCell(rowIdx, cellIdx); - - await t.dragToElement(appointmentToEdit.element, cellToMoveElement, TEST_CURSOR_OPTIONS); - - const appointmentDialog = new AppointmentDialog(); - await t.click(appointmentDialog.series); - - await testScreenshot(t, takeScreenshot, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -} - -async function resizeTestFunction( - t: TestController, - screenshotName: string, - resizeOptions: ITestResizeOptions, -): Promise { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const screenshotZone = scheduler.workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const appointmentToEdit = scheduler.getAppointment(TEST_APPOINTMENT_TEXT); - - await t.drag( - appointmentToEdit.resizableHandle[resizeOptions.direction], - 0, - resizeOptions.value, - TEST_CURSOR_OPTIONS, - ); - - const appointmentDialog = new AppointmentDialog(); - await t.click(appointmentDialog.series); - - await testScreenshot(t, takeScreenshot, `${SCREENSHOT_BASE_NAME}__${screenshotName}.png`, { element: screenshotZone }); - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -} - -async function configureScheduler({ start, end }: { start: Date; end: Date }) { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: start, - endDate: end, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO', - text: TEST_APPOINTMENT_TEXT, - }], - timeZone: 'America/Los_Angeles', - currentView: 'week', - currentDate: start, - startDayHour: 9, - cellDuration: 30, - width: 1000, - height: 585, - }); -} - -// === EDITING POPUP === -test('Editing popup: should have correctly been edited from editing popup. DST - winter time', async (t) => { - await editingPopupTestFunction(t, 'popup__winter-time'); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.winter); -}); - -test('Editing popup: should have correctly been edited from editing popup. DST - summer time', async (t) => { - await editingPopupTestFunction(t, 'popup__summer-time'); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.summer); -}); - -// === DRAG_N_DROP === -test('Drag-n-drop up: should have correctly been edited. DST - winter time', async (t) => { - await dragAndDropTestFunction(t, 'drag-n-drop-up__winter-time', { - rowIdx: 1, - cellIdx: 1, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.winter); -}); - -test('Drag-n-drop down: should have correctly been edited. DST - winter time', async (t) => { - await dragAndDropTestFunction(t, 'drag-n-drop-down__winter-time', { - rowIdx: 4, - cellIdx: 1, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.winter); -}); - -test('Drag-n-drop up: should have correctly been edited. DST - summer time', async (t) => { - await dragAndDropTestFunction(t, 'drag-n-drop-up__summer-time', { - rowIdx: 1, - cellIdx: 1, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.summer); -}); - -test('Drag-n-drop down: should have correctly been edited. DST - summer time', async (t) => { - await dragAndDropTestFunction(t, 'drag-n-drop-down__summer-time', { - rowIdx: 4, - cellIdx: 1, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.summer); -}); - -// === RESIZE === -test('Resize top: should have correctly been edited. DST - winter time', async (t) => { - await resizeTestFunction(t, 'resize-top__winter-time', { - direction: 'top', - value: 100, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.winter); -}); - -test('Resize bottom: should have correctly been edited. DST - winter time', async (t) => { - await resizeTestFunction(t, 'resize-bottom__winter-time', { - direction: 'bottom', - value: 100, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.winter); -}); - -test('Resize top: should have correctly been edited. DST - summer time', async (t) => { - await resizeTestFunction(t, 'resize-top__summer-time', { - direction: 'top', - value: 100, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.summer); -}); - -test('Resize bottom: should have correctly been edited. DST - summer time', async (t) => { - await resizeTestFunction(t, 'resize-bottom__summer-time', { - direction: 'bottom', - value: 100, - }); -}).before(async () => { - await configureScheduler(APPOINTMENT_DATETIME.summer); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.ts deleted file mode 100644 index 187ad28ab215..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/appointmentWithoutTimezone.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import SelectBox from 'devextreme-testcafe-models/selectBox'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import url from '../../../../../helpers/getPageUrl'; -import { getScreenshotName } from '../timezoneTestingUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { testScreenshot } from '../../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Recurrent appointments without timezone in scheduler with timezone` - .page(url(__dirname, '../../../../container.html')); - -const SELECT_SELECTOR = '#container'; -const SCHEDULER_SELECTOR = '#otherContainer'; -const SCREENSHOT_BASE_NAME = 'without-timezone-recurrent'; -const TEST_TIMEZONES = ['Etc/GMT-10', 'Etc/GMT+1', 'Etc/GMT+10']; -const TEST_CURSOR_OPTIONS = { speed: 0.5 }; - -const createTimezoneSelect = async ( - selector: string, - items: string[], - schedulerSelector: string, -): Promise => { - await ClientFunction(() => { - ($(selector) as any).dxSelectBox({ - items, - width: 240, - value: items[1], - onValueChanged(data) { - const scheduler = ($(schedulerSelector) as any).dxScheduler('instance'); - scheduler.option('timeZone', data.value); - }, - }); - }, { - dependencies: { selector, schedulerSelector, items }, - })(); -}; - -const selectTimezoneInUI = async (t: TestController, selectBox: SelectBox, timezoneIdx: number) => { - await t.click(selectBox.element, TEST_CURSOR_OPTIONS); - const timezonesList = await selectBox.getList(); - - await t.click(timezonesList.getItem(timezoneIdx).element, TEST_CURSOR_OPTIONS); -}; - -test('Should correctly display the recurrent weekly appointment without timezone', async (t) => { - const selectBox = new SelectBox(SELECT_SELECTOR); - const schedulerWorkspace = new Scheduler(SCHEDULER_SELECTOR).workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__same-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 0); - // expected date: 4/28/2021 9:00 PM - 11:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__greater-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 2); - // expected date: 4/28/2021 1:00 AM - 3:00 AM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-appointment__lower-timezone'), - { element: schedulerWorkspace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const schedulerTimezone = TEST_TIMEZONES[1]; - - await createTimezoneSelect(SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: new Date('2021-04-28T11:00:00.000Z'), - endDate: new Date('2021-04-28T13:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }, SCHEDULER_SELECTOR); -}); - -test('Should correctly display the recurrent monthly appointment without timezone', async (t) => { - const selectBox = new SelectBox(SELECT_SELECTOR); - const schedulerWorkspace = new Scheduler(SCHEDULER_SELECTOR).workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__same-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 0); - // expected date: 4/28/2021 9:00 PM - 11:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__greater-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 2); - // expected date: 4/28/2021 1:00 AM - 3:00 AM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'monthly-appointment__lower-timezone'), - { element: schedulerWorkspace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const schedulerTimezone = TEST_TIMEZONES[1]; - - await createTimezoneSelect(SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: new Date('2021-04-28T11:00:00.000Z'), - endDate: new Date('2021-04-28T13:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }, SCHEDULER_SELECTOR); -}); - -test('Should correctly display the recurrent yearly appointment without timezone', async (t) => { - const selectBox = new SelectBox(SELECT_SELECTOR); - const schedulerWorkspace = new Scheduler(SCHEDULER_SELECTOR).workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__same-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 0); - // expected date: 4/28/2021 9:00 PM - 11:00 PM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__greater-timezone'), - { element: schedulerWorkspace }, - ); - - await selectTimezoneInUI(t, selectBox, 2); - // expected date: 4/28/2021 1:00 AM - 3:00 AM - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'yearly-appointment__lower-timezone'), - { element: schedulerWorkspace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const schedulerTimezone = TEST_TIMEZONES[1]; - - await createTimezoneSelect(SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: new Date('2021-04-28T11:00:00.000Z'), - endDate: new Date('2021-04-28T13:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }, SCHEDULER_SELECTOR); -}); - -test('Should correctly display morning weekly recurrent appointment in a greater timezone.', async (t) => { - const schedulerWorkspace = new Scheduler(SCHEDULER_SELECTOR).workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-morning-appointment__greater-timezone'), - { element: schedulerWorkspace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const schedulerTimezone = TEST_TIMEZONES[0]; - - await createTimezoneSelect(SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test', - startDate: new Date('2021-04-29T15:00:00.000Z'), - endDate: new Date('2021-04-29T17:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=FR', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }, SCHEDULER_SELECTOR); -}); - -test('Should correctly display \'corner\' weekly recurrent appointments in a greater timezone.', async (t) => { - const schedulerWorkspace = new Scheduler(SCHEDULER_SELECTOR).workSpace; - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(SCREENSHOT_BASE_NAME, 'weekly-corner-appointments__greater-timezone'), - { element: schedulerWorkspace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const schedulerTimezone = TEST_TIMEZONES[0]; - - await createTimezoneSelect(SELECT_SELECTOR, TEST_TIMEZONES, SCHEDULER_SELECTOR); - await createWidget('dxScheduler', { - dataSource: [{ - text: 'test 1', - startDate: new Date('2021-04-24T14:00:00.000Z'), - endDate: new Date('2021-04-24T16:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', - }, { - text: 'test 2', - startDate: new Date('2021-05-01T12:00:00.000Z'), - endDate: new Date('2021-05-01T14:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }, SCHEDULER_SELECTOR); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index 8b44411f3275..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index b0bcaa01edc7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index 80b9b9621346..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 5fd0e81a0f8b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png deleted file mode 100644 index 642705f35b49..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__lower-date__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 79e0357e75a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png deleted file mode 100644 index e9c4488cae1c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-monthly-recurrent__same-date__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png deleted file mode 100644 index c18c157fdf9b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png deleted file mode 100644 index 842fe34d6f5d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png deleted file mode 100644 index e4df180640b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__first-week__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 7175383f0027..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png deleted file mode 100644 index 7c7275c73ac7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png deleted file mode 100644 index 9c7e0728e149..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__multiple-appointment__second-week__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 79e0357e75a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png deleted file mode 100644 index dad1499f8489..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__day-shift__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png deleted file mode 100644 index d88165e18bef..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-negative-timezone-offset (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png deleted file mode 100644 index 2f6a2410d7da..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__first-week__max-positive-timezone-offset (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__first-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png deleted file mode 100644 index 3a354fa9bbb4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__next-view-shift__second-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png deleted file mode 100644 index 15f274f525d7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__before-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png deleted file mode 100644 index aec09dded889..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__previous-view-shift__first-week (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png deleted file mode 100644 index cf1d1ac9e8c5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-negative-timezone-offset (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png deleted file mode 100644 index 489bd2ff622b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__second-week__max-positive-timezone-offset (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 1b7ff5418ec5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png deleted file mode 100644 index aeac1ff61f9b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-appointment__week-shift__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index 0e6497c48daf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-evening-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index 4374e4a38158..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-weekly-recurrent__one-morning-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index b8eca18159c2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__greater-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index 054c38e914d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__lower-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png deleted file mode 100644 index 890ec1260609..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__next-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png deleted file mode 100644 index 32941004aa20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__greater-date__same-timezone__same-view-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 5fd0e81a0f8b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png deleted file mode 100644 index 642705f35b49..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__lower-date__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 5fd0e81a0f8b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png deleted file mode 100644 index 642705f35b49..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/timezone-yearly-recurrent__same-date__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png deleted file mode 100644 index da06c3b6fd1a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png deleted file mode 100644 index df0274b24f7a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__monthly-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png deleted file mode 100644 index da06c3b6fd1a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png deleted file mode 100644 index df0274b24f7a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 8008a2d9342f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-corner-appointments__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png deleted file mode 100644 index 82a2bdcd0fba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__weekly-morning-appointment__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png deleted file mode 100644 index da06c3b6fd1a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__greater-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png deleted file mode 100644 index df0274b24f7a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__lower-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png deleted file mode 100644 index add6cb82720c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/etalons/without-timezone-recurrent__yearly-appointment__same-timezone (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.ts deleted file mode 100644 index 277eee32e5a8..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/monthlyRecurrentAppointment.ts +++ /dev/null @@ -1,341 +0,0 @@ -import url from '../../../../../helpers/getPageUrl'; -import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; - -const SCREENSHOT_BASE_NAME = 'timezone-monthly-recurrent'; - -fixture.disablePageReloads`Monthly recurrent appointments with timezones` - .page(url(__dirname, '../../../../container.html')); - -test('Should correctly display the recurrent monthly appointment with the same timezone', async (t) => { - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent monthly appointment with a greater time timezone', async (t) => { - // expected date: 4/29/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent monthly appointment with a lower time timezone', async (t) => { - // expected date: 4/27/2021 12:00 PM - 2:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment -if start date lower that recurrent date with the same time timezone`, async (t) => { - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment -if start date lower that recurrent date with a greater time timezone`, async (t) => { - // expected date: 4/29/2021 2:00 AM - 4:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment -if start date lower that recurrent date with a lower time timezone`, async (t) => { - // expected date: 4/27/2021 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=28', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at first date -if start date greater that recurrent date with a same time timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at next date -if start date greater that recurrent date with a same time timezone`, async (t) => { - // expected date: 5/26/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 4, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at first date -if start date greater that recurrent date with a greater time timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at next date -if start date greater that recurrent date with a greater time timezone`, async (t) => { - // expected date: 5/27/2021 2:00 AM - 4:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 4, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at first date -if start date greater that recurrent date with a lower time timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent monthly appointment at next date -if start date greater that recurrent date with a lower time timezone`, async (t) => { - // expected date: 5/25/2021 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=26', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 4, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.ts deleted file mode 100644 index b07ea0045928..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/weeklyRecurrentAppointment.ts +++ /dev/null @@ -1,613 +0,0 @@ -import url from '../../../../../helpers/getPageUrl'; -import { createWidget } from '../../../../../helpers/createWidget'; -import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; - -const SCREENSHOT_BASE_NAME = 'timezone-weekly-recurrent'; - -fixture.disablePageReloads`Weekly recurrent appointments with timezones` - .page(url(__dirname, '../../../../container.html')); - -// === One day in week tests section === - -test('Should correctly display the recurrent (one day at week) appointment with the same timezone', async (t) => { - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent (one day at week) morning appointment with the same timezone', async (t) => { - // expected date: 4/28/2021 12:00 AM - 2:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-morning-appointment__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent (one day at week) evening appointment with the same timezone', async (t) => { - // expected date: 4/28/2021 10:00 PM - 12:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-evening-appointment__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent (one day at week) appointment -with a greater time timezone and day shift to the next day`, async (t) => { - // expected date: 4/29/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__day-shift__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 22, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 0, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent (one day at week) appointment with a lower timezone and day shift to the previous day', async (t) => { - // expected date: 4/27/2021 6:00 PM - 8:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__day-shift__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const schedulerTimezone = 'Etc/GMT+2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 8, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent (one day at week) appointment with timezone week shift to the previous week', async (t) => { - // expected date: 4/25/2021 6:00 AM - 8:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__week-shift__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 2, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent (one day at week) appointment with timezone week shift to the next week', async (t) => { - // expected date: 4/25/2021 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__week-shift__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 25, 20, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 25, 22, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent (one day at week) appointment -with timezone view period shift to the next view period at the first week`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__next-view-shift__first-week'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 4, 1, 20, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 4, 1, 22, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent (one day at week) appointment -with timezone view period shift to the next view period at the second week`, async (t) => { - // expected date: 5/2/2021 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__next-view-shift__second-week'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 4, 1, 20, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 4, 1, 22, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SA', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent (one day at week) appointment -with timezone view period shift to the previous view period at the first week`, async (t) => { - // expected date: 5/1/2021 6:00 AM - 8:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__previous-view-shift__first-week'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 25, 2, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 25, 4, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent (one day at week) appointment -with timezone view period shift to the previous view period at the second week`, async (t) => { - // expected date: 4/24/2021 6:00 AM - 8:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__previous-view-shift__before-week'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 25, 2, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 25, 4, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 21), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -// === multiple day in week tests section === - -test('Should correctly display recurrent appointment with multiple day in week on the first week in same timezone', async (t) => { - // expected dates: - // 4/28/2021 10:00 AM - 2:00 AM - // 4/29/2021 10:00 AM - 2:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display recurrent appointment with multiple day in week on the second week in same timezone', async (t) => { - // expected dates: - // 5/4/2021 10:00 AM - 2:00 AM - // 5/5/2021 10:00 AM - 2:00 AM - // 5/6/2021 10:00 AM - 2:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display recurrent appointment with multiple day in week on the first week in a greater time timezone', async (t) => { - // expected dates: - // 4/29/2021 1:00 AM - 5:00 AM - // 4/30/2021 1:00 AM - 5:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const timezone = 'Etc/GMT-5'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display recurrent appointment with multiple day in week on the second week in a greater time timezone', async (t) => { - // expected dates: - // 5/5/2021 1:00 AM - 5:00 AM - // 5/6/2021 1:00 AM - 5:00 AM - // 5/7/2021 1:00 AM - 5:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const timezone = 'Etc/GMT-5'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display recurrent appointment with multiple day in week on the first week in a lower time timezone', async (t) => { - // expected dates: - // 4/27/2021 7:00 PM - 11:00 PM - // 4/28/2021 7:00 PM - 11:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__first-week__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const timezone = 'Etc/GMT+5'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display recurrent appointment with multiple day in week on the second week in a lower time timezone', async (t) => { - // expected dates: - // 5/3/2021 7:00 PM - 11:00 PM - // 5/4/2021 7:00 PM - 11:00 PM - // 5/5/2021 7:00 PM - 11:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'multiple-appointment__second-week__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-10'; - const timezone = 'Etc/GMT+5'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -// === maximum timezone offset tests section === - -test(`Should correctly display recurrent appointment with multiple day in week - on the first week with maximum positive timezone offset`, async (t) => { - // expected date: 5/1/2021 12:00 AM - 2:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__first-week__max-positive-timezone-offset'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+12'; - const timezone = 'Etc/GMT-14'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 22, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 30, 0, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE,TH, FT', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display recurrent appointment with multiple day in week - on the first week with maximum positive timezone offset`, async (t) => { - // expected dates: - // 5/6/2021 12:00 AM - 2:00 AM - // 5/7/2021 12:00 AM - 2:00 AM - // 5/8/2021 12:00 AM - 2:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__second-week__max-positive-timezone-offset'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+12'; - const timezone = 'Etc/GMT-14'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 22, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 30, 0, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU,WE,TH', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display recurrent appointment with multiple day in week - on the first week with maximum negative timezone offset`, async (t) => { - // expected dates: - // 4/26/2021 10:00 PM - 12:00 AM - // 5/1/2021 10:00 PM - 12:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__first-week__max-negative-timezone-offset'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-14'; - const timezone = 'Etc/GMT+12'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display recurrent appointment with multiple day in week - on the first week with maximum negative timezone offset`, async (t) => { - // expected dates: - // 5/2/2021 10:00 PM - 12:00 AM - // 5/3/2021 10:00 PM - 12:00 AM - // 5/8/2021 10:00 PM - 12:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'one-appointment__second-week__max-negative-timezone-offset'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-14'; - const timezone = 'Etc/GMT+12'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 0, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 2, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TU,WE', - text: 'Test', - }], - timeZone: timezone, - currentView: 'week', - currentDate: new Date(2021, 4, 5), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.ts deleted file mode 100644 index 6b02db14f31f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/recurrence/yearlyRecurrentAppointment.ts +++ /dev/null @@ -1,341 +0,0 @@ -import url from '../../../../../helpers/getPageUrl'; -import { getAppointmentTime, screenshotTestFunc } from '../timezoneTestingUtils'; -import { createWidget } from '../../../../../helpers/createWidget'; - -const SCREENSHOT_BASE_NAME = 'timezone-yearly-recurrent'; - -fixture.disablePageReloads`Yearly recurrent appointments with timezones` - .page(url(__dirname, '../../../../container.html')); - -test('Should correctly display the recurrent yearly appointment with the same timezone', async (t) => { - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent yearly appointment with a greater time timezone', async (t) => { - // expected date: 4/29/2021 2:00 AM - 4:00 AM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test('Should correctly display the recurrent yearly appointment with a lower time timezone', async (t) => { - // expected date: 4/27/2021 2:00 PM - 4:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'same-date__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 28, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 28, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment if start date -lower than recurrent date with the same timezone`, async (t) => { - // expected date: 4/28/2021 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__same-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment if start date -lower than recurrent date with a greater time timezone`, async (t) => { - // expected date: 4/29/2021 2:00 AM - 4:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__greater-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment if start date -lower than recurrent date with a lower time timezone`, async (t) => { - // expected date: 4/27/2021 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'lower-date__lower-timezone'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 26, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 26, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at first date if start date -greater than recurrent date with the same timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at next date if start date -greater than recurrent date with the same timezone`, async (t) => { - // expected date: 4/28/2022 10:00 AM - 12:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__same-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+1'; - const schedulerTimezone = 'Etc/GMT+1'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 10, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 12, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2022, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at first date if start date -greater than recurrent date with a greater time timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at next date if start date -greater than recurrent date with a greater time timezone`, async (t) => { - // expected date: 4/29/2022 2:00 AM - 4:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__greater-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT+10'; - const schedulerTimezone = 'Etc/GMT-2'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 14, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 16, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2022, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at first date if start date -greater than recurrent date with a lower time timezone`, async (t) => { - // expected no visible date - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__same-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2021, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); - -test(`Should correctly display the recurrent yearly appointment at next date if start date -greater than recurrent date with a lower time timezone`, async (t) => { - // expected date: 4/27/2022 4:00 PM - 6:00 PM - await screenshotTestFunc(t, SCREENSHOT_BASE_NAME, 'greater-date__lower-timezone__next-view-date'); -}).before(async () => { - const appointmentTimezone = 'Etc/GMT-2'; - const schedulerTimezone = 'Etc/GMT+10'; - - await createWidget('dxScheduler', { - dataSource: [{ - allDay: false, - startDate: getAppointmentTime(new Date(2021, 3, 29, 4, 0, 0), appointmentTimezone), - startDateTimeZone: appointmentTimezone, - endDate: getAppointmentTime(new Date(2021, 3, 29, 6, 0, 0), appointmentTimezone), - endDateTimeZone: appointmentTimezone, - recurrenceRule: 'FREQ=YEARLY;BYMONTHDAY=28;BYMONTH=4', - text: 'Test', - }], - timeZone: schedulerTimezone, - currentView: 'week', - currentDate: new Date(2022, 3, 28), - startDayHour: 0, - cellDuration: 180, - width: 1000, - height: 585, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/timezoneTestingUtils.ts b/e2e/testcafe-devextreme/tests/scheduler/common/timezone/timezoneTestingUtils.ts deleted file mode 100644 index b2d80ee20934..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/timezone/timezoneTestingUtils.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -const generateTimezoneOffsets = (): Record => { - const result: Record = {}; - - new Array(27).fill(0).forEach((_, idx) => { - const timezoneIdx = idx - 14; - - switch (true) { - case timezoneIdx < 0: - result[`Etc/GMT${timezoneIdx}`] = timezoneIdx * -1; - break; - case timezoneIdx > 0: - result[`Etc/GMT+${timezoneIdx}`] = timezoneIdx * -1; - break; - default: - result['Etc/GMT'] = 0; - break; - } - }); - - return result; -}; - -export const TIMEZONE_OFFSETS: Record = generateTimezoneOffsets(); -const MINUTES_TO_MILLISECONDS = 60000; -const HOURS_TO_MILLISECONDS = MINUTES_TO_MILLISECONDS * 60; -const DEFAULT_SCHEDULER_SELECTOR = '#container'; - -const getAppointmentTime = (desiredDate: Date, timezone: string): Date => { - const localOffset = desiredDate.getTimezoneOffset() * MINUTES_TO_MILLISECONDS; - const timezoneOffset = TIMEZONE_OFFSETS[timezone] * HOURS_TO_MILLISECONDS; - - return new Date(desiredDate.getTime() - localOffset - timezoneOffset); -}; - -const getScreenshotName = (testModuleName: string, screenshotName: string): string => `${testModuleName}__${screenshotName}.png`; - -const screenshotTestFunc = async ( - t: TestController, - testModuleName: string, - screenshotName: string, - schedulerSelector = DEFAULT_SCHEDULER_SELECTOR, -): Promise => { - const scheduler = new Scheduler(schedulerSelector); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(testModuleName, screenshotName), - { element: scheduler.workSpace }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}; - -export { getAppointmentTime, screenshotTestFunc, getScreenshotName }; diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png deleted file mode 100644 index 9067cb23c285..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-desktop-tooltip-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png deleted file mode 100644 index e90675be77f0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/appointment-mobile-tooltip-screenshot (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png deleted file mode 100644 index 964740350f08..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png deleted file mode 100644 index 128a2ad9a1f1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (generic.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png deleted file mode 100644 index aff6dd4b7abc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/collector-tooltip-focused-list-item (material.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png deleted file mode 100644 index 9ebc15f12dd5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/etalons/tooltip-rendering-with-react (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/hideTooltip.ts b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/hideTooltip.ts deleted file mode 100644 index 0970a2eed088..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/hideTooltip.ts +++ /dev/null @@ -1,31 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Hide tooltip` - .page(url(__dirname, '../../../container.html')); - -test('Appointment tooltip should be hidden when drag is started', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Test'); - - await t - .click(appointment.element) - .expect(scheduler.appointmentTooltip.isVisible()) - .ok(); - - await t - .dragToElement(appointment.element, scheduler.getDateTableCell(4, 0)) - .expect(scheduler.appointmentTooltip.isVisible()) - .notOk(); -}).before(async () => createWidget('dxScheduler', { - views: ['day'], - currentDate: new Date(2021, 3, 26), - startDayHour: 9, - height: 600, - dataSource: [{ - text: 'Test', - startDate: new Date(2021, 3, 26, 9), - endDate: new Date(2021, 3, 26, 9, 30), - }], -})); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts deleted file mode 100644 index 8bdb58b05f07..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/init/widget.setup.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../../../helpers/createWidget'; - -export const createScheduler = async (options = {}): Promise => createWidget('dxScheduler', extend({ - views: ['day'], - dataSource: [], - width: 600, - height: 600, - startDayHour: 9, - firstDayOfWeek: 1, - maxAppointmentsPerCell: 5, - currentView: 'day', - currentDate: new Date(2019, 3, 1), -}, options)); - -export const scroll = async (horizontal: number, vertical: number): Promise => ClientFunction( - () => { window.scroll(horizontal, vertical); }, - { dependencies: { horizontal, vertical } }, -)(); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.ts b/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.ts deleted file mode 100644 index d9540d40d89e..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/tooltipBehaviour/tooltipBehavior.ts +++ /dev/null @@ -1,267 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { ClientFunction } from 'testcafe'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import dataSource from './init/widget.data'; -import { createScheduler, scroll } from './init/widget.setup'; -import url from '../../../../helpers/getPageUrl'; -import { DEFAULT_BROWSER_SIZE } from '../../../../helpers/const'; -import { Themes } from '../../../../helpers/themes'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Appointment tooltip behavior during scrolling in the Scheduler (T755449)` - .page(url(__dirname, '../../../container.html')); - -test.meta({ browserSize: [600, 450] })('The tooltip of collector should not scroll page and immediately hide', async (t) => { - const scheduler = new Scheduler('#container'); - - await scheduler.collectors.find('7').click(); - - await t - .expect(scheduler.appointmentTooltip.isVisible()) - .ok(); -}).before(async () => createScheduler({ - views: [{ - type: 'week', - name: 'week', - maxAppointmentsPerCell: '0', - }], - currentDate: new Date(2017, 4, 25), - startDayHour: 9, - currentView: 'week', - dataSource: [{ - text: 'A', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'B', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'C', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'D', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'E', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'F', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }, { - text: 'G', - startDate: new Date(2017, 4, 22, 9, 30), - endDate: new Date(2017, 4, 22, 11, 30), - }], -})); - -test.meta({ browserSize: [600, 400] })('The tooltip should not hide after automatic scrolling during an appointment click', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .click(appointment.element) - .expect(scheduler.appointmentTooltip.isVisible()) - .ok(); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource, -})); - -test.meta({ browserSize: [600, 400] })('The tooltip should hide after manually scrolling in the browser', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Brochure Design Review'); - - await t - .click(appointment.element) - .expect(scheduler.appointmentTooltip.isVisible()) - .ok(); - await scroll(0, 100); - await t - .wait(500) - .expect(scheduler.appointmentTooltip.isVisible()).notOk(); -}).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource, -})); - -[ - false, - true, -].forEach((adaptivityEnabled) => { - test.meta({ browserSize: adaptivityEnabled ? [600, 400] : DEFAULT_BROWSER_SIZE })('The tooltip screenshot', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointment('Brochure Design Review'); - const expectedSelector = adaptivityEnabled - ? scheduler.appointmentTooltip.mobileElement - : scheduler.appointmentTooltip.element; - const tooltipNamePrefix = adaptivityEnabled ? 'mobile' : 'desktop'; - - await t.click(appointment.element); - - await testScreenshot( - t, - takeScreenshot, - `appointment-${tooltipNamePrefix}-tooltip-screenshot.png`, - { element: scheduler.element }, - ); - - await t - .expect(expectedSelector.exists) - .ok() - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => createScheduler({ - views: ['week'], - currentView: 'week', - dataSource, - adaptivityEnabled, - })); -}); - -test.meta({ - browserSize: DEFAULT_BROWSER_SIZE, - themes: [Themes.fluentBlue, Themes.genericLight, Themes.materialBlue], -})('Collector tooltip focused list item screenshot', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - const collector = scheduler.collectors.find('2 more'); - const { appointmentTooltip } = scheduler; - - await t - .expect(collector.element.exists) - .ok() - .click(collector.element) - .expect(appointmentTooltip.isVisible()) - .ok() - .pressKey('tab'); - - await testScreenshot( - t, - takeScreenshot, - 'collector-tooltip-focused-list-item.png', - { element: scheduler.element }, - ); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [{ - text: 'Text', - startDate: new Date(2017, 4, 22, 9, 30, 0, 0), - endDate: new Date(2017, 4, 22, 10, 30, 0, 0), - }, { - text: 'Text2', - startDate: new Date(2017, 4, 22, 9, 30, 0, 0), - endDate: new Date(2017, 4, 22, 10, 30, 0, 0), - }, { - text: 'Text3', - startDate: new Date(2017, 4, 22, 9, 30, 0, 0), - endDate: new Date(2017, 4, 22, 10, 30, 0, 0), - }], - views: [{ - type: 'month', - maxAppointmentsPerCell: 1, - }], - currentView: 'month', - currentDate: new Date(2017, 4, 22), -})); - -test.meta({ browserSize: [600, 1000] })('Tooltip on mobile devices should have enough hight if there are async templates (React)', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - const resolveAllRenderDeferreds = ClientFunction(() => { - (window as any).deferreds - .filter((d) => d.state() === 'pending') - .map((d) => d.resolve()); - }); - - await t.click(scheduler.headerPanel.element); // just click away - await t.click(scheduler.collectors.find('7').element); - await resolveAllRenderDeferreds(); - - await testScreenshot(t, takeScreenshot, 'tooltip-rendering-with-react.png'); - - // check again after re-doing steps - - await t.click(scheduler.headerPanel.element); // just click away - await t.click(scheduler.collectors.find('7').element); - await resolveAllRenderDeferreds(); - - await testScreenshot(t, takeScreenshot, 'tooltip-rendering-with-react.png'); - - await t.expect(compareResults.isValid()).ok(compareResults.errorMessages()); -}).before(async () => { - const prepareRenderDeferreds = ClientFunction(() => { - (window as any).deferreds = []; - }); - await prepareRenderDeferreds(); - - await createWidget('dxScheduler', { - currentDate: new Date(2017, 4, 25), - currentView: 'month', - adaptivityEnabled: true, - templatesRenderAsynchronously: true, - integrationOptions: { - templates: { - appointmentTooltip: { - render(args) { - const deferred = $.Deferred(); - (window as any).deferreds.push(deferred); - deferred.done(() => { - args.container.append( - $('
') - .height(50) - .text(args.model.appointmentData.text), - ); - args.onRendered(); - }); - }, - }, - }, - }, - dataSource: [{ - text: 'A', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'B', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'C', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'D', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'E', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'F', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }, { - text: 'G', - startDate: new Date(2017, 4, 22, 0, 30), - endDate: new Date(2017, 4, 22, 0, 30), - }], - }); -}).after(async () => { - await ClientFunction(() => { - delete (window as any).deferreds; - })(); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/twoSchedulers.ts b/e2e/testcafe-devextreme/tests/scheduler/common/twoSchedulers.ts deleted file mode 100644 index 8f5b67b7e144..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/twoSchedulers.ts +++ /dev/null @@ -1,28 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Interaction of two schedulers` - .page(url(__dirname, '../../container.html')); - -const createScheduler = async (container): Promise => { - await createWidget('dxScheduler', { - dataSource: [], - currentDate: new Date(2022, 3, 5), - height: 600, - views: ['day'], - currentView: 'day', - }, container); -}; - -test('First scheduler should work after removing second (T1063130)', async (t) => { - const scheduler = new Scheduler('#container'); - const { navigator } = scheduler.toolbar; - - await t - .click(navigator.nextButton) - .expect(navigator.caption.textContent).eql('6 April 2022'); -}).before(async () => { - await createScheduler('#container'); - await createScheduler('#otherContainer'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1091980.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1091980.ts deleted file mode 100644 index ceec802907ba..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1091980.ts +++ /dev/null @@ -1,45 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler: Virtual scrolling` - .page(url(__dirname, '../../../container.html')); - -test('it should correctly render virtual table if scheduler sizes are set in % (T1091980)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.allDayTableCells.count) - .eql(24) - .expect(scheduler.dateTableCells.count) - .eql(576); - - await scheduler.scrollTo(new Date(2021, 5, 12, 19)); - - await t - .expect(scheduler.allDayTableCells.count) - .eql(24) - .expect(scheduler.dateTableCells.count) - .eql(576); -}).before(async () => { - await createWidget( - 'dxScheduler', - { - width: '100%', - height: '100%', - dataSource: [], - views: [{ - type: 'week', - intervalCount: 10, - }], - currentView: 'week', - currentDate: new Date(2021, 3, 5), - startDayHour: 8, - endDayHour: 20, - crossScrollingEnabled: true, - scrolling: { - mode: 'virtual', - }, - }, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1258030.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1258030.ts deleted file mode 100644 index 84481a4aff7a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1258030.ts +++ /dev/null @@ -1,39 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { scrollTo } from '../../helpers/utils'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Virtual scrolling` - .page(url(__dirname, '../../../container.html')); - -test('it should render recurrence appointment with correct width in month timeline view for virtual scrolling', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler('#container'); - - await scrollTo(3000, 0); - await testScreenshot(t, takeScreenshot, 'virtual_scroll_timeline_3000.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget( - 'dxScheduler', - { - height: 300, - currentView: 'timelineMonth', - views: ['timelineMonth'], - currentDate: new Date(2024, 9, 1), - dataSource: [{ - text: 'appointment', - startDate: new Date(2024, 9, 1), - endDate: new Date(2024, 9, 2), - recurrenceRule: 'FREQ=DAILY', - }], - scrolling: { mode: 'virtual' }, - }, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1287345.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1287345.ts deleted file mode 100644 index 06ef4fe378d7..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/T1287345.ts +++ /dev/null @@ -1,41 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { scrollTo } from '../../helpers/utils'; -import { - insertStylesheetRulesToPage, -} from '../../../../helpers/domUtils'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Virtual scrolling` - .page(url(__dirname, '../../../container.html')); - -test.meta({ browserSize: [600, 800] })('Cell width set in css should be correct for virtual scrolling after scroll down (T1287345)', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - const scheduler = new Scheduler('#container'); - - await scrollTo(0, 3000); - await t.click(scheduler.toolbar.navigator.nextButton); - await testScreenshot(t, takeScreenshot, 'virtual_scroll_cell_width.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await insertStylesheetRulesToPage(` - #container .dx-scheduler-cell-sizes-horizontal { - width: 200px !important; - }`); - - await createWidget('dxScheduler', { - dataSource: [], - currentView: 'week', - scrolling: { - mode: 'virtual', - }, - currentDate: new Date(2021, 2, 28), - height: 300, - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/appointments.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/appointments.ts deleted file mode 100644 index 55e5b91b2019..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/appointments.ts +++ /dev/null @@ -1,89 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import { getStyleAttribute, setStyleAttribute } from '../../../../helpers/domUtils'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { scrollToDate } from '../../helpers/utils'; - -fixture.disablePageReloads`Scheduler: Virtual Scrolling` - .page(url(__dirname, '../../../container.html')); - -test('Appointment should not repaint after scrolling if present on viewport', async (t) => { - const scheduler = new Scheduler('#container'); - const { element } = scheduler.getAppointment('', 0); - - await setStyleAttribute(element, 'background-color: red;'); - const initialStyle = await getStyleAttribute(element); - - await scrollToDate(new Date(2020, 8, 17, 4)); - await t.wait(300); - - await t.expect(await getStyleAttribute(element)).eql(initialStyle); -}).before(async () => { - await createWidget('dxScheduler', { - height: 600, - width: 800, - currentDate: new Date(2020, 8, 7), - scrolling: { - mode: 'virtual', - }, - currentView: 'week', - views: [{ - type: 'week', - intervalCount: 10, - }], - dataSource: [{ - startDate: new Date(2020, 8, 13, 2), - endDate: new Date(2020, 8, 13, 3), - text: 'test', - }], - }); -}); - -test('The appointment should render correctly when scrolling vertically (T1263428)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scrollToDate(new Date('2024-11-12T09:00:00+0100')); - - await testScreenshot(t, takeScreenshot, 'T1263428-virtual-scrolling-render-appointment.png', { - element: scheduler.element, - }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - height: 500, - width: 900, - timeZone: 'Europe/Vienna', - dateSerializationFormat: 'yyyy-MM-ddTHH:mm:ssxx', - currentDate: new Date(2024, 10, 11, 20, 54, 23, 361), - cellDuration: 20, - firstDayOfWeek: 1, - startDayHour: 12.0, - endDayHour: 18.0, - allDayPanelMode: 'hidden', - scrolling: { - mode: 'virtual', - }, - crossScrollingEnabled: true, - currentView: 'week', - textExpr: 'Subject', - startDateExpr: 'StartDate', - endDateExpr: 'EndDate', - views: [{ - type: 'week', - groupByDate: true, - startDayHour: 6.0, - endDayHour: 22.0, - }], - dataSource: [{ - Subject: 'Website Re-Design Plan', - StartDate: new Date('2024-11-11T12:10:00+0100'), - EndDate: new Date('2024-11-12T21:00:00+0100'), - }], - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png deleted file mode 100644 index a65dfc669713..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/T1263428-virtual-scrolling-render-appointment (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png deleted file mode 100644 index 9be64e6190be..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png deleted file mode 100644 index 3c7c9c0a6610..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png deleted file mode 100644 index d6611a632a21..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-horizontal-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png deleted file mode 100644 index 56c4c653b591..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png deleted file mode 100644 index 80c5119c0e0d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png deleted file mode 100644 index ee732181b7ad..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-month-vertical-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png deleted file mode 100644 index e77391c1a5df..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png deleted file mode 100644 index b18ebbdb9447..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png deleted file mode 100644 index bf0a896a2f4b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-horizontal-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png deleted file mode 100644 index 49a77142830c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png deleted file mode 100644 index ff36fa5c6ce8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png deleted file mode 100644 index 83434b2758b5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-week-vertical-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png deleted file mode 100644 index 9b9e892ae49c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png deleted file mode 100644 index 427273de8c6c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png deleted file mode 100644 index 41ab12d68526..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-horizontal-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png deleted file mode 100644 index 4214fe0bf695..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-end (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png deleted file mode 100644 index d0914d7c32b1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-middle (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png deleted file mode 100644 index 812c2cfaa5f0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-many-cells-workWeek-vertical-start (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png deleted file mode 100644 index b03df3a4f1d1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 8286a3a8bfee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 00f5e211268d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 6897dd22ef4f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png deleted file mode 100644 index b03df3a4f1d1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index cdacb2beb910..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index f92b54a2732c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index e1497485c14a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-month-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png deleted file mode 100644 index 42c13d06e4af..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timeline-month-change-current-date-virtual (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png deleted file mode 100644 index 0bacb67a5a12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index dac7c874e1e1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index d1b77a7b0b11..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 60c3d8c0f839..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png deleted file mode 100644 index ecb7a62e2f9e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 367200a896f6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index d34c4905b9b0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 444c57c01547..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineDay-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png deleted file mode 100644 index a05bc124fdc3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 1dd66462aa76..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 6fbe33eabadb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 989b5a51b087..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png deleted file mode 100644 index 490ed0f908f4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 14e4aa6aff15..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 38190da53069..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 87779e3166e1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineMonth-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png deleted file mode 100644 index a84c90a090e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index c11a9b471285..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index cc90043e32f3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 845c6124ddeb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png deleted file mode 100644 index 6cb22c62a662..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index dc636ad43048..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index e80bbf70302e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index cfd4dc1f07e5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-timelineWeek-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png deleted file mode 100644 index 2d8051693c38..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 9273816cbe03..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 71fa1ce3381d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 2da9a1359353..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-after-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png deleted file mode 100644 index 6953312423ba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png deleted file mode 100644 index 7077ea3f0395..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-grouping-by-date (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png deleted file mode 100644 index 2afc633c783a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png deleted file mode 100644 index 6769c293424e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual-scrolling-week-before-scroll-horizontal-grouping-scaling (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png deleted file mode 100644 index 5625f3dc84f0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_cell_width (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png deleted file mode 100644 index 405a3a22f53f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/etalons/virtual_scroll_timeline_3000 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/layout.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/layout.ts deleted file mode 100644 index 7ace52cf753a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/layout.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { scrollToDate } from '../../helpers/utils'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { - resources, - createDataSetForScreenShotTests, - views, - horizontalViews, - scrollConfig, - groupedByDateViews, -} from './utils'; - -fixture.disablePageReloads`Scheduler: Virtual Scrolling` - .page(url(__dirname, '../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - dataSource: createDataSetForScreenShotTests(), - currentDate: new Date(2021, 0, 1), - height: 600, - resources, - views, - currentView: 'day', - scrolling: { mode: 'virtual' }, - startDayHour: 0, - endDayHour: 3, - ...additionalProps, - }); -}; - -test('Virtual scrolling layout in scheduler views', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // TODO: views[0] is day view and we have a bug in its CSS - // It is not advisable to create screenshots for incorrect layout - for (let i = 1; i < views.length; i += 1) { - const view = views[i]; - - await scheduler.option('currentView', view.type); - await scrollToDate(scrollConfig[i].firstDate); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-after-scroll.png`); - - await scrollToDate(scrollConfig[i].lastDate); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-before-scroll.png`); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createScheduler({}); -}); - -test('Virtual scrolling layout in scheduler views when horizontal grouping is enabled', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // TODO: views[0] is day view and we have a bug in its CSS - // It is not advisable to create screenshots for incorrect layout - for (let i = 1; i < views.length; i += 1) { - const view = views[i]; - - await scheduler.option('currentView', view.type); - await scrollToDate(scrollConfig[i].firstDate, { resourceId: 6 }); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-after-scroll-horizontal-grouping.png`); - - await scrollToDate(scrollConfig[i].lastDate, { resourceId: 0 }); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-before-scroll-horizontal-grouping.png`); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createScheduler({ - views: horizontalViews, - groups: ['resourceId'], - }); -}); - -test('Virtual scrolling layout in scheduler views when grouping by date is enabled', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // TODO: views[0] is day view and we have a bug in its CSS - // It is not advisable to create screenshots for incorrect layout - for (let i = 1; i < views.length; i += 1) { - const view = views[i]; - - await scheduler.option('currentView', view.type); - - await scrollToDate(scrollConfig[i].firstDate, { resourceId: 3 }); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-after-scroll-grouping-by-date.png`); - - await scrollToDate(scrollConfig[i].lastDate, { resourceId: 0 }); - - await testScreenshot(t, takeScreenshot, `virtual-scrolling-${view.type}-before-scroll-grouping-by-date.png`); - } - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createScheduler({ - views: groupedByDateViews, - groups: ['resourceId'], - }); -}); - -test('Header cells should be aligned with date-table cells in timeline-month when current date changes and virtual scrolling is used', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler('#container'); - - await scheduler.option('currentDate', new Date(2020, 11, 1)); - - await testScreenshot(t, takeScreenshot, 'virtual-scrolling-timeline-month-change-current-date-virtual.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createScheduler({ - currentDate: new Date(2020, 10, 1), - currentView: 'timelineMonth', - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/many-cells.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/many-cells.ts deleted file mode 100644 index eeccf526cebb..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/many-cells.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; - -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import type { ViewType, Orientation } from 'devextreme/ui/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { generateOptionMatrix } from '../../../../helpers/generateOptionMatrix'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Virtual scrolling (many cells)` - .page(url(__dirname, '../../../container.html')); - -const buildScreenshotName = (viewType: ViewType, orientation: Orientation, step: string) => `virtual-scrolling-many-cells-${viewType}-${orientation}-${step}.png`; - -const testCases = generateOptionMatrix<{ viewType: ViewType; groupOrientation: Orientation }>({ - viewType: ['month', 'week', 'workWeek'], - groupOrientation: ['horizontal', 'vertical'], -}); - -testCases.forEach(({ viewType, groupOrientation }) => { - const resourceCount = 400; - - test(`it should correctly render virtual table if a lot of resources are presented for ${viewType} view and ${groupOrientation} orientation (T1205597, T1137490)`, async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot(t, takeScreenshot, buildScreenshotName(viewType, groupOrientation, 'start'), { element: scheduler.element }); - - await scheduler.scrollTo(new Date(2024, 1, 1, 1), { groupId: resourceCount / 2 }); - - await testScreenshot(t, takeScreenshot, buildScreenshotName(viewType, groupOrientation, 'middle'), { element: scheduler.element }); - - await scheduler.scrollTo(new Date(2024, 1, 1, 1), { groupId: resourceCount - 1 }); - - await testScreenshot(t, takeScreenshot, buildScreenshotName(viewType, groupOrientation, 'end'), { element: scheduler.element }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - const resources = Array.from({ length: resourceCount }, (_, i) => ({ - id: i, - text: `Resource ${i}`, - })); - - const appointmentDateInfo = Array.from({ length: 29 }) - .map((_, i) => ({ - startDate: new Date(2024, 1, i + 1, 1), - endDate: new Date(2024, 1, i + 1, 4), - })); - - const appointments = Array.from({ length: resourceCount }) - .map((_, resourceIndex) => appointmentDateInfo.map(({ startDate, endDate }) => ({ - text: `Appointment for Resource ${resourceIndex}`, - startDate, - endDate, - groupId: resourceIndex, - }))) - .flat(); - - await createWidget( - 'dxScheduler', - { - height: 600, - currentDate: new Date(2024, 1, 1), - dataSource: appointments, - views: [{ - type: viewType, - groupOrientation, - }], - currentView: viewType, - scrolling: { - mode: 'virtual', - }, - groups: ['groupId'], - resources: [{ - fieldExpr: 'groupId', - dataSource: resources, - label: 'Group', - }], - }, - ); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/resources.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/resources.ts deleted file mode 100644 index 98bbf123701d..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/resources.ts +++ /dev/null @@ -1,52 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler: Generic theme layout` - .page(url(__dirname, '../../../container.html')); - -test('Should correctly render view if virtual scrolling and groupByDate', async (t) => { - const scheduler = new Scheduler('#container'); - const appointment = scheduler.getAppointmentByIndex(0); - - await t - .expect(appointment.element.exists) - .ok(); -}).before(async () => { - await createWidget( - 'dxScheduler', - { - height: 600, - width: 200, - dataSource: [{ - userId: 1, - startDate: new Date(2022, 0, 16, 14, 30), - endDate: new Date(2022, 0, 16, 15), - }], - currentDate: new Date(2022, 0, 15), - views: ['month'], - currentView: 'month', - groupByDate: true, - groups: [ - 'userId', - ], - resources: [ - { - fieldExpr: 'userId', - allowMultiple: false, - dataSource: [ - { id: 1, text: 'User 1' }, - { id: 2, text: 'User 2' }, - { id: 3, text: 'User 3' }, - { id: 4, text: 'User 4' }, - { id: 5, text: 'User 5' }, - ], - label: 'User', - }, - ], - scrolling: { - mode: 'virtual', - }, - }, - ); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/utils.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/utils.ts deleted file mode 100644 index e0ad0e08483f..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/utils.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { ClientFunction } from 'testcafe'; - -export const resources = [{ - fieldExpr: 'resourceId', - allowMultiple: true, - dataSource: [ - { - text: 'Resource 0', - id: 0, - color: '#20B2AA', - }, { - text: 'Resource 1', - id: 1, - color: '#87CEEB', - }, { - text: 'Resource 2', - id: 2, - color: '#228B22', - }, { - text: 'Resource 3', - id: 3, - color: '#98FB98', - }, { - text: 'Resource 4', - id: 4, - color: '#2E8B57', - }, { - text: 'Resource 5', - id: 5, - color: '#66CDAA', - }, { - text: 'Resource 6', - id: 6, - color: '#008080', - }, { - text: 'Resource 7', - id: 7, - color: '#00FFFF', - }, - ], - label: 'Priority', -}]; - -export const views = [{ - type: 'day', - intervalCount: 7, - endDayHour: 8, -}, { - type: 'week', - intervalCount: 10, - endDayHour: 8, -}, { - type: 'month', -}, { - type: 'timelineDay', - intervalCount: 7, -}, { - type: 'timelineWeek', - intervalCount: 3, -}, { - type: 'timelineMonth', -}]; - -export const verticalViews = views - .map((view) => ({ - ...view, - groupOrientation: 'vertical', - })); -export const horizontalViews = views - .map((view) => ({ - ...view, - groupOrientation: 'horizontal', - })); -export const groupedByDateViews = views - .map((view) => ({ - ...view, - groupOrientation: 'horizontal', - groupByDate: true, - })); - -export const createDataSetForScreenShotTests = (): Record[] => { - const result: { - text: string; - startDate: Date; - endDate: Date; - resourceId: number[]; - allDay?: boolean; - }[] = []; - for (let day = 1; day < 31; day += 1) { - result.push({ - text: '1 appointment', - startDate: new Date(2021, 0, day, 0), - endDate: new Date(2021, 0, day, 1), - resourceId: [0, 1, 2, 3, 4, 5, 6, 7], - }); - - result.push({ - text: '2 appointment', - startDate: new Date(2021, 0, day, 2), - endDate: new Date(2021, 0, day, 3), - resourceId: [0, 1, 2, 3, 4, 5, 6, 7], - }); - } - - return result; -}; - -export const scrollConfig = [{ - firstDate: new Date(2021, 0, 7), - lastDate: new Date(2021, 0, 1), -}, { - firstDate: new Date(2021, 0, 15), - lastDate: new Date(2020, 11, 27), -}, { - firstDate: new Date(2021, 0, 1), - lastDate: new Date(2020, 11, 27), -}, { - firstDate: new Date(2021, 0, 7), - lastDate: new Date(2021, 0, 1), -}, { - firstDate: new Date(2021, 0, 15), - lastDate: new Date(2020, 11, 27), -}, { - firstDate: new Date(2021, 0, 30), - lastDate: new Date(2021, 0, 1), -}]; - -export const setZoomLevel = ClientFunction((zoomLevel: number) => { - $('body').css('zoom', `${zoomLevel}%`); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/zooming.ts b/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/zooming.ts deleted file mode 100644 index 7465a22106c1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/virtualScrolling/zooming.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { scrollToDate } from '../../helpers/utils'; -import { testScreenshot } from '../../../../helpers/themeUtils'; -import { - resources, - views, - horizontalViews, - setZoomLevel, - scrollConfig, -} from './utils'; - -// We don't support zooming (known limitation) -fixture.disablePageReloads`Scheduler: Virtual Scrolling with Zooming` - .page(url(__dirname, '../../../container.html')); - -const createScheduler = async ( - additionalProps: Record, -): Promise => { - await createWidget('dxScheduler', { - currentDate: new Date(2021, 0, 1), - height: 600, - resources, - views, - currentView: 'day', - scrolling: { mode: 'virtual' }, - startDayHour: 0, - endDayHour: 3, - ...additionalProps, - }); -}; - -test('Virtual scrolling layout in scheduler views when horizontal grouping is enabled and zooming is used', async (t) => { - const scheduler = new Scheduler('#container'); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - // TODO: views[0] is day view and we have a bug in its CSS - // It is not advisable to create screenshots for incorrect layout - for (let i = 1; i < views.length; i += 1) { - const view = views[i]; - - await scheduler.option('currentView', view.type); - - await testScreenshot( - t, - takeScreenshot, - `virtual-scrolling-${view.type}-before-scroll-horizontal-grouping-scaling.png`, - ); - - await scrollToDate(scrollConfig[i].firstDate, { resourceId: 7 }); - - await testScreenshot( - t, - takeScreenshot, - `virtual-scrolling-${view.type}-after-scroll-horizontal-grouping-scaling.png`, - ); - } - - await setZoomLevel(0); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await setZoomLevel(125); - await createScheduler({ - views: horizontalViews, - groups: ['resourceId'], - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/common/workSpace.ts b/e2e/testcafe-devextreme/tests/scheduler/common/workSpace.ts deleted file mode 100644 index e013db874fdc..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/common/workSpace.ts +++ /dev/null @@ -1,365 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Button from 'devextreme-testcafe-models/button'; -import Scheduler, { CLASS } from 'devextreme-testcafe-models/scheduler'; -import { extend } from 'devextreme/core/utils/extend'; -import { createWidget } from '../../../helpers/createWidget'; -import url from '../../../helpers/getPageUrl'; -import { hasHorizontalScroll, insertStylesheetRulesToPage } from '../../../helpers/domUtils'; -import { testScreenshot } from '../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler: Workspace` - .page(url(__dirname, '../../container.html')); - -const FIXED_PARENT_CONTAINER_SIZE = ` -#parentContainer { - width: 400px; - height: 500px; -} - -#container { - height: 100%; -} -`; - -const createScheduler = async (options = {}): Promise => { - await createWidget('dxScheduler', extend(options, { - dataSource: [], - startDayHour: 9, - height: 600, - })); -}; - -const getResourcesDataSource = (count: number) => new Array(count) - .fill(null) - .map((_, idx) => ({ - id: idx, - name: idx.toString(), - })); - -test('Vertical selection between two workspace cells should focus cells between them (T804954)', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(3, 0)) - .expect(scheduler.dateTableCells.filter('.dx-state-focused').count).eql(4); -}).before(async () => createScheduler({ - views: [{ name: '2 Days', type: 'day', intervalCount: 2 }], - currentDate: new Date(2015, 1, 9), - currentView: 'day', -})); - -test('Horizontal selection between two workspace cells should focus cells between them', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .dragToElement(scheduler.getDateTableCell(0, 0), scheduler.getDateTableCell(0, 3)) - .expect(scheduler.dateTableCells.filter('.dx-state-focused').count) - .eql(4); -}).before(async () => createScheduler({ - views: ['timelineWeek'], - currentDate: new Date(2015, 1, 9), - currentView: 'timelineWeek', - groups: ['roomId'], - resources: [{ - fieldExpr: 'roomId', - label: 'Room', - dataSource: [{ - text: '1', id: 1, - }, { - text: '2', id: 2, - }], - }], -})); - -test('Vertical grouping should work correctly when there is one group', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.dateTableCells.count) - .eql(336); -}).before(async () => createWidget('dxScheduler', { - views: [{ - type: 'week', - groupOrientation: 'vertical', - }], - currentView: 'week', - dataSource: [], - groups: ['priorityId'], - resources: [{ - field: 'priorityId', - dataSource: [{ id: 1, color: 'black' }], - }], - height: 600, -})); - -const hideShow = ClientFunction((container) => { - const instance = ($(container) as any).dxScheduler('instance'); - instance.option('visible', !instance.option('visible')); -}); - -const resize = ClientFunction((container) => { - const instance = ($(container) as any).dxScheduler('instance'); - // eslint-disable-next-line no-underscore-dangle - instance._dimensionChanged(); - // eslint-disable-next-line no-underscore-dangle - instance._workSpace._dimensionChanged(); -}); - -test('Hidden scheduler should not resize', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await hideShow('#container'); - await resize('#container'); - await hideShow('#container'); - - await testScreenshot(t, takeScreenshot, 'scheduler-after-hiding-and-resizing.png'); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => createWidget('dxScheduler', { - dataSource: [ - { - text: 'Google AdWords Strategy', - ownerId: [2], - startDate: new Date('2021-02-01T16:00:00.000Z'), - endDate: new Date('2021-02-01T17:30:00.000Z'), - priority: 1, - }, - ], - resources: [ - { - fieldExpr: 'priority', - dataSource: [ - { - text: 'Priority 1', - id: 1, - color: '#1e90ff', - }, - ], - label: 'Priority', - }, - ], - groups: ['priority'], - views: [ - { - type: 'timelineMonth', - groupOrientation: 'vertical', - }, - ], - crossScrollingEnabled: true, - currentView: 'timelineMonth', - currentDate: new Date(2021, 1, 1), - height: 400, -})); - -test('All day panel should be hidden when allDayPanelMode=hidden by initializing scheduler', async (t) => { - const scheduler = new Scheduler('#container'); - - await t - .expect(scheduler.allDayTitle.exists) - .eql(false); - - await t - .expect(scheduler.allDayRow.exists) - .eql(false); -}).before(async () => createWidget('dxScheduler', { - currentDate: new Date(2021, 2, 28), - currentView: 'day', - allDayPanelMode: 'hidden', - dataSource: [{ - text: 'Book Flights to San Fran for Sales Trip', - startDate: new Date('2021-03-28T17:00:00.000Z'), - endDate: new Date('2021-03-28T18:00:00.000Z'), - allDay: true, - }, { - text: 'Customer Workshop', - startDate: new Date('2021-03-29T17:30:00.000Z'), - endDate: new Date('2021-04-03T19:00:00.000Z'), - }], -})); - -// visual: generic.light -// visual: fluent.blue.light -// visual: material.blue.light -test('Month workspace should be scrollable to the last row (T1203250)', async (t) => { - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await scheduler.scrollTo(new Date(2019, 5, 8, 0, 0)); - - await testScreenshot(t, takeScreenshot, 'scrollable-month-workspace.png', { element: scheduler.workSpace }); - - await t - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - views: ['month'], - currentView: 'month', - currentDate: new Date(2019, 4, 1), - height: 250, - }); -}); - -// visual: generic.light -// visual: generic.dark -// visual: fluent.blue.light -// visual: fluent.blue.dark -// visual: fluent.saas.light -// visual: fluent.saas.dark -// visual: material.blue.light -// visual: material.blue.dark -test('Check cell hover state', async (t) => { - // arrange - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const firstDateTableCell = scheduler.getDateTableCell(0, 0); - - // act - await t - .hover(firstDateTableCell) - .expect(firstDateTableCell.hasClass(CLASS.hoverCell)) - .ok(); - - // assert - await testScreenshot(t, takeScreenshot, 'scheduler-week-cell-hover-state.png', { element: scheduler.workSpace }); - - await t - .hover(scheduler.getDateTableCell(0, 1)) - .expect(scheduler.getDateTableCell(0, 1).hasClass(CLASS.hoverCell)) - .ok() - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - views: ['week'], - currentView: 'week', - currentDate: new Date(2019, 4, 1), - height: 500, - }); -}); - -test('Check cell active state', async (t) => { - // arrange - const scheduler = new Scheduler('#container'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const firstDateTableCell = scheduler.getDateTableCell(0, 0); - - // act - await t - .hover(firstDateTableCell) - .expect(firstDateTableCell.hasClass(CLASS.hoverCell)) - .ok() - .dispatchEvent(firstDateTableCell, 'mousedown') - .expect(firstDateTableCell.hasClass(CLASS.activeCell)) - .ok(); - - // assert - await testScreenshot(t, takeScreenshot, 'scheduler-week-cell-active-state.png', { element: scheduler.workSpace }); - - await t - .dispatchEvent(firstDateTableCell, 'mouseup') - .expect(firstDateTableCell.hasClass(CLASS.activeCell)) - .notOk() - .hover(scheduler.getDateTableCell(0, 1)) - .expect(scheduler.getDateTableCell(0, 1).hasClass(CLASS.hoverCell)) - .ok() - .expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - views: ['week'], - currentView: 'week', - currentDate: new Date(2019, 4, 1), - height: 500, - }); -}); - -[ - 'day', - 'week', - 'workWeek', - 'month', -].forEach((viewName) => { - test(`[T1225772]: should not have the horizontal scroll in horizontal views when the crossScrollingEnabled: true (view:${viewName})`, async (t) => { - const scheduler = new Scheduler('#container'); - const hasHScroll = await hasHorizontalScroll(scheduler.dateTableScrollableContainer); - - await t.expect(hasHScroll).notOk('workspace has the horizontal scrollbar'); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - currentView: viewName, - currentDate: '2024-01-01T00:00:00', - crossScrollingEnabled: true, - height: 300, - }); - }); -}); - -// NOTE: Moved "as is" from the QUnit integration.resources.tests (see history) -test('[T716993]: should has horizontal scrollbar with multiple resources and fixed height container', async (t) => { - const scheduler = new Scheduler('#container'); - const hasHScroll = await hasHorizontalScroll(scheduler.dateTableScrollableContainer); - - await t.expect(hasHScroll).ok('workspace hasn\'t the horizontal scrollbar'); -}).before(async () => { - const resourcesDataSource = getResourcesDataSource(10); - - await insertStylesheetRulesToPage(FIXED_PARENT_CONTAINER_SIZE); - return createWidget('dxScheduler', { - dataSource: [], - groups: ['id'], - resources: [{ - dataSource: resourcesDataSource, - displayExpr: 'name', - valueExpr: 'id', - fieldExpr: 'id', - allowMultiple: false, - }], - crossScrollingEnabled: true, - }); -}); - -test('Scheduler appointments should change color on update resources', async (t) => { - const button = new Button('#container'); - const scheduler = new Scheduler('#otherContainer'); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await t.click(button.element); - - await testScreenshot(t, takeScreenshot, 'scheduler-appointments-should-update-color.png', { element: scheduler.workSpace }); - await t.expect(compareResults.isValid()).ok(compareResults.errorMessages()); -}).before(async () => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource: [{ - text: 'Website Re-Design Plan', - startDate: new Date('2021-03-29T16:30:00.000Z'), - endDate: new Date('2021-03-29T18:30:00.000Z'), - resource: 1, - }], - views: ['week', 'month'], - currentView: 'week', - currentDate: new Date(2021, 2, 28), - startDayHour: 9, - height: 730, - resources: [{ - fieldExpr: 'resource', - dataSource: [{ id: 1, text: 'res 1', color: 'red' }], - }], - }, '#otherContainer'); - await createWidget('dxButton', { - text: 'Change resources', - onClick() { - const schedulerWidget = ($('#otherContainer') as any).dxScheduler('instance'); - schedulerWidget.option('resources', [{ - fieldExpr: 'resource', - dataSource: [{ id: 1, text: 'new res 1', color: 'pink' }], - }]); - schedulerWidget.getDataSource().reload(); - }, - }, '#container'); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/helpers/utils.ts b/e2e/testcafe-devextreme/tests/scheduler/helpers/utils.ts deleted file mode 100644 index fbc7f6119ef1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/helpers/utils.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ClientFunction } from 'testcafe'; - -export const scrollTo = ClientFunction((x, y) => { - const instance = ($('#container') as any).dxScheduler('instance'); - const scrollable = instance.getWorkSpaceScrollable(); - - scrollable.scrollTo({ top: y, left: x }); -}); - -export const scrollToDate = ClientFunction((date: Date, groups?: Record) => { - const instance = ($('#container') as any).dxScheduler('instance'); - - instance.scrollTo(date, groups); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/appointmentCollectorTimezone.ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/appointmentCollectorTimezone.ts deleted file mode 100644 index f5799160193d..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/appointmentCollectorTimezone.ts +++ /dev/null @@ -1,57 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../helpers/createWidget'; -import { getTimezoneTest, MACHINE_TIMEZONES } from '../../../helpers/machineTimezones'; -import url from '../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Scheduler - Appointment Collector Timezone` - .page(url(__dirname, '../../container.html')); - -[ - MACHINE_TIMEZONES.EuropeBerlin, -].forEach((machineTimezone) => { - getTimezoneTest([machineTimezone])( - 'Appointment collector button should have correct date', - async (t) => { - const scheduler = new Scheduler('#container'); - const schedulerCollector = scheduler.collectors.get(0); - const expectedDate = 'March 5, 2021'; - - const ariaRoleDescription = await schedulerCollector.element().getAttribute('aria-roledescription'); - - await t - .expect(scheduler.element().exists) - .ok() - .expect(ariaRoleDescription) - .contains(expectedDate, `Collector should display ${expectedDate} after timezone conversion`); - }, - ).before(async () => { - await createWidget('dxScheduler', { - timeZone: 'America/Los_Angeles', - dataSource: [ - { - text: 'Website Re-Design Plan', - startDate: new Date('2021-03-05T15:30:00.000Z'), - endDate: new Date('2021-03-05T17:00:00.000Z'), - }, - { - text: 'Complete Shipper Selection Form', - startDate: new Date('2021-03-05T15:30:00.000Z'), - endDate: new Date('2021-03-05T17:00:00.000Z'), - }, - { - text: 'Upgrade Server Hardware', - startDate: new Date('2021-03-05T19:00:00.000Z'), - endDate: new Date('2021-03-05T21:15:00.000Z'), - }, - { - text: 'Upgrade Personal Computers', - startDate: new Date('2021-03-05T23:45:00.000Z'), - endDate: new Date('2021-03-06T01:30:00.000Z'), - }, - ], - currentView: 'month', - currentDate: new Date(2021, 2, 1), - maxAppointmentsPerCell: 3, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/check.ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/check.ts deleted file mode 100644 index ac3525da6f9a..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/check.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ClientFunction } from 'testcafe'; -import { getTimezoneTest, MACHINE_TIMEZONES, MachineTimezonesType } from '../../../helpers/machineTimezones'; -import url from '../../../helpers/getPageUrl'; - -fixture - .disablePageReloads`Runner machine timezone checks` - .page(url(__dirname, '../../container.html')); - -type CheckType = [MachineTimezonesType, string]; -const checks: CheckType[] = [ - [MACHINE_TIMEZONES.AmericaLosAngeles, 'Mon Jan 01 2024 10:00:00 GMT-0800 (Pacific Standard Time)'], - [MACHINE_TIMEZONES.EuropeBerlin, 'Mon Jan 01 2024 10:00:00 GMT+0100 (Central European Standard Time)'], -]; - -checks.forEach(([timezone, expectedResult]) => { - getTimezoneTest([timezone])(`${timezone} check`, async (t) => { - const dateFromBrowser = await ClientFunction(() => new Date(2024, 0, 1, 10).toString())(); - await t.expect(dateFromBrowser).eql(expectedResult); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/dragAndDropDst.ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/dragAndDropDst.ts deleted file mode 100644 index 8dbb79b5a5a5..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/dragAndDropDst.ts +++ /dev/null @@ -1,184 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import type { Appointment } from 'devextreme/ui/scheduler'; -import url from '../../../helpers/getPageUrl'; -import { getTimezoneTest, MACHINE_TIMEZONES, MachineTimezonesType } from '../../../helpers/machineTimezones'; -import { createWidget } from '../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; -import asyncForEach from '../../../helpers/asyncForEach'; -import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; - -interface TestCase { - timezone: MachineTimezonesType; - season: 'summer' | 'winter'; - currentDate: string; - startDate: Date; - cellIdxArray: [rowIdx: number, colIdx: number][]; - expectedTopPosition: number[]; -} - -fixture.disablePageReloads`Scheduler render during DST` - .page(url(__dirname, '../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const APPOINTMENT_TEXT = 'Appointment'; -// TODO remove first two selectors after fix of the currentTimeIndicator option -const CUSTOM_CSS = ` -#container .dx-scheduler-header-panel-cell { - color: rgba(0,0,0,.54); -} - -#container .dx-scheduler-header-panel-cell::before { - display: none; -} - -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -// NOTE: half of an regular (1 hour) appointment size -const DRAG_Y_OFFSET_PX = 12; - -const getAppointmentFromStartDate = (startDate: Date, offset: number): Appointment => { - const minuteMs = 60000; - const appointmentDurationMs = 60 * minuteMs; // one hour - - return { - startDate: new Date(startDate.getTime() + offset * minuteMs), - endDate: new Date(startDate.getTime() + offset * minuteMs + appointmentDurationMs), - text: APPOINTMENT_TEXT, - }; -}; - -const BERLIN_SUMMER_CASE: TestCase = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - season: 'summer', - currentDate: '2024-03-31', - startDate: new Date('2024-03-30T23:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - // NOTE: 25 instead of the 50 okay here at the idx = 2 is ok here - // We cannot drag-n-drop appointment to the 02:00 -> 03:00 Berlin time - // Because this time interval doesn't exist in this timezone - // More details here: https://www.timeanddate.com/time/change/germany/berlin (31 Mar 2024) - expectedTopPosition: [0, 25, 25, 75, 100, 125, 150, 175], -}; - -const BERLIN_SUMMER_CASE_OFFSET: TestCase = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - season: 'summer', - currentDate: '2024-03-31', - startDate: new Date('2024-03-30T23:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], -}; - -const BERLIN_WINTER_CASE: TestCase = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - season: 'winter', - currentDate: '2024-10-27', - startDate: new Date('2024-10-26T22:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], -}; - -const LOS_ANGELES_SUMMER_CASE: TestCase = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - season: 'summer', - currentDate: '2024-03-10', - startDate: new Date('2024-03-10T08:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - // NOTE: 25 instead of the 50 okay here at the idx = 2 is ok here - // We cannot drag-n-drop appointment to the 02:00 -> 03:00 Los Angeles time - // Because this time interval doesn't exist in this timezone - // More details here: https://www.timeanddate.com/time/change/usa/los-angeles (10 Mar 2024) - expectedTopPosition: [0, 25, 25, 75, 100, 125, 150, 175], -}; - -const LOS_ANGELES_SUMMER_CASE_OFFSET: TestCase = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - season: 'summer', - currentDate: '2024-03-10', - startDate: new Date('2024-03-10T08:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], -}; - -const LOS_ANGELES_WINTER_CASE: TestCase = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - season: 'summer', - currentDate: '2024-11-03', - startDate: new Date('2024-11-03T07:00:00Z'), - cellIdxArray: Array.from({ length: 8 }, (_, idx) => [idx, 3]), - expectedTopPosition: [0, 25, 50, 75, 100, 125, 150, 175], -}; - -const ZERO_OFFSET_TEST_CASES = generateOptionMatrix({ - offset: [0], - testCase: [ - BERLIN_SUMMER_CASE, - BERLIN_WINTER_CASE, - LOS_ANGELES_SUMMER_CASE, - LOS_ANGELES_WINTER_CASE, - ], -}); - -const OFFSET_TEST_CASES = generateOptionMatrix({ - offset: [-360, 360], - testCase: [ - BERLIN_SUMMER_CASE_OFFSET, - BERLIN_WINTER_CASE, - LOS_ANGELES_SUMMER_CASE_OFFSET, - LOS_ANGELES_WINTER_CASE, - ], -}); - -[ - ...ZERO_OFFSET_TEST_CASES, - ...OFFSET_TEST_CASES, -].forEach(({ - offset, - testCase: { - timezone, - season, - currentDate, - startDate, - cellIdxArray, - expectedTopPosition, - }, -}) => { - getTimezoneTest([timezone])(`Should drag-n-drop appointment correctly during around DST (${timezone}, ${season}, ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TEXT); - const initialHeight = await appointment.size.height; - const [[firstCellRowIdx, firstCellColIdx]] = cellIdxArray; - const firstCell = scheduler.getDateTableCell(firstCellRowIdx, firstCellColIdx); - const firstCellTop = await firstCell.getBoundingClientRectProperty('top'); - - await asyncForEach(cellIdxArray, async ([rowIdx, colIdx], idx) => { - const cell = scheduler.getDateTableCell(rowIdx, colIdx); - - await t.dragToElement(appointment.element, cell, { offsetY: DRAG_Y_OFFSET_PX }); - - const currentHeight = await appointment.size.height; - const currentTop = await appointment.element().getBoundingClientRectProperty('top'); - const relativeTop = currentTop - firstCellTop; - - await t.expect(currentHeight).eql(initialHeight); - await t.expect(relativeTop).eql(expectedTopPosition[idx]); - }); - }).before(async () => { - await insertStylesheetRulesToPage(CUSTOM_CSS); - - const dataSource = [getAppointmentFromStartDate(startDate, offset)]; - await createWidget('dxScheduler', { - timeZone: timezone, - dataSource, - currentView: 'week', - currentDate, - offset, - showCurrentTimeIndicator: false, - showAllDayPanel: false, - firstDayOfWeek: 4, - cellDuration: 60, - height: 800, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png deleted file mode 100644 index 407e4cd66556..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset--60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png deleted file mode 100644 index aff0b6313abc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png deleted file mode 100644 index e6f0dee8af30..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-summer_offset-60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png deleted file mode 100644 index c8eeb015ce29..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset--60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png deleted file mode 100644 index 23000698fe96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png deleted file mode 100644 index 05671dfa3eb7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-America-Los_Angeles-winter_offset-60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png deleted file mode 100644 index 407e4cd66556..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset--60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png deleted file mode 100644 index aff0b6313abc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png deleted file mode 100644 index e6f0dee8af30..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-summer_offset-60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png deleted file mode 100644 index f98b564843bb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset--60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png deleted file mode 100644 index c6e3656713da..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png deleted file mode 100644 index cbcf59b88e9c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/day_usual-appts-start-cell-dts_t-Europe-Berlin-winter_offset-60 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png deleted file mode 100644 index 486f21a65b32..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png deleted file mode 100644 index 9de2306f70fa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png deleted file mode 100644 index 1c77720e3f59..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-local_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png deleted file mode 100644 index cb21bf8ee25f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png deleted file mode 100644 index 91392a7734d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png deleted file mode 100644 index ed3fa8c0fc2e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-summer-utc_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png deleted file mode 100644 index b10cfb029568..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png deleted file mode 100644 index d446d2bac31c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png deleted file mode 100644 index f804b6c3d421..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-local_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png deleted file mode 100644 index 7687e38735e4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png deleted file mode 100644 index 09b8c0321b45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png deleted file mode 100644 index 096e7913ed10..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-America-Los_Angeles-winter-utc_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png deleted file mode 100644 index d5aecf64690b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png deleted file mode 100644 index c034c0621880..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png deleted file mode 100644 index b40d069b0672..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-local_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png deleted file mode 100644 index 4a21f9e043f4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png deleted file mode 100644 index 797566ed08d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png deleted file mode 100644 index 8fc25df037bc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-summer-utc_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png deleted file mode 100644 index 65545fe9f6f6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png deleted file mode 100644 index ff66339d0bd7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png deleted file mode 100644 index c5484ccdf5a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-local_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png deleted file mode 100644 index 329c727984e0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png deleted file mode 100644 index 43276bf0ded2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png deleted file mode 100644 index 9bbd9e8e30f2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_appts-render-cross-dts_t-Europe-Berlin-winter-utc_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png deleted file mode 100644 index 8e5ff360ce35..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png deleted file mode 100644 index 8e8cfeaa0a98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png deleted file mode 100644 index aba38323e9e1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-summer_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png deleted file mode 100644 index ced41f59f166..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png deleted file mode 100644 index 7482876a7c3d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png deleted file mode 100644 index 89680bd41007..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-America-Los_Angeles-winter_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png deleted file mode 100644 index 71f00bc7c53b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png deleted file mode 100644 index 109be67a0287..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png deleted file mode 100644 index 13b0f5f7b397..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-summer_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png deleted file mode 100644 index 3ca347654a8f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset--360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png deleted file mode 100644 index 0e90c106f44b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png deleted file mode 100644 index 270a2149c854..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/timezones/etalons/week_usual-appts-render-dts_t-Europe-Berlin-winter_offset-360 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416 .ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416 .ts deleted file mode 100644 index d1735f8ded1c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/recurrence/excludeFromRecurrence_T1225416 .ts +++ /dev/null @@ -1,78 +0,0 @@ -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { - getTimezoneTest, - MACHINE_TIMEZONES, - MachineTimezonesType, -} from '../../../../helpers/machineTimezones'; -import url from '../../../../helpers/getPageUrl'; -import { generateOptionMatrix } from '../../../../helpers/generateOptionMatrix'; -import { createWidget } from '../../../../helpers/createWidget'; - -fixture.disablePageReloads`Scheduler exclude from recurrence` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const MS_IN_MINUTE = 60000; -const MS_IN_HOUR = MS_IN_MINUTE * 60; -const APPOINTMENT_TEXT = 'TEST_APPT'; - -const getAppointments = ( - startDate: Date, - currentView: string, -) => [ - { - startDate, - endDate: new Date(startDate.getTime() + MS_IN_HOUR), - text: APPOINTMENT_TEXT, - recurrenceRule: currentView === 'week' ? 'FREQ=DAILY' : 'FREQ=WEEKLY;BYDAY=FR', - }, -]; - -const getFirstDayOfWeek = (currentView: string) => (currentView === 'week' ? 4 : 0); -const getAppointmentsCount = (currentView: string) => (currentView === 'week' ? 7 : 6); - -generateOptionMatrix({ - timeZone: [undefined, 'America/New_York'], - currentView: ['week', 'month'], - location: [ - [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-01-01T12:00:00Z')], - [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-01-01T12:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-01-01T12:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-01-01T12:00:00Z')], - ] as [MachineTimezonesType, string, string, Date][], -}).forEach(({ - timeZone, - currentView, - location: [machineTimezone, caseName, currentDate, startDate], -}) => { - const dataSource = getAppointments(startDate, currentView); - const firstDayOfWeek = getFirstDayOfWeek(currentView); - const appointmentsCount = getAppointmentsCount(currentView); - - getTimezoneTest([machineTimezone])( - `Should correctly exclude appointment from recurrence (week, ${timeZone}, ${machineTimezone}, ${caseName})`, - async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t.expect(scheduler.getAppointmentCount()).eql(appointmentsCount); - - for (let idx = 0; idx < appointmentsCount; idx += 1) { - await t.click(scheduler.getAppointment(APPOINTMENT_TEXT, 0).element) - .click(scheduler.appointmentTooltip.deleteButton); - - await t.expect(scheduler.getAppointmentCount()).eql(appointmentsCount - (idx + 1)); - } - - await t.expect(scheduler.getAppointmentCount()).eql(0); - }, - ).before(async () => { - await createWidget('dxScheduler', { - timeZone, - dataSource, - currentDate, - currentView, - firstDayOfWeek, - recurrenceEditMode: 'occurrence', - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/renderCrossDst.ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/renderCrossDst.ts deleted file mode 100644 index 2e12032d89b1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/renderCrossDst.ts +++ /dev/null @@ -1,323 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { - getTimezoneTest, - MACHINE_TIMEZONES, - normalizeTimezoneName, -} from '../../../helpers/machineTimezones'; -import url from '../../../helpers/getPageUrl'; -import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; -import { createWidget } from '../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; -import { testScreenshot } from '../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler render during DST` - .page(url(__dirname, '../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -// TODO remove first two selectors after fix of the currentTimeIndicator option -const CUSTOM_CSS = ` -#container .dx-scheduler-header-panel-cell { - color: rgba(0,0,0,.54); -} - -#container .dx-scheduler-header-panel-cell::before { - display: none; -} - -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; - -const SUMMER_BERLIN_LOCAL_DATE_CASE = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - caseName: 'summer-local', - currentDate: '2024-03-31', - dataSource: [ - { - text: '#0', - startDate: '2024-03-30T00:00:00', - endDate: '2024-03-30T05:00:00', - }, - { - text: '#1', - startDate: '2024-03-31T00:00:00', - endDate: '2024-03-31T05:00:00', - }, - { - text: '#2', - startDate: '2024-04-01T00:00:00', - endDate: '2024-04-01T05:00:00', - }, - { - text: 'Recurrent', - startDate: '2020-01-01T00:00', - endDate: '2020-01-01T05:00', - recurrenceRule: 'FREQ=DAILY', - }, - ], -}; - -const SUMMER_BERLIN_UTC_DATE_CASE = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - caseName: 'summer-utc', - currentDate: '2024-03-31', - dataSource: [ - { - text: '#0', - startDate: '2024-03-29T23:00:00Z', - endDate: '2024-03-30T04:00:00Z', - }, - { - text: '#1', - startDate: '2024-03-30T23:00:00Z', - endDate: '2024-03-31T04:00:00Z', - }, - { - text: '#2', - startDate: '2024-03-31T23:00:00Z', - endDate: '2024-04-01T04:00:00Z', - }, - // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) - // { - // text: 'Recurrent', - // startDate: '2020-01-01T23:00Z', - // endDate: '2020-01-02T04:00Z', - // recurrenceRule: 'FREQ=DAILY', - // }, - ], -}; - -const WINTER_BERLIN_LOCAL_DATE_CASE = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - caseName: 'winter-local', - currentDate: '2024-10-27', - dataSource: [ - { - text: '#0', - startDate: '2024-10-26T01:00:00', - endDate: '2024-10-26T04:00:00', - }, - { - text: '#1', - startDate: '2024-10-27T01:00:00', - endDate: '2024-10-27T04:00:00', - }, - { - text: '#2', - startDate: '2024-10-28T01:00:00', - endDate: '2024-10-28T04:00:00', - }, - { - text: 'Recurrent', - startDate: '2020-01-01T01:00', - endDate: '2020-01-01T04:00', - recurrenceRule: 'FREQ=DAILY', - }, - ], -}; - -const WINTER_BERLIN_UTC_DATE_CASE = { - timezone: MACHINE_TIMEZONES.EuropeBerlin, - caseName: 'winter-utc', - currentDate: '2024-10-27', - dataSource: [ - { - text: '#0', - startDate: '2024-10-25T23:00:00Z', - endDate: '2024-10-26T04:00:00Z', - }, - { - text: '#1', - startDate: '2024-10-26T23:00:00Z', - endDate: '2024-10-27T04:00:00Z', - }, - { - text: '#2', - startDate: '2024-10-27T23:00:00Z', - endDate: '2024-10-28T04:00:00Z', - }, - // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) - // { - // text: 'Recurrent', - // startDate: '2020-01-01T23:00Z', - // endDate: '2020-01-02T04:00Z', - // recurrenceRule: 'FREQ=DAILY', - // }, - ], -}; - -const SUMMER_LOS_ANGELES_LOCAL_DATE_CASE = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - caseName: 'summer-local', - currentDate: '2024-03-10', - dataSource: [ - { - text: '#0', - startDate: '2024-03-09T00:00:00', - endDate: '2024-03-09T05:00:00', - }, - { - text: '#1', - startDate: '2024-03-10T00:00:00', - endDate: '2024-03-10T05:00:00', - }, - { - text: '#2', - startDate: '2024-03-11T00:00:00', - endDate: '2024-03-11T05:00:00', - }, - { - text: 'Recurrent', - startDate: '2020-01-01T00:00', - endDate: '2020-01-01T05:00', - recurrenceRule: 'FREQ=DAILY', - }, - ], -}; - -const SUMMER_LOS_ANGELES_UTC_DATE_CASE = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - caseName: 'summer-utc', - currentDate: '2024-03-10', - dataSource: [ - { - text: '#0', - startDate: '2024-03-09T08:00:00Z', - endDate: '2024-03-09T13:00:00Z', - }, - { - text: '#1', - startDate: '2024-03-10T08:00:00Z', - endDate: '2024-03-10T13:00:00Z', - }, - { - text: '#2', - startDate: '2024-03-11T08:00:00Z', - endDate: '2024-03-11T13:00:00Z', - }, - // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) - // { - // text: 'Recurrent', - // startDate: '2020-01-01T08:00Z', - // endDate: '2020-01-01T13:00Z', - // recurrenceRule: 'FREQ=DAILY', - // }, - ], -}; - -const WINTER_LOS_ANGELES_LOCAL_DATE_CASE = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - caseName: 'winter-local', - currentDate: '2024-11-03', - dataSource: [ - { - text: '#0', - startDate: '2024-11-02T00:00:00', - endDate: '2024-11-02T05:00:00', - }, - { - text: '#1', - startDate: '2024-11-03T00:00:00', - endDate: '2024-11-03T05:00:00', - }, - { - text: '#2', - startDate: '2024-11-04T00:00:00', - endDate: '2024-11-04T05:00:00', - }, - { - text: 'Recurrent', - startDate: '2020-01-01T00:00', - endDate: '2020-01-01T05:00', - recurrenceRule: 'FREQ=DAILY', - }, - ], -}; - -const WINTER_LOS_ANGELES_UTC_DATE_CASE = { - timezone: MACHINE_TIMEZONES.AmericaLosAngeles, - caseName: 'winter-utc', - currentDate: '2024-11-03', - dataSource: [ - { - text: '#0', - startDate: '2024-11-02T08:00:00Z', - endDate: '2024-11-02T13:00:00Z', - }, - { - text: '#1', - startDate: '2024-11-03T08:00:00Z', - endDate: '2024-11-03T13:00:00Z', - }, - { - text: '#2', - startDate: '2024-11-04T08:00:00Z', - endDate: '2024-11-04T13:00:00Z', - }, - // NOTE: Recurrent appointments with UTC date have incorrect behavior (ticket T1222902) - // { - // text: 'Recurrent', - // startDate: '2020-01-01T00:00Z', - // endDate: '2020-01-01T05:00Z', - // recurrenceRule: 'FREQ=DAILY', - // }, - ], -}; - -generateOptionMatrix({ - currentView: ['week'], - offset: [-360, 0, 360], - location: [ - // Europe/Berlin - SUMMER_BERLIN_LOCAL_DATE_CASE, - SUMMER_BERLIN_UTC_DATE_CASE, - WINTER_BERLIN_LOCAL_DATE_CASE, - WINTER_BERLIN_UTC_DATE_CASE, - // America/Los Angeles - SUMMER_LOS_ANGELES_LOCAL_DATE_CASE, - SUMMER_LOS_ANGELES_UTC_DATE_CASE, - WINTER_LOS_ANGELES_LOCAL_DATE_CASE, - WINTER_LOS_ANGELES_UTC_DATE_CASE, - ], -}).forEach(({ - currentView, - offset, - location: { - timezone, - caseName, - currentDate, - dataSource, - }, -}) => { - getTimezoneTest([timezone])( - `Should correctly render appointments with local machine date crossing DST (${timezone}, ${caseName})`, - async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const timezoneName = normalizeTimezoneName(timezone); - await testScreenshot( - t, - takeScreenshot, - `${currentView}_appts-render-cross-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }, - ).before(async () => { - await insertStylesheetRulesToPage(CUSTOM_CSS); - await createWidget('dxScheduler', { - dataSource, - currentView, - currentDate, - offset, - showCurrentTimeIndicator: false, - firstDayOfWeek: 4, - cellDuration: 60, - height: 800, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/timezones/renderDst.ts b/e2e/testcafe-devextreme/tests/scheduler/timezones/renderDst.ts deleted file mode 100644 index e39fb5ff0786..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/timezones/renderDst.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { - getTimezoneTest, - MACHINE_TIMEZONES, - MachineTimezonesType, normalizeTimezoneName, -} from '../../../helpers/machineTimezones'; -import url from '../../../helpers/getPageUrl'; -import { generateOptionMatrix } from '../../../helpers/generateOptionMatrix'; -import { createWidget } from '../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../helpers/domUtils'; -import { testScreenshot } from '../../../helpers/themeUtils'; - -fixture.disablePageReloads`Scheduler render during DST` - .page(url(__dirname, '../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -// TODO remove first two selectors after fix of the currentTimeIndicator option -const CUSTOM_CSS = ` -#container .dx-scheduler-header-panel-cell { - color: rgba(0,0,0,.54); -} - -#container .dx-scheduler-header-panel-cell::before { - display: none; -} - -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const MS_IN_MINUTE = 60000; - -const generateAppointments = ( - startDate: Date, - durationMin: number, - count: number, - textPrefix = '', -) => new Array(count).fill(null).map((_, idx) => { - const currentStartDate = new Date(startDate.getTime() + durationMin * MS_IN_MINUTE * idx); - const currentEndDate = new Date(currentStartDate.getTime() + durationMin * MS_IN_MINUTE); - - return { - text: `${textPrefix}${idx}`, - startDate: currentStartDate, - endDate: currentEndDate, - }; -}); - -generateOptionMatrix({ - currentView: ['week'], - offset: [-360, 0, 360], - location: [ - [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-03-28T23:00:00Z')], - [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-10-24T22:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-03-08T08:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-11-01T08:00:00Z')], - ] as [MachineTimezonesType, string, string, Date][], -}).forEach(({ - currentView, - offset, - location: [timezone, caseName, currentDate, startDate], -}) => { - const dataSource = generateAppointments(startDate, 60, 120); - - getTimezoneTest([timezone])( - `Should correctly render hourly appointments at DST (${timezone}, ${caseName})`, - async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const timezoneName = normalizeTimezoneName(timezone); - await testScreenshot( - t, - takeScreenshot, - `${currentView}_usual-appts-render-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }, - ).before(async () => { - await insertStylesheetRulesToPage(CUSTOM_CSS); - await createWidget('dxScheduler', { - timeZone: timezone, - dataSource, - currentView, - currentDate, - offset, - showCurrentTimeIndicator: false, - firstDayOfWeek: 4, - cellDuration: 60, - height: 800, - }); - }); -}); - -generateOptionMatrix({ - currentView: ['day'], - offset: [-60, 0, 60], - location: [ - [MACHINE_TIMEZONES.EuropeBerlin, 'summer', '2024-03-31', new Date('2024-03-30T23:00:00Z')], - [MACHINE_TIMEZONES.EuropeBerlin, 'winter', '2024-10-27', new Date('2024-10-26T22:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'summer', '2024-03-10', new Date('2024-03-10T08:00:00Z')], - [MACHINE_TIMEZONES.AmericaLosAngeles, 'winter', '2024-11-03', new Date('2024-11-03T07:00:00Z')], - ] as [MachineTimezonesType, string, string, Date][], -}).forEach(({ - currentView, - offset, - location: [timezone, caseName, currentDate, startDate], -}) => { - const dataSource = [ - ...generateAppointments(startDate, 60, 5, 'A_'), - ...generateAppointments(startDate, 30, 10, 'B_'), - ]; - - getTimezoneTest([timezone])( - `Should resolve appointment start cell correctly during DST (${timezone}, ${caseName})`, - async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const timezoneName = normalizeTimezoneName(timezone); - await testScreenshot( - t, - takeScreenshot, - `${currentView}_usual-appts-start-cell-dts_t-${timezoneName}-${caseName}_offset-${offset}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }, - ).before(async () => { - await insertStylesheetRulesToPage(CUSTOM_CSS); - await createWidget('dxScheduler', { - timeZone: timezone, - dataSource, - currentView, - currentDate, - offset, - showCurrentTimeIndicator: false, - maxAppointmentsPerCell: 'unlimited', - firstDayOfWeek: 4, - cellDuration: 30, - height: 800, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/agenda.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/agenda.ts deleted file mode 100644 index 9cf21bb156ac..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/agenda.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Agenda` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -[ - 0, - -240, - 240, -].forEach((offset) => { - test('Agenda view should not be affected by root offset option', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await testScreenshot(t, takeScreenshot, `offset_agenda-not-affected_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2023-09-04T00:00:00', - endDate: '2023-09-04T02:00:00', - text: '#0 04: 00 -> 02', - }, - { - startDate: '2023-09-04T10:00:00', - endDate: '2023-09-04T12:00:00', - text: '#1 04: 10 -> 12', - }, - { - startDate: '2023-09-04T23:00:00', - endDate: '2023-09-05T01:00:00', - text: '#2 04: 22 -> 01', - }, - ], - currentView: 'agenda', - currentDate: '2023-09-03', - height: 800, - offset, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/apiCallbacks.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/apiCallbacks.ts deleted file mode 100644 index 1b9d4c8abed2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/apiCallbacks.ts +++ /dev/null @@ -1,462 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-nocheck -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { CallbackTestHelper, WindowCallbackExtended } from '../../../../helpers/callbackTestHelper'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; - -fixture.disablePageReloads`Offset: Api callbacks` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const MINUTE_MS = 60000; -const APPOINTMENT_TITLE = 'Test'; -const API_CALLBACKS = { - appointmentAdding: 'onAppointmentAdding', - appointmentAdded: 'onAppointmentAdded', - appointmentClick: 'onAppointmentClick', - appointmentDblClick: 'onAppointmentDblClick', - appointmentTooltipShowing: 'onAppointmentTooltipShowing', - appointmentFormOpening: 'onAppointmentFormOpening', - appointmentDeleting: 'onAppointmentDeleting', - appointmentDeleted: 'onAppointmentDeleted', - appointmentUpdating: 'onAppointmentUpdating', - appointmentUpdated: 'onAppointmentUpdated', - appointmentContextMenu: 'onAppointmentContextMenu', - appointmentRendered: 'onAppointmentRendered', -}; - -const getCellDateWithOffset = (initialDateString: string, offset: number): string => { - const initialDate = new Date(initialDateString); - const cellDate = new Date(initialDate.getTime() + (offset * MINUTE_MS)); - const [result] = cellDate.toISOString().split('.'); - return result; -}; - -const getAppointmentAfterUpdate = (offset: number) => { - switch (offset) { - case 700: - return { - startDate: '2023-09-05T12:40:00', - endDate: '2023-09-05T13:10:00', - text: APPOINTMENT_TITLE, - allDay: false, - }; - case -700: - return { - startDate: '2023-09-05T12:20:00', - endDate: '2023-09-05T12:50:00', - text: APPOINTMENT_TITLE, - allDay: false, - }; - default: - return { - startDate: '2023-09-05T12:00:00', - endDate: '2023-09-05T12:30:00', - text: APPOINTMENT_TITLE, - allDay: false, - }; - } -}; - -const EXPECTED = { - appointmentData: { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - targetedAppointmentData: { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - displayStartDate: new Date('2023-09-06T12:30:00'), - displayEndDate: new Date('2023-09-06T13:00:00'), - text: APPOINTMENT_TITLE, - }, -}; - -[ - 0, - -700, - 700, -].forEach((offset) => { - test(`onAppointmentRendered (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await t.expect(scheduler.getAppointment(APPOINTMENT_TITLE).element.exists).ok(); - - const [{ appointmentData, targetedAppointmentData }] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentRendered); - - await t.expect(appointmentData).eql(EXPECTED.appointmentData); - await t.expect(targetedAppointmentData).eql(EXPECTED.targetedAppointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentRendered, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentRendered: ({ appointmentData, targetedAppointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentRendered', { appointmentData, targetedAppointmentData }); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentRendered, - ]); - }); - - test(`onAppointmentAdding and onAppointmentAdded (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const cell = scheduler.getDateTableCell(1, 2); - - const expectedAppointmentData = { - allDay: false, - startDate: getCellDateWithOffset('2023-09-05T01:00:00Z', offset), - endDate: getCellDateWithOffset('2023-09-05T02:00:00Z', offset), - text: '', - recurrenceRule: '', - }; - - await t.doubleClick(cell); - await t.click(scheduler.appointmentPopup.saveButton.element); - - const [appointmentAddingData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentAdding); - const [appointmentAddedData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentAdded); - - await t.expect(appointmentAddingData).eql(expectedAppointmentData); - await t.expect(appointmentAddedData).eql(expectedAppointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentAdding, - API_CALLBACKS.appointmentAdded, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentAdding: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentAdding', appointmentData); - }, - onAppointmentAdded: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentAdded', appointmentData); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentAdding, - API_CALLBACKS.appointmentAdded, - ]); - }); - - test(`onAppointmentClick and onAppointmentDbClick (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - - await t.click(appointment.element); - await t.doubleClick(appointment.element); - - const [{ - appointmentData: appointmentClickData, - targetedAppointmentData: targetedAppointmentClickData, - }] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentClick); - const [{ - appointmentData: appointmentDbClickData, - targetedAppointmentData: targetedAppointmentDbClickData, - }] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentDblClick); - - await t.expect(appointmentClickData).eql(EXPECTED.appointmentData); - await t.expect(targetedAppointmentClickData).eql(EXPECTED.targetedAppointmentData); - await t.expect(appointmentDbClickData).eql(EXPECTED.appointmentData); - await t.expect(targetedAppointmentDbClickData).eql(EXPECTED.targetedAppointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentClick, - API_CALLBACKS.appointmentDblClick, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentClick: ({ appointmentData, targetedAppointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentClick', { appointmentData, targetedAppointmentData }); - }, - onAppointmentDblClick: ({ appointmentData, targetedAppointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentDblClick', { appointmentData, targetedAppointmentData }); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentClick, - API_CALLBACKS.appointmentDblClick, - ]); - }); - - test(`onAppointmentTooltipShowing and onAppointmentFormOpening (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - - await t.click(appointment.element); - // NOTE: Tooltip has a delay, so we should wait until it appears here :) - await t.expect(scheduler.appointmentTooltip.exists).ok(); - await t.doubleClick(appointment.element); - - const [[{ - appointmentData: appointmentTooltipData, - currentAppointmentData: currentAppointmentTooltipData, - }]] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentTooltipShowing); - const [appointmentFormData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentFormOpening); - - await t.expect(appointmentTooltipData).eql(EXPECTED.appointmentData); - await t.expect(currentAppointmentTooltipData).eql(EXPECTED.targetedAppointmentData); - await t.expect(appointmentFormData).eql(EXPECTED.appointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentTooltipShowing, - API_CALLBACKS.appointmentFormOpening, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentTooltipShowing: ({ appointments }) => { - const tooltipAppointmentData = appointments?.map(( - { appointmentData, currentAppointmentData }, - ) => ({ - appointmentData, - currentAppointmentData, - })); - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentTooltipShowing', tooltipAppointmentData); - }, - onAppointmentFormOpening: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentFormOpening', appointmentData); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentTooltipShowing, - API_CALLBACKS.appointmentFormOpening, - ]); - }); - - // NOTE: onAppointmentDeleting event has a targetedAppointmentData field. - // We don't have this event field in docs, so this test case doesn't check it. - // Link to the docs: https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxScheduler/Configuration/#onAppointmentDeleting - test(`onAppointmentDeleting and onAppointmentDeleted (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - - await t.click(appointment.element); - // NOTE: Tooltip has a delay, so we should wait until it appears here :) - await t.expect(scheduler.appointmentTooltip.exists).ok(); - await t.click(scheduler.appointmentTooltip.deleteButton); - - const [appointmentDeletingData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentDeleting); - const [appointmentDeletedData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentDeleted); - - await t.expect(appointmentDeletingData).eql(EXPECTED.appointmentData); - await t.expect(appointmentDeletedData).eql(EXPECTED.appointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentDeleting, - API_CALLBACKS.appointmentDeleted, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentDeleting: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentDeleting', appointmentData); - }, - onAppointmentDeleted: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentDeleted', appointmentData); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentDeleting, - API_CALLBACKS.appointmentDeleted, - ]); - }); - - test(`onAppointmentUpdating and onAppointmentUpdated (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - - const expectedOldData = { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }; - const expectedNewData = getAppointmentAfterUpdate(offset); - - await t.drag(appointment.element, -100, 0); - - const [{ newData, oldData }] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentUpdating); - const [appointmentData] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentUpdated); - - await t.expect(newData).eql(expectedNewData); - await t.expect(oldData).eql(expectedOldData); - await t.expect(appointmentData).eql(expectedNewData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentUpdating, - API_CALLBACKS.appointmentUpdated, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentUpdating: ({ newData, oldData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentUpdating', { newData, oldData }); - }, - onAppointmentUpdated: ({ appointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentUpdated', appointmentData); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentUpdating, - API_CALLBACKS.appointmentUpdated, - ]); - }); - - test(`onAppointmentContextMenu (offset: ${offset})`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - - await t.rightClick(appointment.element); - - const [{ appointmentData, targetedAppointmentData }] = await CallbackTestHelper - .getClientResults(API_CALLBACKS.appointmentContextMenu); - - await t.expect(appointmentData).eql(EXPECTED.appointmentData); - await t.expect(targetedAppointmentData).eql(EXPECTED.targetedAppointmentData); - }).before(async () => { - await CallbackTestHelper.initClientTesting([ - API_CALLBACKS.appointmentContextMenu, - ]); - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource: [ - { - startDate: '2023-09-06T12:30:00', - endDate: '2023-09-06T13:00:00', - text: APPOINTMENT_TITLE, - }, - ], - currentView: 'week', - cellDuration: 60, - offset, - onAppointmentContextMenu: ({ appointmentData, targetedAppointmentData }) => { - (window as WindowCallbackExtended) - .clientTesting! - .addCallbackResult('onAppointmentContextMenu', { appointmentData, targetedAppointmentData }); - }, - }); - }).after(async () => { - await CallbackTestHelper.clearClientData([ - API_CALLBACKS.appointmentContextMenu, - ]); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/currentTimeIndicator.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/currentTimeIndicator.ts deleted file mode 100644 index 88163073b987..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/currentTimeIndicator.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Current time indicator` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const getScreenshotName = ( - view: string, - indicatorTime: string, - offset: number, - startDayHour: number, - endDayHour: number, -): string => `offset_time-indicator_view-${view}_now-${indicatorTime.replace(/:/g, '-')}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; - -const TEST_CASES: [ - view: string, - indicatorTime: string, - cellDuration: number, - offset: number, - startDayHour: number, - endDayHour: number, -][] = [ - ['day', '2023-12-04T00:00:00', 120, 720, 0, 24], - ['day', '2023-12-04T00:00:00', 120, 720, 6, 18], - ['day', '2023-12-04T12:00:00', 120, 1440, 0, 24], - ['day', '2023-12-04T12:00:00', 120, 1440, 6, 18], - ['day', '2023-12-03T00:00:00', 120, -720, 0, 24], - ['day', '2023-12-03T00:00:00', 120, -720, 6, 18], - ['day', '2023-12-02T12:00:00', 120, -1440, 0, 24], - ['day', '2023-12-02T12:00:00', 120, -1440, 6, 18], - - ['week', '2023-12-06T00:00:00', 120, 720, 0, 24], - ['week', '2023-12-06T00:00:00', 120, 720, 6, 18], - ['week', '2023-12-06T12:00:00', 120, 1440, 0, 24], - ['week', '2023-12-06T12:00:00', 120, 1440, 6, 18], - ['week', '2023-12-05T00:00:00', 120, -720, 0, 24], - ['week', '2023-12-05T00:00:00', 120, -720, 6, 18], - ['week', '2023-12-04T12:00:00', 120, -1440, 0, 24], - ['week', '2023-12-04T12:00:00', 120, -1440, 6, 18], - - ['timelineDay', '2023-12-04T00:00:00', 360, 720, 0, 24], - ['timelineDay', '2023-12-04T00:00:00', 360, 720, 6, 18], - ['timelineDay', '2023-12-04T12:00:00', 360, 1440, 0, 24], - ['timelineDay', '2023-12-04T12:00:00', 360, 1440, 6, 18], - ['timelineDay', '2023-12-03T00:00:00', 360, -720, 0, 24], - ['timelineDay', '2023-12-03T00:00:00', 360, -720, 6, 18], - ['timelineDay', '2023-12-02T12:00:00', 360, -1440, 0, 24], - ['timelineDay', '2023-12-02T12:00:00', 360, -1440, 6, 18], - - ['timelineWeek', '2023-12-04T00:00:00', 360, 720, 0, 24], - ['timelineWeek', '2023-12-04T00:00:00', 360, 720, 6, 18], - ['timelineWeek', '2023-12-04T12:00:00', 360, 1440, 0, 24], - ['timelineWeek', '2023-12-04T12:00:00', 360, 1440, 6, 18], - ['timelineWeek', '2023-12-03T00:00:00', 360, -720, 0, 24], - ['timelineWeek', '2023-12-03T00:00:00', 360, -720, 6, 18], - ['timelineWeek', '2023-12-02T12:00:00', 360, -1440, 0, 24], - ['timelineWeek', '2023-12-02T12:00:00', 360, -1440, 6, 18], - - ['timelineMonth', '2023-12-04T00:00:00', 120, 720, 0, 24], - ['timelineMonth', '2023-12-04T00:00:00', 120, 720, 6, 18], - ['timelineMonth', '2023-12-04T12:00:00', 120, 1440, 0, 24], - ['timelineMonth', '2023-12-04T12:00:00', 120, 1440, 6, 18], - ['timelineMonth', '2023-12-03T00:00:00', 120, -720, 0, 24], - ['timelineMonth', '2023-12-03T00:00:00', 120, -720, 6, 18], - ['timelineMonth', '2023-12-02T12:00:00', 120, -1440, 0, 24], - ['timelineMonth', '2023-12-02T12:00:00', 120, -1440, 6, 18], -]; - -TEST_CASES.forEach(([ - view, - indicatorTime, - cellDuration, - offset, - startDayHour, - endDayHour]) => { - test(` -Should correctly render current time indicator ( -${view}, -now: ${indicatorTime}, -offset: ${offset}, -startDayHour: ${startDayHour}, -endDayHour: ${endDayHour} -)`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const screenshotName = getScreenshotName(view, indicatorTime, offset, startDayHour, endDayHour); - await testScreenshot(t, takeScreenshot, screenshotName, { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [], - currentView: view, - shadeUntilCurrentTime: true, - currentDate: '2023-12-03', - indicatorTime, - cellDuration, - offset, - startDayHour, - endDayHour, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/dragAndDrop.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/dragAndDrop.ts deleted file mode 100644 index a112e3a0f10d..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/dragAndDrop.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Drag-n-drop appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const APPOINTMENT_TITLE = 'Test'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const APPOINTMENTS = { - week: [{ - startDate: '2023-09-05T05:00:00', - endDate: '2023-09-05T09:00:00', - text: APPOINTMENT_TITLE, - }], - month: [{ - startDate: '2023-09-05T10:00:00', - endDate: '2023-09-06T15:00:00', - text: APPOINTMENT_TITLE, - }], - timelineMonth: [{ - startDate: '2023-09-02T10:00:00', - endDate: '2023-09-03T15:00:00', - text: APPOINTMENT_TITLE, - }], - allDayWeek: [{ - startDate: '2023-09-05T05:00:00', - endDate: '2023-09-05T09:00:00', - text: APPOINTMENT_TITLE, - allDay: true, - }], - allDayMonth: [{ - startDate: '2023-09-05T10:00:00', - endDate: '2023-09-06T15:00:00', - text: APPOINTMENT_TITLE, - allDay: true, - }], - allDayTimelineMonth: [{ - startDate: '2023-09-02T10:00:00', - endDate: '2023-09-03T15:00:00', - text: APPOINTMENT_TITLE, - allDay: true, - }], -}; - -const getDragCoordinatesByView = ( - viewType: string, -): { x: number; y: number } => { - switch (viewType) { - case 'week': - return { x: 150, y: 0 }; - case 'month': - return { x: 300, y: 300 }; - default: - return { x: 300, y: 0 }; - } -}; - -const getScreenshotName = ( - viewType: string, - offset: number, - isAllDay: boolean, -) => `offset_drag-n-drop_${isAllDay ? 'all-day' : 'usual'}-appts_${viewType}_offset-${offset}.png`; - -[ - { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week, isAllDay: false }, - { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.allDayWeek, isAllDay: true }, - { views: [{ type: 'month' }], dataSource: APPOINTMENTS.month, isAllDay: false }, - { views: [{ type: 'month' }], dataSource: APPOINTMENTS.allDayMonth, isAllDay: true }, - { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth, isAllDay: false }, - { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.allDayTimelineMonth, isAllDay: true }, -].forEach(({ views, dataSource, isAllDay }) => { - [ - 0, - 735, - -735, - ].forEach((offset) => { - test('Usual appointments drag-n-drop', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const appointment = scheduler.getAppointment(APPOINTMENT_TITLE); - const viewType = views[0].type; - - const { x, y } = getDragCoordinatesByView(viewType); - await t.drag(appointment.element, x, y); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(viewType, offset, isAllDay), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource, - views, - currentView: views[0].type, - offset, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png deleted file mode 100644 index ede32e868e23..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset--240 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png deleted file mode 100644 index ede32e868e23..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png deleted file mode 100644 index ede32e868e23..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_agenda-not-affected_offset-240 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png deleted file mode 100644 index 60bd11efd4d1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset--180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index 1bf7f1ac1790..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png deleted file mode 100644 index 609267c65afb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_drag-n-drop_week_offset-180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png deleted file mode 100644 index ca25d6691c8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset--180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index 0ff8bcbf0af8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png deleted file mode 100644 index 3a654a948143..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_resize_week_offset-180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png deleted file mode 100644 index 9a9b933a70ee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset--180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index 00d16ac77d64..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png deleted file mode 100644 index 390f3ea5abf7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_appt-expr_week_offset-180 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png deleted file mode 100644 index 5ede94e6807f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png deleted file mode 100644 index 27b59e93f2b6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png deleted file mode 100644 index 682ace11ebaf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_month_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png deleted file mode 100644 index da2b81b3b1b1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png deleted file mode 100644 index c5b0b4750e12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png deleted file mode 100644 index 46ca015cd2fa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_timelineMonth_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png deleted file mode 100644 index a06bd663b9ec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index a8f8a6a75f14..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png deleted file mode 100644 index e663dd047d42..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_all-day-appts_week_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png deleted file mode 100644 index 5ede94e6807f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png deleted file mode 100644 index 27b59e93f2b6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png deleted file mode 100644 index 682ace11ebaf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_month_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png deleted file mode 100644 index da2b81b3b1b1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png deleted file mode 100644 index c5b0b4750e12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png deleted file mode 100644 index 46ca015cd2fa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_timelineMonth_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png deleted file mode 100644 index 9c419dabd95b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index 4b4907c14fb7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png deleted file mode 100644 index 0ce44c4861a4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_drag-n-drop_usual-appts_week_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png deleted file mode 100644 index 5ca31d55dad0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png deleted file mode 100644 index b8c14e317595..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png deleted file mode 100644 index e99d3317ff45..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_day_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png deleted file mode 100644 index f8bd36541e20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png deleted file mode 100644 index f8bd36541e20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png deleted file mode 100644 index f8bd36541e20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_month_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png deleted file mode 100644 index e197de721059..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png deleted file mode 100644 index 1ce2fcb69081..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png deleted file mode 100644 index 40fa6f5362fd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineDay_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png deleted file mode 100644 index cccbfc3d8cf1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png deleted file mode 100644 index cccbfc3d8cf1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png deleted file mode 100644 index cccbfc3d8cf1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_timelineMonth_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png deleted file mode 100644 index 7fd468b514aa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png deleted file mode 100644 index 3600ce41b6a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png deleted file mode 100644 index ff5d843cb30b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week-all-day_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png deleted file mode 100644 index ca6f3404fa0e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png deleted file mode 100644 index ca49985bbab4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png deleted file mode 100644 index c402b3b35bd5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_keyboard_week_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png deleted file mode 100644 index 543fc5800ffd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index 808f8e91af57..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png deleted file mode 100644 index 543fc5800ffd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index 808f8e91af57..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset--120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png deleted file mode 100644 index 824017f63950..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index a6e5fecc811f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png deleted file mode 100644 index 824017f63950..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png deleted file mode 100644 index a6e5fecc811f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-0_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png deleted file mode 100644 index 4af2230e4780..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index b4a5a88b09d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png deleted file mode 100644 index 4af2230e4780..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index b4a5a88b09d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_day_offset-120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset--120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-0_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png deleted file mode 100644 index e38c5bda43b8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index e889db43c360..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_month_offset-120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png deleted file mode 100644 index 958802eb490d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index 5c67418e4337..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png deleted file mode 100644 index d20443155dd4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index 57d5c0c6b308..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset--120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png deleted file mode 100644 index fb876a6ba29d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index b28850d38b8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png deleted file mode 100644 index 84951f3139be..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png deleted file mode 100644 index 7730d5d62f25..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-0_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png deleted file mode 100644 index b78b5deb876a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index a881d9d7f058..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png deleted file mode 100644 index 47ad2761f3ba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index 6624b390de8a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineDay_offset-120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset--120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-0_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_decrease_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png deleted file mode 100644 index 562624ce59d2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png deleted file mode 100644 index ff43f4a3bead..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_timelineMonth_offset-120_increase_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png deleted file mode 100644 index 0beca9adbd97..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png deleted file mode 100644 index 0beca9adbd97..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset--120_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png deleted file mode 100644 index 88ae9dba7af9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png deleted file mode 100644 index 88ae9dba7af9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png deleted file mode 100644 index 75b6993ecc69..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png deleted file mode 100644 index 75b6993ecc69..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week-all-day_offset-120_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png deleted file mode 100644 index 2973089bc009..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png deleted file mode 100644 index 930e3d1a194a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png deleted file mode 100644 index fc20bca18fd2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png deleted file mode 100644 index 6d837c01368d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png deleted file mode 100644 index 52de63f24edc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png deleted file mode 100644 index 501f7f431de1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png deleted file mode 100644 index e0df2af3c88d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png deleted file mode 100644 index 36cb34e6338e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_decrease_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png deleted file mode 100644 index 2973089bc009..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png deleted file mode 100644 index 930e3d1a194a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png deleted file mode 100644 index fc20bca18fd2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png deleted file mode 100644 index 6d837c01368d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png deleted file mode 100644 index 52de63f24edc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png deleted file mode 100644 index 501f7f431de1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png deleted file mode 100644 index e0df2af3c88d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png deleted file mode 100644 index 36cb34e6338e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset--120_increase_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png deleted file mode 100644 index 382c09c6f371..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png deleted file mode 100644 index 55f66c38f65b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png deleted file mode 100644 index a6d063959a99..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png deleted file mode 100644 index 5e7a3c226134..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png deleted file mode 100644 index 652af594cf9a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png deleted file mode 100644 index d1ec6bf36207..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png deleted file mode 100644 index f4f8d669aa28..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png deleted file mode 100644 index 5075d791c923..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_decrease_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png deleted file mode 100644 index 382c09c6f371..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png deleted file mode 100644 index 55f66c38f65b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png deleted file mode 100644 index a6d063959a99..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png deleted file mode 100644 index 5e7a3c226134..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png deleted file mode 100644 index 652af594cf9a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png deleted file mode 100644 index d1ec6bf36207..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png deleted file mode 100644 index f4f8d669aa28..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png deleted file mode 100644 index 5075d791c923..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-0_increase_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png deleted file mode 100644 index dbb813b6819e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png deleted file mode 100644 index aa3800597cbb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png deleted file mode 100644 index 5de59f6cc3a3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png deleted file mode 100644 index 798bc4ee4995..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png deleted file mode 100644 index 78c09afbb9e7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png deleted file mode 100644 index ac3ca9bea40a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png deleted file mode 100644 index f8653d88f557..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png deleted file mode 100644 index 7177b1d3f804..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_decrease_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png deleted file mode 100644 index dbb813b6819e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png deleted file mode 100644 index aa3800597cbb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_0_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png deleted file mode 100644 index 5de59f6cc3a3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png deleted file mode 100644 index 798bc4ee4995..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_1_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png deleted file mode 100644 index 78c09afbb9e7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png deleted file mode 100644 index ac3ca9bea40a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_2_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png deleted file mode 100644 index f8653d88f557..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png deleted file mode 100644 index 7177b1d3f804..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_multi-cell-select_week_offset-120_increase_3_rtl (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index ce46ceaccc27..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index b2a12a8836ab..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index b71742416bb6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index 3adb24bbd5dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 0580c5d02ef1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 09738a1f92d5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_end-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index dbed5f1a7cbe..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 416e4b74293c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index ce46ceaccc27..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index 3adb24bbd5dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 0580c5d02ef1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 09738a1f92d5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_month_start-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png deleted file mode 100644 index d18352aabe43..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png deleted file mode 100644 index d18352aabe43..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineDay_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index 317e435db666..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index beef363c3fa9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 81712a0fcf80..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index fec98480dca3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 3e4ac454000a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index da3adb66c1b7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_end-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index eb869bb9d049..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 0ed643db43c8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index b0c2a03bee98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index fec98480dca3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 3e4ac454000a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index da3adb66c1b7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_timelineMonth_start-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index c23ef1a608d1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 789b44b2f737..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index a4f29e563810..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index cd9d8e0db978..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 64564bef1353..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 4caf856c86c5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_end-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png deleted file mode 100644 index a2a12773919f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset--720_startDayHour-10_endDayHour-12 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png deleted file mode 100644 index c34e82d44a13..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_offset-720_startDayHour-10_endDayHour-12 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png deleted file mode 100644 index 8e259d2a786d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 25d1d6733874..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 495c4fc9fedb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-minus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png deleted file mode 100644 index cd26b2ef1eb5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset--735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png deleted file mode 100644 index 7d6c8e5b605e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png deleted file mode 100644 index 7d1c4d021e07..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_resize-appts_week_start-plus_offset-735 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index fe8994967a90..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 092164e2090e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index e30b2730e1c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index baba84433d07..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index e30b2730e1c7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index baba84433d07..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index fe8994967a90..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 092164e2090e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-day_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 0a31ac30ea38..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 571183cd627f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 11a4b7d33112..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 50b35753b1bc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 11a4b7d33112..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 50b35753b1bc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 0a31ac30ea38..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 571183cd627f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineDay_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 2c7cc8ea6894..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineMonth_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 7f52fcda39bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 8bce44896c96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-02T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 1ed4ea051498..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index bad275c60aa4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-03T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 1ed4ea051498..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index bad275c60aa4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 7f52fcda39bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 8bce44896c96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-timelineWeek_now-2023-12-04T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 081773a2be2e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 7f9a100b82ee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-04T12-00-00_offset--1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index cd2d2c016844..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 31c449ee7069..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-05T00-00-00_offset--720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index cd2d2c016844..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 31c449ee7069..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T00-00-00_offset-720_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 081773a2be2e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png deleted file mode 100644 index 7f9a100b82ee..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/etalons/offset_time-indicator_view-week_now-2023-12-06T12-00-00_offset-1440_start-6_end-18 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/expressions.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/expressions.ts deleted file mode 100644 index a86295e76497..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/expressions.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Appointment expressions` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const APPOINTMENT_TITLES = { - usual: 'Usual', - allDay: 'All-day', -}; -const APPOINTMENTS = { - week: [ - { - StartDate2: '2023-09-06T04:00:00', - EndDate2: '2023-09-06T06:00:00', - Text2: APPOINTMENT_TITLES.usual, - }, - { - StartDate2: '2023-09-06T00:00:00', - EndDate2: '2023-09-06T00:00:00', - Text2: APPOINTMENT_TITLES.allDay, - AllDay2: true, - }, - ], -}; - -[ - { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week }, -].forEach(({ views, dataSource }) => { - [ - 0, - 180, - -180, - ].forEach((offset) => { - test('Appointment with expr common test', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); - const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); - const viewType = views[0].type; - - await testScreenshot(t, takeScreenshot, `offset_appt-expr_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.drag(usualAppointment.element, 100, 100); - await t.drag(allDayAppointment.element, -100, 0); - - await testScreenshot(t, takeScreenshot, `offset_appt-expr_drag-n-drop_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.drag(usualAppointment.resizableHandle.bottom, 0, 100); - await t.drag(allDayAppointment.resizableHandle.left, -100, 0); - - await testScreenshot(t, takeScreenshot, `offset_appt-expr_resize_${viewType}_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - currentDate: '2023-09-05', - height: 800, - dataSource, - views, - currentView: views[0].type, - offset, - startDateExpr: 'StartDate2', - endDateExpr: 'EndDate2', - textExpr: 'Text2', - allDayExpr: 'AllDay2', - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/keyboardNavigation.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/keyboardNavigation.ts deleted file mode 100644 index 548179447a59..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/keyboardNavigation.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import asyncForEach from '../../../../helpers/asyncForEach'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Keyboard navigation` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -const KEYBOARD_ACTIONS = { - day: ['down', 'down', 'down', 'up'], - week: ['up', 'right', 'down', 'down', 'left', 'left', 'up', 'up'], - month: ['up', 'right', 'down', 'down', 'left', 'left', 'up', 'up'], - timelineDay: ['right', 'right', 'right', 'left'], - timelineMonth: ['right', 'right', 'right', 'left'], -}; - -[ - 0, - -120, - 120, -].forEach((offset) => { - [ - { view: 'day', startCell: [1, 0], keyboardKeys: KEYBOARD_ACTIONS.day }, - { view: 'week', startCell: [3, 3], keyboardKeys: KEYBOARD_ACTIONS.week }, - { view: 'month', startCell: [3, 3], keyboardKeys: KEYBOARD_ACTIONS.month }, - { view: 'timelineDay', startCell: [0, 1], keyboardKeys: KEYBOARD_ACTIONS.timelineDay }, - { view: 'timelineMonth', startCell: [0, 1], keyboardKeys: KEYBOARD_ACTIONS.timelineMonth }, - ].forEach(({ view, startCell, keyboardKeys }) => { - test(`Keyboard navigation should work (view: ${view}, offset: ${offset})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const [rowIdx, cellIdx] = startCell; - const startCellSelector = scheduler.getDateTableCell(rowIdx, cellIdx); - - await t.click(startCellSelector); - await asyncForEach(keyboardKeys, async (key) => { - await t.pressKey(key); - }); - - await testScreenshot(t, takeScreenshot, `offset_keyboard_${view}_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource: [], - currentView: view, - offset, - }); - }); - }); - - test(`Keyboard navigation in the all-day panel should work (view: week, offset: ${offset})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const startCellSelector = scheduler.getAllDayTableCell(1); - - await t.click(startCellSelector) - .pressKey('right') - .pressKey('right') - .pressKey('left'); - - await testScreenshot(t, takeScreenshot, `offset_keyboard_week-all-day_offset-${offset}.png`, { element: scheduler.workSpace }); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource: [], - currentView: 'week', - offset, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/multiCellSelection.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/multiCellSelection.ts deleted file mode 100644 index bc24c74dc92b..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/multiCellSelection.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Multi cell selection` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; - -[ - 0, - -120, - 120, -].forEach((offset) => { - [true, false].forEach((rtlEnabled) => { - [ - { view: 'day', dragOptions: { direction: 'increase', from: [0, 0], to: [7, 0] } }, - { view: 'day', dragOptions: { direction: 'decrease', from: [7, 0], to: [0, 0] } }, - { view: 'week', dragOptions: { direction: 'increase_0', from: [0, 2], to: [7, 2] } }, - { view: 'week', dragOptions: { direction: 'decrease_0', from: [7, 2], to: [0, 2] } }, - { view: 'week', dragOptions: { direction: 'increase_1', from: [1, 3], to: [8, 4] } }, - { view: 'week', dragOptions: { direction: 'decrease_1', from: [8, 4], to: [1, 3] } }, - { view: 'week', dragOptions: { direction: 'increase_2', from: [6, 3], to: [6, 5] } }, - { view: 'week', dragOptions: { direction: 'decrease_2', from: [6, 5], to: [6, 3] } }, - { view: 'week', dragOptions: { direction: 'increase_3', from: [0, 0], to: [11, 6] } }, - { view: 'week', dragOptions: { direction: 'decrease_3', from: [11, 6], to: [0, 0] } }, - { view: 'month', dragOptions: { direction: 'increase', from: [2, 2], to: [3, 1] } }, - { view: 'month', dragOptions: { direction: 'decrease', from: [3, 1], to: [2, 2] } }, - { view: 'timelineDay', dragOptions: { direction: 'increase', from: [0, 0], to: [0, 5] } }, - { view: 'timelineDay', dragOptions: { direction: 'decrease', from: [0, 5], to: [0, 0] } }, - { view: 'timelineMonth', dragOptions: { direction: 'increase', from: [0, 0], to: [0, 3] } }, - { view: 'timelineMonth', dragOptions: { direction: 'decrease', from: [0, 3], to: [0, 0] } }, - ].forEach(({ view, dragOptions }) => { - test(`Multi cell selection should work ( -view: ${view}, -offset: ${offset}, -direction: ${dragOptions.direction}, -rtl: ${rtlEnabled}, -)`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { direction, from: [fromRow, fromCell], to: [toRow, toCell] } = dragOptions; - const firstCellSelector = scheduler.getDateTableCell(fromRow, fromCell); - const secondCellSelector = scheduler.getDateTableCell(toRow, toCell); - - await t.dragToElement(firstCellSelector, secondCellSelector); - await testScreenshot( - t, - takeScreenshot, - `offset_multi-cell-select_${view}_offset-${offset}_${direction}${rtlEnabled ? '_rtl' : ''}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource: [], - currentView: view, - offset, - rtlEnabled, - }); - }); - }); - - test(`Multi cell selection in the all-day panel should work ( -view: week, -offset: ${offset}, -rtl: ${rtlEnabled}, -)`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const firstCellSelector = scheduler.getAllDayTableCell(0); - const secondCellSelector = scheduler.getAllDayTableCell(3); - - await t.dragToElement(firstCellSelector, secondCellSelector); - await testScreenshot( - t, - takeScreenshot, - `offset_multi-cell-select_week-all-day_offset-${offset}${rtlEnabled ? '_rtl' : ''}.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource: [], - currentView: 'week', - offset, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/resize.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/resize.ts deleted file mode 100644 index 2ceb8028ab62..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/common/resize.ts +++ /dev/null @@ -1,290 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import Appointment from 'devextreme-testcafe-models/scheduler/appointment'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Resize appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const APPOINTMENT_TITLES = { - usual: 'Usual', - allDay: 'All-day', -}; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const APPOINTMENTS = { - week: [ - { - startDate: '2023-09-05T05:00:00', - endDate: '2023-09-05T09:00:00', - text: APPOINTMENT_TITLES.usual, - }, - { - startDate: '2023-09-05T00:00:00', - endDate: '2023-09-06T00:00:00', - text: APPOINTMENT_TITLES.allDay, - allDay: true, - }, - ], - month: [ - { - startDate: '2023-09-05T10:00:00', - endDate: '2023-09-06T15:00:00', - text: APPOINTMENT_TITLES.usual, - }, - { - startDate: '2023-09-05T00:00:00', - endDate: '2023-09-06T00:00:00', - text: APPOINTMENT_TITLES.allDay, - allDay: true, - }, - ], - timelineMonth: [ - { - startDate: '2023-09-02T10:00:00', - endDate: '2023-09-03T15:00:00', - text: APPOINTMENT_TITLES.usual, - }, - { - startDate: '2023-09-02T00:00:00', - endDate: '2023-09-03T00:00:00', - text: APPOINTMENT_TITLES.allDay, - allDay: true, - }, - ], -}; -enum ResizeType { - startPlus = 'start-plus', - startMinus = 'start-minus', - endPlus = 'end-plus', - endMinus = 'end-minus', -} - -const isVerticalView = (viewType: string, isAllDay: boolean): boolean => !isAllDay && viewType === 'week'; -const isStartResize = ( - resizeType: ResizeType, -): boolean => resizeType === ResizeType.startPlus || resizeType === ResizeType.startMinus; - -const getResizableHandle = ( - appointment: Appointment, - viewType: string, - resizeType: ResizeType, - isAllDay: boolean, -): Selector => { - switch (true) { - case isVerticalView(viewType, isAllDay) && isStartResize(resizeType): - return appointment.resizableHandle.top; - case isVerticalView(viewType, isAllDay) && !isStartResize(resizeType): - return appointment.resizableHandle.bottom; - case isStartResize(resizeType): - return appointment.resizableHandle.left; - default: - return appointment.resizableHandle.right; - } -}; - -const getResizableValues = ( - viewType: string, - resizeType: ResizeType, - isAllDay: boolean, -): { x; y } => { - switch (true) { - case isVerticalView(viewType, isAllDay) && resizeType === ResizeType.startPlus: - return { x: 0, y: -100 }; - case isVerticalView(viewType, isAllDay) && resizeType === ResizeType.startMinus: - return { x: 0, y: 50 }; - case isVerticalView(viewType, isAllDay) && resizeType === ResizeType.endPlus: - return { x: 0, y: 100 }; - case isVerticalView(viewType, isAllDay) && resizeType === ResizeType.endMinus: - return { x: 0, y: -50 }; - case resizeType === ResizeType.startPlus: - return { x: -100, y: 0 }; - case resizeType === ResizeType.startMinus: - return { x: 50, y: 0 }; - case resizeType === ResizeType.endPlus: - return { x: 100, y: 0 }; - default: - return { x: -50, y: 0 }; - } -}; - -const doResize = async ( - t: TestController, - appointment: Appointment, - viewType: string, - resizeType: ResizeType, - isAllDay: boolean, -): Promise => { - const handle = getResizableHandle(appointment, viewType, resizeType, isAllDay); - const { x, y } = getResizableValues(viewType, resizeType, isAllDay); - - await t.drag(handle, x, y); -}; - -const getScreenshotName = ( - viewType: string, - resizeType: string, - offset: number, -) => `offset_resize-appts_${viewType}_${resizeType}_offset-${offset}.png`; - -[ - { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, - { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - -735, - ].forEach((offset) => { - test('Appointments resize common cases', async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); - const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); - const viewType = views[0].type; - - await doResize(t, usualAppointment, viewType, ResizeType.startMinus, false); - await doResize(t, allDayAppointment, viewType, ResizeType.startMinus, true); - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(viewType, ResizeType.startMinus, offset), - { element: scheduler.workSpace }, - ); - - await doResize(t, usualAppointment, viewType, ResizeType.startPlus, false); - await doResize(t, allDayAppointment, viewType, ResizeType.startPlus, true); - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(viewType, ResizeType.startPlus, offset), - { element: scheduler.workSpace }, - ); - - await doResize(t, usualAppointment, viewType, ResizeType.endMinus, false); - await doResize(t, allDayAppointment, viewType, ResizeType.endMinus, true); - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(viewType, ResizeType.endMinus, offset), - { element: scheduler.workSpace }, - ); - - await doResize(t, usualAppointment, viewType, ResizeType.endPlus, false); - await doResize(t, allDayAppointment, viewType, ResizeType.endPlus, true); - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(viewType, ResizeType.endPlus, offset), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - dataSource, - views, - currentView: views[0].type, - offset, - }); - }); - }); -}); - -[ - -720, - 720, -].forEach((offset) => { - test(`Should resize appointment correctly with startDayHour and endDayHour (view: 'week', offset: ${offset})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); - const allDayAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.allDay); - - await t.drag(usualAppointment.resizableHandle.bottom, 0, -50); - await t.drag(usualAppointment.resizableHandle.top, 0, 50); - await t.drag(allDayAppointment.resizableHandle.left, -100, 0); - await t.drag(allDayAppointment.resizableHandle.right, 100, 0); - - await testScreenshot( - t, - takeScreenshot, - `offset_resize-appts_week_offset-${offset}_startDayHour-10_endDayHour-12.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [ - { - startDate: '2023-09-06T22:00:00', - endDate: '2023-09-07T00:00:00', - text: APPOINTMENT_TITLES.usual, - }, - { - startDate: '2023-09-06T00:00:00', - endDate: '2023-09-06T00:00:00', - allDay: true, - text: APPOINTMENT_TITLES.allDay, - }, - ], - currentView: 'week', - startDayHour: 10, - endDayHour: 12, - currentDate: '2023-09-07', - height: 800, - offset, - }); - }); -}); - -[ - { offset: -720, currentDate: '2023-09-07' }, - { offset: 720, currentDate: '2023-09-06' }, -].forEach(({ offset, currentDate }) => { - test(`Should resize appointment correctly with startDayHour and endDayHour (view: 'timelineDay', offset: ${offset})`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const usualAppointment = scheduler.getAppointment(APPOINTMENT_TITLES.usual); - - await t.drag(usualAppointment.resizableHandle.left, 200, 0); - await t.drag(usualAppointment.resizableHandle.right, -200, 0); - - await testScreenshot( - t, - takeScreenshot, - `offset_resize-appts_timelineDay_offset-${offset}_startDayHour-10_endDayHour-12.png`, - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await createWidget('dxScheduler', { - dataSource: [{ - startDate: '2023-09-06T22:00:00', - endDate: '2023-09-07T00:00:00', - text: APPOINTMENT_TITLES.usual, - }], - currentView: 'timelineDay', - startDayHour: 10, - endDayHour: 12, - height: 800, - currentDate, - offset, - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/allDayAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/allDayAppointments.ts deleted file mode 100644 index 8248a31ffee1..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/allDayAppointments.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { generateAppointments } from '../../helpers/generateAppointments'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Markup all-day appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; - -const ALL_DAY_APPOINTMENTS_DATA = [ - { - startTime: '02:00:00', - endTime: '02:00:00', - allDay: true, - endDateShiftDays: 1, - }, - { startTime: '20:30:00', endTime: '23:30:00', allDay: true }, -]; -const APPOINTMENTS = { - day: [ - ...generateAppointments( - '2023-09-06', - '2023-09-08', - ALL_DAY_APPOINTMENTS_DATA, - ), - { - startDate: '2023-09-05T14:00:00', - endDate: '2023-09-09T16:00:00', - text: 'LONG APPT', - allDay: true, - }, - ], - week: [ - ...generateAppointments( - '2023-09-02', - '2023-09-10', - ALL_DAY_APPOINTMENTS_DATA, - ), - { - startDate: '2023-09-01T14:00:00', - endDate: '2023-09-12T16:00:00', - text: 'LONG APPT', - allDay: true, - }, - ], - workWeekWithFirstDay: [ - ...generateAppointments( - '2023-09-05', - '2023-09-13', - ALL_DAY_APPOINTMENTS_DATA, - ), - { - startDate: '2023-09-03T14:00:00', - endDate: '2023-09-15T16:00:00', - text: 'LONG APPT', - allDay: true, - }, - ], - month: [ - ...generateAppointments( - '2023-08-26', - '2023-10-08', - ALL_DAY_APPOINTMENTS_DATA, - ), - { - startDate: '2023-08-24T14:00:00', - endDate: '2023-10-10T16:00:00', - text: 'LONG APPT', - allDay: true, - }, - ], -}; - -const getScreenshotName = ( - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, - firstDay?: number, -) => `view_markup_all-day_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; - -[ - { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, - { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, - { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, - { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, - { views: [{ type: 'timelineWeek', cellDuration: 480, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - // NOTE: The timelineWorkWeek view has some existing issues - // Therefore some screenshots is invalid :( - { views: [{ type: 'timelineWorkWeek', cellDuration: 480, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { - views: [{ type: 'timelineWorkWeek', cellDuration: 480, firstDayOfWeek: 3 }], - dataSource: APPOINTMENTS.workWeekWithFirstDay, - }, - { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - 1440, - -735, - -1440, - ].forEach((offset) => { - [ - { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, - ].forEach(({ startDayHour, endDayHour }) => { - test(` -All-day appointments and workspaces render ( -view: ${views[0].type}, -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour} -first day: ${views[0].firstDayOfWeek} -)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName( - views[0].type, - offset, - startDayHour, - endDayHour, - views[0].firstDayOfWeek, - ), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => { - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - maxAppointmentsPerCell: 'unlimited', - dataSource, - views, - currentView: views[0].type, - offset, - startDayHour, - endDayHour, - }); - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/appointmentsOrdering.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/appointmentsOrdering.ts deleted file mode 100644 index e1a4f6be6381..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/appointmentsOrdering.ts +++ /dev/null @@ -1,213 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { generateAppointments } from '../../helpers/generateAppointments'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Markup appointments ordering` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; - -const APPOINTMENTS_TIME = [ - { startTime: '10:15:00', endTime: '16:15:00' }, - { startTime: '17:05:00', endTime: '22:05:00' }, -]; -// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). -const APPOINTMENTS_TIMELINE_TIME = [ - { startTime: '04:00:00', endTime: '08:00:00', endDateShiftDays: 1 }, - { startTime: '10:15:00', endTime: '16:15:00', endDateShiftDays: 1 }, - { startTime: '17:05:00', endTime: '22:05:00', endDateShiftDays: 1 }, -]; - -const RECURRENT_APPOINTMENTS_MONTH = [ - { - startDate: '2023-08-01T15:00:00', - endDate: '2023-08-01T19:00:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', - text: 'Daily 15-19', - }, -]; - -const RECURRENT_APPOINTMENTS_MONTH_TIMELINE = [ - { - startDate: '2023-08-01T09:00:00', - endDate: '2023-08-01T13:00:00', - recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', - text: 'Hourly 09-13', - }, - { - startDate: '2023-08-01T15:00:00', - endDate: '2023-08-01T19:00:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', - text: 'Daily 15-19', - }, -]; - -const APPOINTMENTS = { - month: generateAppointments( - '2023-08-26', - '2023-10-08', - APPOINTMENTS_TIME, - ).concat(RECURRENT_APPOINTMENTS_MONTH), - timelineMonth: generateAppointments( - '2023-08-31', - '2023-09-08', - APPOINTMENTS_TIMELINE_TIME, - ).concat(RECURRENT_APPOINTMENTS_MONTH_TIMELINE), -}; - -const getScreenshotName = ( - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, -) => `view_markup_ordering-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; - -[ - { views: [{ type: 'month' }], dataSource: APPOINTMENTS.month }, - { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS.timelineMonth }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - -735, - 1440, - -1440, - ].forEach((offset) => { - [ - { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, - ].forEach(({ startDayHour, endDayHour }) => { - test(` -Appointments ordering and workspaces render ( -view: ${views[0].type}, -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour} -)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName( - views[0].type, - offset, - startDayHour, - endDayHour, - ), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => { - const [view] = views; - - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - maxAppointmentsPerCell: 'unlimited', - dataSource, - views: [view], - currentView: view.type, - offset, - startDayHour, - endDayHour, - }); - }); - }); - }); -}); - -test('Appointments are ordered correctly with both recurrent and usual appointments (T1212573)', async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - 'view_markup_ordering-appts_T1212573.png', - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); -}).before(async () => { - const data = [ - { - text: 'Recurr 1', - startDate: new Date('2020-11-01T17:30:00.000Z'), - endDate: new Date('2020-11-01T19:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10', - }, { - text: 'Recurr 2', - startDate: new Date('2020-11-01T17:30:00.000Z'), - endDate: new Date('2020-11-01T19:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU,WE;COUNT=10', - }, { - text: 'Recurr 3', - startDate: new Date('2020-11-01T20:00:00.000Z'), - endDate: new Date('2020-11-01T21:00:00.000Z'), - recurrenceRule: 'FREQ=WEEKLY;BYDAY=SU;WKST=TU;INTERVAL=2;COUNT=2', - }, { - text: 'Recurr 4', - startDate: new Date('2020-11-01T17:00:00.000Z'), - endDate: new Date('2020-11-01T17:15:00.000Z'), - recurrenceRule: 'FREQ=DAILY;BYDAY=TU;UNTIL=20201203', - }, { - text: 'Test 1', - startDate: new Date('2020-11-01T15:00:00.000Z'), - endDate: new Date('2020-11-01T15:30:00.000Z'), - }, { - text: 'Test 2', - startDate: new Date('2020-11-01T18:00:00.000Z'), - endDate: new Date('2020-11-01T18:30:00.000Z'), - }, { - text: 'Test 3', - startDate: new Date('2020-11-02T15:00:00.000Z'), - endDate: new Date('2020-11-02T15:30:00.000Z'), - }, { - text: 'Test 4', - startDate: new Date('2020-11-02T18:00:00.000Z'), - endDate: new Date('2020-11-02T18:30:00.000Z'), - }, { - text: 'Test 5', - startDate: new Date('2020-11-03T15:00:00.000Z'), - endDate: new Date('2020-11-03T15:30:00.000Z'), - }, { - text: 'Test 6', - startDate: new Date('2020-11-03T18:00:00.000Z'), - endDate: new Date('2020-11-03T18:30:00.000Z'), - }, { - text: 'Test 7', - startDate: new Date('2020-11-04T15:00:00.000Z'), - endDate: new Date('2020-11-04T15:30:00.000Z'), - }, { - text: 'Test 8', - startDate: new Date('2020-11-04T18:00:00.000Z'), - endDate: new Date('2020-11-04T18:30:00.000Z'), - }, - ]; - - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2020-11-07', - height: 800, - dataSource: data, - views: ['timelineMonth'], - currentView: 'timelineMonth', - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1973eae61845..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b8a0fe6b36c8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index cbc1510206fb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0abed337e437..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2f476fad3d29..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 184fd2667473..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index aa999485f014..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0aec01345449..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 6202a1368cd0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0ea2ae1c23eb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 15b5b5f6d2ab..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 15b5b5f6d2ab..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 31cf129b851d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2c7d1c433a62..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e3c4f9006b5f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 10bc814993d6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 87fcce1f9759..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 87fcce1f9759..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d40f68ed4fb2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9438ef357b1b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 5284e650ef88..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 082339292a82..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1f4199261bdb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e9ce69075e64..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 60286c2e4fcc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c2419423ddaa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 58b5de9d3f0e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d6b4058c08fc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d032a52109d3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 88841602987d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3d95a8271e82..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3d95a8271e82..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ffeb9c209a27..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ffeb9c209a27..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 97409e4b51a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 5081f905503c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ef686a32354f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ef686a32354f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 26f85390aa70..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 26f85390aa70..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 255d33470920..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2aef8e2a3a58..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d9eb408a2dd9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 516c8b869301..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e449726ec2e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2e1700c49786..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c9d12c658b07..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 345cdfc3336b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 29512cbb7ec8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 95aa11499822..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9891eb6d4983..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 9e19adf69766..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2ea83fa40b22..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 9d0970e4bf78..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a6fbd5993c73..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 12e995df5057..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 8baf18286540..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 6c8ea76cc728..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 80fd35d1f3d3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 4907aef50d77..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index fa7aa16d0fdd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 44e4bc39afaa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ce992345c16e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 07029d429c8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 7dab53957abb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 040417651483..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 056bc8dce671..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index a0f4debb39ea..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 573260bddc7a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index f56ade39a385..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c1bdeaad85e0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index fb535a76e81a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9f568fd466db..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f0bf25e46e38..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 317e737c5214..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 263f099004fa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 39d3191b4f1c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c1e03738793c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b53aa0d198bb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 8803a24d5577..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2504b323464e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index c566a8f52c4e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 76571c4a36ba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 4e008e0cc8a2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 6cf73bc070a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index e5bf78d43e80..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9cdc9e97b33c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index a458b15312aa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c4c06979755f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 6ea26d59e311..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 62dd0cffce6c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 1de612bbfa9f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ba2f1621febf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 9b93f422c6e4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 24bf1b57b3d3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index a94397324c2b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e30f189bc09b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 95975ed4eae2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 62e33016d799..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index e9ae87886910..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_all-day_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png deleted file mode 100644 index 6143305b24e0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_T1212573 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 4ab1a6f99ec8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 90b4e9112704..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index ba50f08321cd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index f5e567f1884b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset--735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 432a03cc9dce..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index abc328c4b6c2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-0_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 37cddbe87ca4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index cb6793eb4968..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 1643a7b15ecb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index e4bb5aa6ed2d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_month_offset-735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 4e8796c64466..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 418485b2f9f6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index c2aaef64bfe9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index a55ba55533b7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 61a5930512e2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index b7776406cbda..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 78de61adc55f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index ce602cef2a21..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 4f2e898c4f55..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index fe7613b1cacd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_ordering-appts_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db294c2e9111..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b0c0eaf3554b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0e52aa043b0a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 8f439c339de3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 8cd2e42027dc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 69b138a4de74..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index eabd77db871c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 4adde646341f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0ec5d557ee5d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0ec5d557ee5d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index dbce3a83f65b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c3a65a2062d9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index e794a1b78f6e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index dd15bf4b97a3..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset--720_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index c873a7feb34d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 1f0148920096..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_day_offset-720_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 0559e61ced74..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 9c197ab6af8e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset--720_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index c85e69ea36ef..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index f8308d9cc60b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_short-day-views_timelineDay_offset-720_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 88b43f566c30..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ada0d6d05eec..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0c036556bb09..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 7d4f6f9cb65a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e81001740489..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f77cf283a7e4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a02196624bfa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b98e92c7f671..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3cb76de8df96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3cb76de8df96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 410e81a3d205..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b98e92c7f671..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 34a90e4af416..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 7ee1e0e52a2a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ac08377c8948..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 5ea1bd2afbf0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ce8bb9fe6866..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 48e864dcac0c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 5cd5334e9364..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index ca171698ac3b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f47ed4ce79d8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index bab124eff2af..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index fab1c9c9a76c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 31edb0df237d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index fd2840937492..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 5330be49ef4c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db54c756b8e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 169bb2ebb7e9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 7d70a129fa98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 57c63da0554b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index cc8e8a871332..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3fd167d41d6d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 358b004ab2a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1c127cb4ff7e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 621504add2c4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2508168432be..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9d7c5c12b702..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 1c48071f5e5f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1729cc4ca84f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index fa631c74130d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 5f63fe080b98..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index dfe2e23aa20d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d99c39b998cb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index f55abdeb5249..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c95cab86bc4d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index cda513d29269..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 17197e6ab2db..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index d0ab7e2df5a2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_recurrent-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 48e8fe7f1480..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d5580f50213c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ef213a451d5e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 45ca01b93f85..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3076a51519a5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a093313f6b41..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 07170feb5d6e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ee125832b71c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 6cf029787194..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d499622a16c9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_day_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3fbd98488d8d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 18228dd3ec77..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db0cd69b60a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 611b4460e5bd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db0cd69b60a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0580eb2b2c99..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db0cd69b60a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d1a79a49a758..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db0cd69b60a0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 53612c3f23b0..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_month_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d7c31b6b5c64..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 47922dd002f1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 4e04068daa18..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0b3421765895..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 086853688a0e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f8f900c06c0c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 12f95314d4bd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 777b37f0bc20..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index db7d2397bcc7..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index bc27665fd4c1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineDay_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9b16cf6b7999..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index d6c17d87050e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 44d0dd0af1c9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a4d92e4a9740..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9e2295e579cc..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 59dd2d346205..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 2b73da87e069..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e791049c13f6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1c9bf7c8c780..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 4f8476cc9602..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineMonth_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 4e3431edbd5a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9a030d699bb4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a3ac91a54322..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 729e2cfab2e8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f483a289133d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 20c0627b707c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1088cfd683b6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 1881ff2d210c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a326c6a9bb5e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 92b29359bf30..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index bf089481d18b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 77f7276d2151..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 47af437952a8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 11035ebd233e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 162eea2bd2c1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 990d24b9c14d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index e9f477f61767..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index f32e82b874bf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0b79987dec92..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 2ccf4f719bf6..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a0fcc6aea0ba..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index f9d1e94d602b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index ae9c56740462..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index a90ac0956add..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b7c6a90f6c4e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index e5f3cb656990..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index eb79870b86bb..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index a5aef5105d32..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 27d022705db9..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index db8ce9d7504b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_timelineWorkWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c40d7dc9ee3e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0415d967a094..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index f14e69c28a6b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a50f085cc123..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 0577ab039bfa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 9cb7f6c0e739..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 3f11d8577769..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 26112a138269..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index fce334137755..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 96a043c64b41..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_week_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a2484c95ce2b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index f41614e41400..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 6633a0ab6f7b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index af950aeafd01..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index c2140711b91a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 5f8b33116772..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 02bbc0034014..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index faa73f6ae502..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset--735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 06fa5447c3a1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 721f3b685552..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 075b86b59dc2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 3dce898a35bd..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-0_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 697aae815006..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 3b8699c4080c..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index a9f32744b36b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 0aca780d1c96..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-1440_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png deleted file mode 100644 index b9d5deaa2a65..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 14760f397094..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-0_end-24_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png deleted file mode 100644 index 15ccab9d6f12..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-0 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png deleted file mode 100644 index 53b11487d003..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_usual-appts_workWeek_offset-735_start-9_end-17_first-day-3 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 104436cfa33e..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 562a5fed521d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 0c7d4999a323..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 15d14829b8b2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset--735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index fd387ee75bce..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 7c623d9410c2..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-0_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 80f4f492bfea..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index c8c379b1494d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 75b57c6ed593..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 137945ce9757..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_month_offset-735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 180a477d1a1f..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 7f0d9730cbaa..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 8af153bbee5b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 00e7f0a1ad4b..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset--735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 69a428f7b5b1..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index fcbedd0d354a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-0_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index d37c095b7c0d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index a4ddb4cb074a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index b32c6d7d4d34..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index d782f527bebf..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_timelineMonth_offset-735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index e385be56a452..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 725530e5aec8..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 2b23ee43b8b5..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 90b8e07c1941..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset--735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 69d3eea78fd4..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index 0280b880ea13..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-0_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index fb22916aad62..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index ee834418dc6d..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-1440_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png deleted file mode 100644 index 7fdc2e706775..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-0_end-24 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png deleted file mode 100644 index b04e6202a47a..000000000000 Binary files a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/etalons/view_markup_virtual-scrolling_week_offset-735_start-9_end-17 (fluent.blue.light).png and /dev/null differ diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/recurrentAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/recurrentAppointments.ts deleted file mode 100644 index ca951a2985bd..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/recurrentAppointments.ts +++ /dev/null @@ -1,333 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Markup recurrent appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; - -const APPOINTMENTS = [ - { - startDate: '2023-08-01T10:00:00', - endDate: '2023-08-01T14:00:00', - recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', - text: 'Hourly 10-14', - }, - { - startDate: '2023-08-01T16:00:00', - endDate: '2023-08-01T20:00:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', - text: 'Daily 16-20', - }, - { - startDate: '2023-08-01T23:00:00', - endDate: '2023-08-02T05:00:00', - recurrenceRule: 'FREQ=MONTHLY;BYMONTHDAY=7', - allDay: true, - text: 'All day 01 -> 02', - }, -]; -// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). -const APPOINTMENTS_TIMELINE = [ - { - startDate: '2023-08-01T04:00:00', - endDate: '2023-08-01T18:00:00', - recurrenceRule: 'FREQ=HOURLY;INTERVAL=24', - text: 'Hourly 04-18', - }, - { - startDate: '2023-08-01T20:00:00', - endDate: '2023-08-02T10:00:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=MO,WE,TH,FR', - text: 'Daily 20-10', - }, -]; - -const getScreenshotName = ( - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, - firstDay?: number, -) => `view_markup_recurrent-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; - -const getScreenshotNameForEdgeCase = ( - edgeCaseName: string, - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, -) => `view_markup_recurrent-appts_${edgeCaseName}_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; - -const getViewWithCorrectCellDuration = ( - view: { type: string; cellDuration?: number }, - startDayHour: number, - endDayHour: number, -): { type: string; cellDuration?: number } => { - switch (view.type) { - case 'timelineWeek': - case 'timelineWorkWeek': - return { - ...view, - cellDuration: (endDayHour - startDayHour) * 60, - }; - default: - return view; - } -}; - -// TODO(10): Fix view model. Appointment with offset can crops and doesn't render -[ - { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, - { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, - // NOTE: The timelineWorkWeek view has some existing issues - // Therefore some screenshots is invalid :( - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS_TIMELINE }, - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS_TIMELINE }, - { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - -735, - ].forEach((offset) => { - [ - { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, - ].forEach(({ startDayHour, endDayHour }) => { - test(` -Recurrence appointments and workspaces render ( -view: ${views[0].type}, -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour}, -first day: ${views[0].firstDayOfWeek} -)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName( - views[0].type, - offset, - startDayHour, - endDayHour, - views[0].firstDayOfWeek, - ), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => { - const view = getViewWithCorrectCellDuration( - views[0], - startDayHour, - endDayHour, - ); - - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - maxAppointmentsPerCell: 'unlimited', - dataSource, - views: [view], - currentView: view.type, - offset, - startDayHour, - endDayHour, - }); - }); - }); - }); -}); - -[ - { views: [{ type: 'day', cellDuration: 60 }] }, - { views: [{ type: 'timelineDay', cellDuration: 240 }] }, -].forEach(({ views }) => { - [ - // Positive offset case without limits - { - dataSource: [{ - startDate: '2023-09-01T10:00:00', - endDate: '2023-09-01T14:00:00', - text: '#0 WE 10:00->14:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T20:00:00', - endDate: '2023-09-02T04:00:00', - text: '#1 WE 20:00->04:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T10:00:00', - endDate: '2023-09-01T14:00:00', - text: '#2 TH 10:00->14:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', - }, - { - startDate: '2023-09-01T00:00:00', - endDate: '2023-09-01T00:00:00', - text: '#3 All-day TH', - allDay: true, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', - }], - offset: 720, - startDayHour: 0, - endDayHour: 24, - }, - // Positive offset case with limits - { - dataSource: [{ - startDate: '2023-09-01T20:00:00', - endDate: '2023-09-01T22:00:00', - text: '#0 WE 15:00->19:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T23:00:00', - endDate: '2023-09-02T01:00:00', - text: '#1 WE 23:00->01:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T04:00:00', - endDate: '2023-09-01T06:00:00', - text: '#2 TH 04:00->06:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', - }, - { - startDate: '2023-09-01T00:00:00', - endDate: '2023-09-01T00:00:00', - text: '#3 All-day TH', - allDay: true, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TH', - }], - offset: 720, - startDayHour: 9, - endDayHour: 17, - }, - // Negative offset case without limits - { - dataSource: [{ - startDate: '2023-09-01T10:00:00', - endDate: '2023-09-01T14:00:00', - text: '#0 TU 10:00->14:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', - }, - { - startDate: '2023-09-01T20:00:00', - endDate: '2023-09-02T04:00:00', - text: '#1 TU 20:00->04:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', - }, - { - startDate: '2023-09-01T10:00:00', - endDate: '2023-09-01T14:00:00', - text: '#2 WE 10:00->14:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T00:00:00', - endDate: '2023-09-01T00:00:00', - text: '#3 All-day WE', - allDay: true, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }], - offset: -720, - startDayHour: 0, - endDayHour: 24, - }, - // Negative offset case with limits - { - dataSource: [{ - startDate: '2023-09-01T20:00:00', - endDate: '2023-09-01T22:00:00', - text: '#0 TU 15:00->19:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', - }, - { - startDate: '2023-09-01T23:00:00', - endDate: '2023-09-02T01:00:00', - text: '#1 TU 23:00->01:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=TU', - }, - { - startDate: '2023-09-01T04:00:00', - endDate: '2023-09-01T06:00:00', - text: '#2 WE 04:00->06:00', - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }, - { - startDate: '2023-09-01T00:00:00', - endDate: '2023-09-01T00:00:00', - text: '#3 All-day WE', - allDay: true, - recurrenceRule: 'FREQ=WEEKLY;BYDAY=WE', - }], - offset: -720, - startDayHour: 9, - endDayHour: 17, - }, - ].forEach(({ - dataSource, offset, startDayHour, endDayHour, - }) => { - test(` -Recurrence appointments and workspaces render in short day views ( -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour} -)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotNameForEdgeCase( - 'short-day-views', - views[0].type, - offset, - startDayHour, - endDayHour, - ), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-06', - height: 800, - maxAppointmentsPerCell: 'unlimited', - currentView: views[0].type, - dataSource, - views, - offset, - startDayHour, - endDayHour, - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts deleted file mode 100644 index 8c1a00f65bc2..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { generateAppointments } from '../../helpers/generateAppointments'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Markup usual appointments` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const APPOINTMENTS_TIME = [ - { startTime: '04:00:00', endTime: '08:00:00' }, - { startTime: '10:15:00', endTime: '16:15:00' }, - { startTime: '17:05:00', endTime: '22:05:00' }, - { startTime: '23:00:00', endTime: '03:30:00', endDateShiftDays: 1 }, -]; -// NOTE: Appointment has increased length for testing purpose (it makes screenshots more obvious). -const APPOINTMENTS_TIMELINE_TIME = [ - { startTime: '04:00:00', endTime: '08:00:00', endDateShiftDays: 1 }, - { startTime: '10:15:00', endTime: '16:15:00', endDateShiftDays: 1 }, - { startTime: '17:05:00', endTime: '22:05:00', endDateShiftDays: 1 }, - { startTime: '23:00:00', endTime: '03:30:00', endDateShiftDays: 1 }, -]; -const APPOINTMENTS = { - day: generateAppointments( - '2023-09-06', - '2023-09-08', - APPOINTMENTS_TIME, - ), - week: generateAppointments( - '2023-09-02', - '2023-09-10', - APPOINTMENTS_TIME, - ), - workWeekWithFirstDay: generateAppointments( - '2023-09-05', - '2023-09-13', - APPOINTMENTS_TIME, - ), - month: generateAppointments( - '2023-08-26', - '2023-10-08', - APPOINTMENTS_TIME, - ), - timelineDay: generateAppointments( - '2023-09-06', - '2023-09-08', - APPOINTMENTS_TIMELINE_TIME, - ), - timelineWeek: generateAppointments( - '2023-09-02', - '2023-09-10', - APPOINTMENTS_TIMELINE_TIME, - ), - timelineWeekWithFirstDay: generateAppointments( - '2023-09-05', - '2023-09-13', - APPOINTMENTS_TIMELINE_TIME, - ), - timelineMonth: generateAppointments( - '2023-08-31', - '2023-09-08', - APPOINTMENTS_TIMELINE_TIME, - ), -}; - -const getScreenshotName = ( - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, - firstDay?: number, -) => `view_markup_usual-appts_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}_first-day-${firstDay}.png`; - -const getViewWithCorrectCellDuration = ( - view: { type: string; cellDuration?: number }, - startDayHour: number, - endDayHour: number, -): { type: string; cellDuration?: number } => { - switch (view.type) { - case 'timelineWeek': - case 'timelineWorkWeek': - return { - ...view, - cellDuration: (endDayHour - startDayHour) * 60, - }; - default: - return view; - } -}; - -[ - { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, - { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, - { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, - { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineDay }, - { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, - // NOTE: The timelineWorkWeek view has some existing issues - // Therefore some screenshots is invalid :( - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.timelineWeekWithFirstDay }, - { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - 1440, - -735, - -1440, - ].forEach((offset) => { - [ - { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, - ].forEach(({ startDayHour, endDayHour }) => { - test(` -Usual appointments and workspaces render ( -view: ${views[0].type}, -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour}, -first day: ${views[0].firstDayOfWeek} -)`, async (t) => { - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName( - views[0].type, - offset, - startDayHour, - endDayHour, - views[0].firstDayOfWeek, - ), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }) - .before(async () => { - const view = getViewWithCorrectCellDuration( - views[0], - startDayHour, - endDayHour, - ); - - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - maxAppointmentsPerCell: 'unlimited', - dataSource, - views: [view], - currentView: view.type, - offset, - startDayHour, - endDayHour, - }); - }); - }); - }); -}); diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/virtualScrolling.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/virtualScrolling.ts deleted file mode 100644 index c36390fcfd3c..000000000000 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/virtualScrolling.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; -import Scheduler from 'devextreme-testcafe-models/scheduler'; -import { createWidget } from '../../../../helpers/createWidget'; -import { insertStylesheetRulesToPage } from '../../../../helpers/domUtils'; -import url from '../../../../helpers/getPageUrl'; -import { testScreenshot } from '../../../../helpers/themeUtils'; - -fixture.disablePageReloads`Offset: Markup virtual scrolling` - .page(url(__dirname, '../../../container.html')); - -const SCHEDULER_SELECTOR = '#container'; -const REDUCE_CELLS_CSS = ` -.dx-scheduler-cell-sizes-vertical { - height: 25px; -}`; -const APPOINTMENTS = [ - { - startDate: '2023-09-05T00:00:00', - endDate: '2023-09-05T03:00:00', - text: '#0 Usual 05 00:00->03:00', - }, - { - startDate: '2023-09-05T04:00:00', - endDate: '2023-09-05T09:00:00', - text: '#1 Usual 05 05:00->09:00', - }, - { - startDate: '2023-09-05T10:30:00', - endDate: '2023-09-05T16:30:00', - text: '#2 Usual 05 12:30->16:30', - }, - { - startDate: '2023-09-05T17:00:00', - endDate: '2023-09-05T23:30:00', - text: '#3 Usual 05 18:00->22:00', - }, - { - startDate: '2023-09-05T00:00:00', - endDate: '2023-09-05T00:00:00', - text: '#4 All-day 05', - allDay: true, - }, -]; - -const getScreenshotName = ( - viewType: string, - offset: number, - startDayHour: number, - endDayHour: number, -) => `view_markup_virtual-scrolling_${viewType}_offset-${offset}_start-${startDayHour}_end-${endDayHour}.png`; - -[ - { views: [{ type: 'week', cellDuration: 60 }], dataSource: APPOINTMENTS }, - { views: [{ type: 'month' }], dataSource: APPOINTMENTS }, - { views: [{ type: 'timelineMonth' }], dataSource: APPOINTMENTS }, -].forEach(({ views, dataSource }) => { - [ - 0, - 735, - 1440, - -735, - -1440, - ].forEach((offset) => { - [ - { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, - ].forEach(({ startDayHour, endDayHour }) => { - test(` -Appointments and workspaces with virtual scrolling render ( -view: ${views[0].type} -offset: ${offset}, -start: ${startDayHour}, -end: ${endDayHour}, -)`, async (t) => { - const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const scheduler = new Scheduler(SCHEDULER_SELECTOR); - - await testScreenshot( - t, - takeScreenshot, - getScreenshotName(views[0].type, offset, startDayHour, endDayHour), - { element: scheduler.workSpace }, - ); - - await t.expect(compareResults.isValid()) - .ok(compareResults.errorMessages()); - }).before(async () => { - await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); - await createWidget('dxScheduler', { - currentDate: '2023-09-07', - height: 800, - maxAppointmentsPerCell: 'unlimited', - dataSource, - views, - currentView: views[0].type, - offset, - startDayHour, - endDayHour, - }); - }); - }); - }); -}); - -// [ -// { views: [{ type: 'day', cellDuration: 60 }], dataSource: APPOINTMENTS }, -// { views: [{ type: 'timelineDay', cellDuration: 240 }], dataSource: APPOINTMENTS }, -// ].forEach(({ views, dataSource }) => { -// [ -// 0, -// -735, -// 735, -// ].forEach((offset) => { -// [ -// { startDayHour: 0, endDayHour: 24 }, -// { startDayHour: 9, endDayHour: 17 }, -// ].forEach(({ startDayHour, endDayHour }) => { -// test(` -// Appointments and workspaces with virtual scrolling render ( -// view: ${views[0].type} -// offset: ${offset}, -// start: ${startDayHour}, -// end: ${endDayHour}, -// )`, async (t) => { -// const { takeScreenshot, compareResults } = createScreenshotsComparer(t); -// const scheduler = new Scheduler(SCHEDULER_SELECTOR); -// -// await testScreenshot( -// t, -// takeScreenshot, -// getScreenshotName(views[0].type, offset, startDayHour, endDayHour), -// { element: scheduler.workSpace }, -// ); -// -// await t.expect(compareResults.isValid()) -// .ok(compareResults.errorMessages()); -// }).before(async () => { -// await insertStylesheetRulesToPage(REDUCE_CELLS_CSS); -// await createWidget('dxScheduler', { -// currentDate: '2023-09-05', -// height: 800, -// maxAppointmentsPerCell: 'unlimited', -// dataSource, -// views, -// currentView: views[0].type, -// offset, -// startDayHour, -// endDayHour, -// }); -// }); -// }); -// }); -// });