diff --git a/components/dialog/dialog-mixin.js b/components/dialog/dialog-mixin.js index 75c6b4324b6..bdc16e1a5fa 100644 --- a/components/dialog/dialog-mixin.js +++ b/components/dialog/dialog-mixin.js @@ -468,6 +468,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) { } const dialogOuterClasses = { + 'vdiff-target': true, 'd2l-dialog-outer': true, 'd2l-dialog-outer-full-height': this._autoSize && this._isFullHeight, 'd2l-dialog-outer-overflow-bottom': this._overflowBottom, diff --git a/components/dialog/test/dialog-confirm.vdiff.js b/components/dialog/test/dialog-confirm.vdiff.js new file mode 100644 index 00000000000..8f4e3012c7e --- /dev/null +++ b/components/dialog/test/dialog-confirm.vdiff.js @@ -0,0 +1,75 @@ +import '../../button/button.js'; +import '../dialog-confirm.js'; +import { expect, fixture, html } from '@brightspace-ui/testing'; + +const buttons = html` + Yes + No +`; + +const confirmDialog = html` + + ${buttons} + +`; + +describe('dialog-confirm', () => { + + [/*'native',*/ 'custom'].forEach((type) => { + + describe(type, () => { + before(() => window.D2L.DialogMixin.preferNative = type === 'native'); + + [ + { screen: 'wide', viewport: { width: 800, height: 500 } }, + { screen: 'narrow', viewport: { width: 600, height: 500 } } + ].forEach(({ screen, viewport }) => { + describe(screen, () => { + [ + { name: 'opened', template: confirmDialog }, + { name: 'rtl', rtl: true, template: confirmDialog }, + ].forEach(({ name, template, rtl }) => { + it(name, async() => { + await fixture(template, { viewport, rtl }); + await expect(document).to.be.golden(); + }); + }); + }); + }); + + describe('internal', () => { + + [ + { name: 'short', template: confirmDialog }, + { name: 'long-title', template: html` + + ${buttons} + + ` }, + { name: 'no-title', template: html`${buttons}` }, + { name: 'long-text', template: html` + + ${buttons} + + ` }, + { name: 'long-buttons', template: html` + + A really long workflow button. + Another really long workflow button. + + ` }, + { name: 'multiple-paragraphs', template: html` + + ${buttons} + + ` } + ].forEach(({ name, template }) => { + it(name, async() => { + const elem = await fixture(template, { viewport: { width: 800, height: 500 } }); + await expect(elem).to.be.golden(); + }); + }); + }); + }); + }); +}); diff --git a/components/dialog/test/dialog-confirm.visual-diff.html b/components/dialog/test/dialog-confirm.visual-diff.html deleted file mode 100644 index 11afc083bbc..00000000000 --- a/components/dialog/test/dialog-confirm.visual-diff.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - d2l-dialog-confirm - - - - - Open Dialog - - - Yes - No - - - - Yes - No - - - - Yes - No - - - - Yes - No - - - - A really long workflow button. - Another really long workflow button. - - - - Yes - No - - - - Yes - No - - - - diff --git a/components/dialog/test/dialog-confirm.visual-diff.js b/components/dialog/test/dialog-confirm.visual-diff.js deleted file mode 100644 index 95a95c7df30..00000000000 --- a/components/dialog/test/dialog-confirm.visual-diff.js +++ /dev/null @@ -1,92 +0,0 @@ -import { getRect, open, reset } from './dialog-helper.js'; -import puppeteer from 'puppeteer'; -import VisualDiff from '@brightspace-ui/visual-diff'; - -describe('d2l-dialog-confirm', () => { - - const visualDiff = new VisualDiff('dialog-confirm', import.meta.url); - - let browser, page; - - before(async() => { - browser = await puppeteer.launch(); - page = await visualDiff.createPage(browser); - }); - - after(async() => await browser.close()); - - ['native', 'custom'].forEach((name) => { - - describe(name, () => { - - before(async() => { - const preferNative = (name === 'native' ? '' : '?preferNative=false'); - await page.goto(`${visualDiff.getBaseUrl()}/components/dialog/test/dialog-confirm.visual-diff.html${preferNative}`, { waitUntil: ['networkidle0', 'load'] }); - await page.bringToFront(); - }); - - beforeEach(async() => { - await reset(page, '#confirm'); - await reset(page, '#confirmLongTitle'); - await reset(page, '#confirmNoTitle'); - await reset(page, '#confirmLongText'); - await reset(page, '#confirmLongButtons'); - await reset(page, '#confirmRtl'); - await reset(page, '#confirmMultiParagraph'); - }); - - [ - { category: 'wide', viewport: { width: 800, height: 500 } }, - { category: 'narrow', viewport: { width: 600, height: 500 } } - ].forEach((info) => { - - describe(info.category, () => { - - before(async() => { - await page.setViewport({ width: info.viewport.width, height: info.viewport.height, deviceScaleFactor: 2 }); - }); - - it('opened', async function() { - await open(page, '#confirm'); - await visualDiff.screenshotAndCompare(page, this.test.fullTitle(), { captureBeyondViewport: false }); - }); - - it('rtl', async function() { - await open(page, '#confirmRtl'); - await visualDiff.screenshotAndCompare(page, this.test.fullTitle(), { captureBeyondViewport: false }); - }); - - }); - - }); - - describe('internal', () => { - - before(async() => { - await page.setViewport({ width: 800, height: 500, deviceScaleFactor: 2 }); - }); - - [ - { name: 'short', selector: '#confirm' }, - { name: 'long title', selector: '#confirmLongTitle' }, - { name: 'no title', selector: '#confirmNoTitle' }, - { name: 'long text', selector: '#confirmLongText' }, - { name: 'long buttons', selector: '#confirmLongButtons' }, - { name: 'multiple paragraphs', selector: '#confirmMultiParagraph' } - ].forEach((info) => { - - it(info.name, async function() { - await open(page, info.selector); - const rect = await getRect(page, info.selector); - await visualDiff.screenshotAndCompare(page, this.test.fullTitle(), { captureBeyondViewport: false, clip: rect }); - }); - - }); - - }); - - }); - - }); - -}); diff --git a/components/dialog/test/dialog-helper.js b/components/dialog/test/dialog-helper.js deleted file mode 100644 index 0fe6e73fa53..00000000000 --- a/components/dialog/test/dialog-helper.js +++ /dev/null @@ -1,39 +0,0 @@ -import { focusWithKeyboard, oneEvent } from '@brightspace-ui/visual-diff'; - -export function getOpenEvent(page, selector) { - return oneEvent(page, selector, 'd2l-dialog-open'); -} - -export function getRect(page, selector) { - return page.$eval(selector, (dialog) => { - const elem = dialog.shadowRoot.querySelector('.d2l-dialog-outer'); - return { - x: elem.offsetLeft - 10, - y: elem.offsetTop - 10, - width: elem.offsetWidth + 20, - height: elem.offsetHeight + 20 - }; - }); -} - -export async function open(page, selector) { - const openEvent = getOpenEvent(page, selector); - await page.$eval(selector, (dialog) => dialog.opened = true); - return openEvent; -} - -export async function reset(page, selector) { - await page.$eval(selector, (dialog) => { - return new Promise((resolve) => { - dialog._fullscreenWithin = 0; - dialog.shadowRoot.querySelector('.d2l-dialog-content').scrollTo(0, 0); - if (dialog._state) { - dialog.addEventListener('d2l-dialog-close', () => resolve(), { once: true }); - dialog.opened = false; - } else { - resolve(); - } - }); - }); - return focusWithKeyboard(page, '#open'); -} diff --git a/components/dialog/test/dialog-ifrau-contents.visual-diff.html b/components/dialog/test/dialog-ifrau-contents.vdiff.html similarity index 69% rename from components/dialog/test/dialog-ifrau-contents.visual-diff.html rename to components/dialog/test/dialog-ifrau-contents.vdiff.html index 1fd8f73f09c..82f0a8f610a 100644 --- a/components/dialog/test/dialog-ifrau-contents.visual-diff.html +++ b/components/dialog/test/dialog-ifrau-contents.vdiff.html @@ -18,7 +18,7 @@ Open Dialog - +
Line 1
Line 2
Line 3
@@ -26,16 +26,5 @@ Yes No
- - - diff --git a/components/dialog/test/dialog-ifrau.vdiff.js b/components/dialog/test/dialog-ifrau.vdiff.js new file mode 100644 index 00000000000..9bcf227f385 --- /dev/null +++ b/components/dialog/test/dialog-ifrau.vdiff.js @@ -0,0 +1,56 @@ +import { expect, fixture, html } from '@brightspace-ui/testing'; +import { Host } from 'ifrau/host.js'; + +describe('dialog-ifrau', () => { + + [/*'native',*/ 'custom'].forEach((type) => { + + describe(type, () => { + let iframeSrc; + + before(() => { + const preferNative = (type === 'native' ? '' : '?preferNative=false'); + iframeSrc = `${window.location.origin}/components/dialog/test/dialog-ifrau-contents.vdiff.html${preferNative}`; + + const iframeOrigin = new URL(iframeSrc).origin; + const verifyPostMessage = (evt, expectedData) => { + return evt && evt.data === expectedData && iframeOrigin === evt.origin; + }; + const handleIsFramedRequest = evt => { + if (!verifyPostMessage(evt, 'isFramedRequest')) return; + evt.source.postMessage({ isFramed: true }, iframeSrc); + }; + window.addEventListener('message', handleIsFramedRequest, false); + }); + + [ + { name: 'ifrau top height lt dialog top margin', ifrau: { availableHeight: 500, top: 50 } }, + { name: 'ifrau top height gt dialog top margin', ifrau: { availableHeight: 500, top: 120 } }, + { name: 'ifrau available height lt host height', ifrau: { availableHeight: 300, top: 50 } }, + { name: 'host scrolled down', ifrau: { availableHeight: 400, top: -50 } } + ].forEach(({ name, ifrau }) => { + it(name, async() => { + const elem = await fixture(html`
`, { viewport: { width: 726, height: 300 } }); + const ifrauHost = new Host( + () => elem, + iframeSrc, + { height: '450px' } + ); + + await ifrauHost.registerService('dialogWC', '0.1', { + showBackdrop: () => { + return { + availableHeight: ifrau.availableHeight, + top: ifrau.top + }; + }, + hideBackdrop: async() => {} + }); + await ifrauHost.connect(); + + await expect(document).to.be.golden(); + }).timeout(5000); // ifrau connecting can be very slow + }); + }); + }); +}); diff --git a/components/dialog/test/dialog-ifrau.visual-diff.html b/components/dialog/test/dialog-ifrau.visual-diff.html deleted file mode 100644 index 266fa30f8aa..00000000000 --- a/components/dialog/test/dialog-ifrau.visual-diff.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - d2l-dialog-ifrau - - - - - -
- - - - - diff --git a/components/dialog/test/dialog-ifrau.visual-diff.js b/components/dialog/test/dialog-ifrau.visual-diff.js deleted file mode 100644 index 7414bca8565..00000000000 --- a/components/dialog/test/dialog-ifrau.visual-diff.js +++ /dev/null @@ -1,89 +0,0 @@ -import { oneEvent, VisualDiff } from '@brightspace-ui/visual-diff'; -import puppeteer from 'puppeteer'; - -describe('d2l-dialog-ifrau', () => { - - const visualDiff = new VisualDiff('dialog-ifrau', import.meta.url); - - let browser, page; - - before(async() => { - browser = await puppeteer.launch(); - page = await visualDiff.createPage(browser); - }); - - after(async() => await browser.close()); - - const open = async(page, selector) => { - const openEvent = oneEvent(page, selector, 'ifrau-dialog-open'); - await page.$eval(selector, dialogContainer => { - const iframe = dialogContainer.querySelector('iframe'); - const dialog = iframe.contentWindow.document.body.querySelector('#ifrau-dialog'); - dialog.opened = true; - }); - return openEvent; - }; - - const reset = async(page, selector) => { - const closeEvent = oneEvent(page, selector, 'ifrau-dialog-close'); - await Promise.race([ - page.$eval(selector, dialogContainer => { - return new Promise(resolve => { - const iframe = dialogContainer.querySelector('iframe'); - const dialog = iframe.contentWindow.document.body.querySelector('#ifrau-dialog'); - - dialog._fullscreenWithin = 0; - dialog.shadowRoot.querySelector('.d2l-dialog-content').scrollTo(0, 0); - if (dialog._state) { - dialog.opened = false; - } else { - resolve(); - } - }); - }), - closeEvent - ]); - - return page.$eval(selector, dialogContainer => { - const iframe = dialogContainer.querySelector('iframe'); - iframe.contentWindow.document.body.querySelector('#open').click(); - }); - }; - - ['native', 'custom'].forEach((name) => { - - describe(name, () => { - - before(async() => { - const preferNative = (name === 'native' ? '' : '?preferNative=false'); - const src = `${visualDiff.getBaseUrl()}/components/dialog/test/dialog-ifrau-contents.visual-diff.html${preferNative}`; - await page.goto(`${visualDiff.getBaseUrl()}/components/dialog/test/dialog-ifrau.visual-diff.html?src=${encodeURIComponent(src)}`, { waitUntil: ['networkidle0', 'load'] }); - await page.setViewport({ width: 726, height: 526, deviceScaleFactor: 2 }); - await page.bringToFront(); - }); - - beforeEach(async() => { - await reset(page, '#ifrau-dialog-container'); - }); - - [ - { name: 'ifrau top height lt dialog top margin', ifrau: { availableHeight: 500, top: 50 } }, - { name: 'ifrau top height gt dialog top margin', ifrau: { availableHeight: 500, top: 120 } }, - { name: 'ifrau available height lt host height', ifrau: { availableHeight: 300, top: 50 } }, - { name: 'host scrolled down', ifrau: { availableHeight: 400, top: -50 } } - ].forEach((info) => { - it(info.name, async function() { - await page.evaluate((info) => { - window.ifrauAvailableHeight = info.ifrau.availableHeight; - window.ifrauTop = info.ifrau.top; - }, info); - await open(page, '#ifrau-dialog-container'); - await visualDiff.screenshotAndCompare(page, this.test.fullTitle(), { captureBeyondViewport: false }); - }); - }); - - }); - - }); - -}); diff --git a/components/dialog/test/dialog-mixin.test.js b/components/dialog/test/dialog-mixin.test.js new file mode 100644 index 00000000000..ab9a44c7366 --- /dev/null +++ b/components/dialog/test/dialog-mixin.test.js @@ -0,0 +1,77 @@ +import { defineCE, expect, fixture, nextFrame, oneDefaultPreventedEvent, oneEvent, sendKeys } from '@brightspace-ui/testing'; +import { html, LitElement } from 'lit'; +import { DialogMixin } from '../dialog-mixin.js'; + +const tagName = defineCE( + class extends DialogMixin(LitElement) { + render() { + return this._render(html` +
+ `, {}); + } + } +); + +describe('dialog-mixin', () => { + + describe('events', () => { + + it('should fire the open event when the opened attribute is set to true', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + }); + + it('should fire the open event when open() is called', async() => { + const elem = await fixture(`<${tagName}>`); + elem.open(); + await oneEvent(elem, 'd2l-dialog-open'); + }); + + it('should fire the close event when opened attribute is set to false', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + elem.opened = false; + await oneEvent(elem, 'd2l-dialog-close'); + }); + + it('should fire the close event when escape is pressed', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + sendKeys('press', 'Escape'); + await oneEvent(elem, 'd2l-dialog-close'); + }); + + it('should fire the close event when _close() is called', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + setTimeout(() => elem._close()); + await oneEvent(elem, 'd2l-dialog-close'); + }); + + it('should first fire the before-close event to allow prevention of the dialog close', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + setTimeout(() => elem._close()); + + await oneDefaultPreventedEvent(elem, 'd2l-dialog-before-close'); + await nextFrame(); + expect(elem.opened).to.be.true; + }); + + it('should fire close event when before-close event\'s closeDialog() is called', async() => { + const elem = await fixture(`<${tagName} opened>`); + await oneEvent(elem, 'd2l-dialog-open'); + setTimeout(() => elem._close()); + + const event = await oneDefaultPreventedEvent(elem, 'd2l-dialog-before-close'); + setTimeout(() => { + expect(elem.opened).to.be.true; + event.detail.closeDialog(); + }, 10); + await oneEvent(elem, 'd2l-dialog-close'); + expect(elem.opened).to.be.false; + }); + + }); + +}); diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-buttons.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-buttons.png new file mode 100644 index 00000000000..d3dfdcbdfac Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-buttons.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-text.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-text.png new file mode 100644 index 00000000000..25413e59ffa Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-text.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-title.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-title.png new file mode 100644 index 00000000000..ee1975d1018 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-long-title.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-multiple-paragraphs.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-multiple-paragraphs.png new file mode 100644 index 00000000000..a76ced724ae Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-multiple-paragraphs.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-no-title.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-no-title.png new file mode 100644 index 00000000000..36b7d7e4463 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-no-title.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-short.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-short.png new file mode 100644 index 00000000000..8c7db9fadb2 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-internal-short.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-opened.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-opened.png new file mode 100644 index 00000000000..dd08bc79106 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-opened.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-rtl.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-rtl.png new file mode 100644 index 00000000000..33213cd9a6f Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-narrow-rtl.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-opened.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-opened.png new file mode 100644 index 00000000000..558865644b6 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-opened.png differ diff --git a/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-rtl.png b/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-rtl.png new file mode 100644 index 00000000000..3e0f4bd9003 Binary files /dev/null and b/components/dialog/test/golden/dialog-confirm/chromium/custom-wide-rtl.png differ diff --git a/components/dialog/test/golden/dialog-ifrau/chromium/custom-host-scrolled-down.png b/components/dialog/test/golden/dialog-ifrau/chromium/custom-host-scrolled-down.png new file mode 100644 index 00000000000..a017194a0e8 Binary files /dev/null and b/components/dialog/test/golden/dialog-ifrau/chromium/custom-host-scrolled-down.png differ diff --git a/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-available-height-lt-host-height.png b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-available-height-lt-host-height.png new file mode 100644 index 00000000000..91dfe69f4f4 Binary files /dev/null and b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-available-height-lt-host-height.png differ diff --git a/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-gt-dialog-top-margin.png b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-gt-dialog-top-margin.png new file mode 100644 index 00000000000..ba9cef846f5 Binary files /dev/null and b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-gt-dialog-top-margin.png differ diff --git a/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-lt-dialog-top-margin.png b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-lt-dialog-top-margin.png new file mode 100644 index 00000000000..a8c426d0187 Binary files /dev/null and b/components/dialog/test/golden/dialog-ifrau/chromium/custom-ifrau-top-height-lt-dialog-top-margin.png differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-buttons.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-buttons.png deleted file mode 100644 index 4a3dab45524..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-buttons.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-text.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-text.png deleted file mode 100644 index af33571dec6..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-text.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-title.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-title.png deleted file mode 100644 index cc19895650b..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-long-title.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-multiple-paragraphs.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-multiple-paragraphs.png deleted file mode 100644 index fa4245db476..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-multiple-paragraphs.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-no-title.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-no-title.png deleted file mode 100644 index dd26e18d2a9..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-no-title.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-short.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-short.png deleted file mode 100644 index ebb979503b1..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-internal-short.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-opened.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-opened.png deleted file mode 100644 index 9e67fd0aef9..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-opened.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-rtl.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-rtl.png deleted file mode 100644 index 785e2c0e3a4..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-narrow-rtl.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-opened.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-opened.png deleted file mode 100644 index ba88d80b3e7..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-opened.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-rtl.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-rtl.png deleted file mode 100644 index a527b4b4c79..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-custom-wide-rtl.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-buttons.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-buttons.png deleted file mode 100644 index 4a3dab45524..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-buttons.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-text.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-text.png deleted file mode 100644 index af33571dec6..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-text.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-title.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-title.png deleted file mode 100644 index cc19895650b..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-long-title.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-multiple-paragraphs.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-multiple-paragraphs.png deleted file mode 100644 index fa4245db476..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-multiple-paragraphs.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-no-title.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-no-title.png deleted file mode 100644 index dd26e18d2a9..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-no-title.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-short.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-short.png deleted file mode 100644 index ebb979503b1..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-internal-short.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-opened.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-opened.png deleted file mode 100644 index 9e67fd0aef9..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-opened.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-rtl.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-rtl.png deleted file mode 100644 index 785e2c0e3a4..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-narrow-rtl.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-opened.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-opened.png deleted file mode 100644 index ba88d80b3e7..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-opened.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-rtl.png b/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-rtl.png deleted file mode 100644 index a527b4b4c79..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-confirm/d2l-dialog-confirm-native-wide-rtl.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-host-scrolled-down.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-host-scrolled-down.png deleted file mode 100644 index 12cdc5405f6..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-host-scrolled-down.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-available-height-lt-host-height.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-available-height-lt-host-height.png deleted file mode 100644 index a917094f7b0..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-available-height-lt-host-height.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-gt-dialog-top-margin.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-gt-dialog-top-margin.png deleted file mode 100644 index 4cce4d38e55..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-gt-dialog-top-margin.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-lt-dialog-top-margin.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-lt-dialog-top-margin.png deleted file mode 100644 index 1cfe93b9e1f..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-custom-ifrau-top-height-lt-dialog-top-margin.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-host-scrolled-down.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-host-scrolled-down.png deleted file mode 100644 index 12cdc5405f6..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-host-scrolled-down.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-available-height-lt-host-height.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-available-height-lt-host-height.png deleted file mode 100644 index a917094f7b0..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-available-height-lt-host-height.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-gt-dialog-top-margin.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-gt-dialog-top-margin.png deleted file mode 100644 index 4cce4d38e55..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-gt-dialog-top-margin.png and /dev/null differ diff --git a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-lt-dialog-top-margin.png b/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-lt-dialog-top-margin.png deleted file mode 100644 index 1cfe93b9e1f..00000000000 Binary files a/components/dialog/test/screenshots/ci/golden/dialog-ifrau/d2l-dialog-ifrau-native-ifrau-top-height-lt-dialog-top-margin.png and /dev/null differ diff --git a/package-lock.json b/package-lock.json index eacee97c7a6..260540fc140 100644 --- a/package-lock.json +++ b/package-lock.json @@ -555,9 +555,9 @@ } }, "node_modules/@brightspace-ui/testing": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/@brightspace-ui/testing/-/testing-0.30.0.tgz", - "integrity": "sha512-EFKTLbGOoNLMfYsfut1SLsWVzz1sLkjaAt63OV7vkpdzZkwsV8RFSwTpgU1Zpt4zxZAII5nu9HaM9vSLfQ/7aA==", + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@brightspace-ui/testing/-/testing-0.30.1.tgz", + "integrity": "sha512-ZONhTuDK12m/VdmMtgDih9XAYlno2oYIC1FEwsQxhbNvYZJf5Hj3bFVIicNLhI0gZZQJNq/lxql8l/DgYd3dvA==", "dev": true, "dependencies": { "@open-wc/testing": "^3",