-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #496 from adobecom/MWPW-138943
MWPW-138943 POC Integration test
- Loading branch information
Showing
34 changed files
with
863 additions
and
476 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* eslint-disable func-names */ | ||
import { | ||
readFile, | ||
setViewport, | ||
executeServerCommand, | ||
} from '@web/test-runner-commands'; | ||
import { waitFor, delay } from '../../helpers/waitfor.js'; | ||
|
||
const screenshotFolder = 'test/integration/accordian/screenshots'; | ||
|
||
describe('accordian-desktop', function () { | ||
const suiteName = this.title; | ||
let testName; | ||
let screenshotPath; | ||
|
||
before(async () => { | ||
document.head.innerHTML = await readFile({ path: '../mocks/head.html' }); | ||
document.body.innerHTML = await readFile({ path: './mocks/body.html' }); | ||
await setViewport({ width: 1000, height: 600 }); | ||
await import('../../../acrobat/scripts/scripts.js'); | ||
await waitFor(() => document.querySelector('.accordion-container'), 5000, 1000); | ||
}); | ||
|
||
beforeEach(function () { | ||
testName = this.currentTest.title; | ||
screenshotPath = `${screenshotFolder}/${suiteName}/$browser/${testName}.png`; | ||
}); | ||
|
||
it('collapsed', async () => { | ||
await delay(1000); | ||
await executeServerCommand('diff-screenshot', { path: screenshotPath }); | ||
}); | ||
|
||
it('expanded', async () => { | ||
document.querySelectorAll('.accordion-trigger')[0].click(); | ||
await delay(1000); | ||
await executeServerCommand('diff-screenshot', { path: screenshotPath }); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* eslint-disable func-names */ | ||
import { | ||
readFile, | ||
setViewport, | ||
executeServerCommand, | ||
} from '@web/test-runner-commands'; | ||
import { waitFor, delay } from '../../helpers/waitfor.js'; | ||
|
||
const screenshotFolder = 'test/integration/accordian/screenshots'; | ||
|
||
describe('accordian-mobile', function () { | ||
const suiteName = this.title; | ||
let testName; | ||
let screenshotPath; | ||
|
||
before(async () => { | ||
document.head.innerHTML = await readFile({ path: '../mocks/head.html' }); | ||
document.body.innerHTML = await readFile({ path: './mocks/body.html' }); | ||
await setViewport({ width: 600, height: 1024 }); | ||
await import('../../../acrobat/scripts/scripts.js'); | ||
await waitFor(() => document.querySelector('.accordion-container'), 5000, 1000); | ||
}); | ||
|
||
beforeEach(function () { | ||
testName = this.currentTest.title; | ||
screenshotPath = `${screenshotFolder}/${suiteName}/$browser/${testName}.png`; | ||
}); | ||
|
||
it('collapsed', async () => { | ||
await delay(1000); | ||
await executeServerCommand('diff-screenshot', { path: screenshotPath }); | ||
}); | ||
|
||
it('expanded', async () => { | ||
document.querySelectorAll('.accordion-trigger')[0].click(); | ||
await delay(1000); | ||
await executeServerCommand('diff-screenshot', { path: screenshotPath }); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<main> | ||
<div> | ||
<div class="accordion"> | ||
<div> | ||
<div><strong>How do I convert a Word file to PDF without losing the formatting?</strong></div> | ||
</div> | ||
<div> | ||
<div>As the inventor of the PDF file format, Adobe makes sure our online Word to PDF conversion tool preserves your document formatting. When you convert DOC and DOCX files with the online tool, your fonts, images, and alignment will look as expected on Mac or Windows. You can also try <a href="https://www.adobe.com/acrobat/free-trial-download.html">Adobe Acrobat Pro</a> for free for seven days to create PDFs, convert PDF files back to Word, convert to Excel or PowerPoint, convert HTML to PDF, edit PDFs, <a href="/acrobat/online/merge-pdf">merge PDFs</a>, edits scans with OCR, split PDFs, <a href="/acrobat/online/compress-pdf">reduce file size</a>, and more. The seven-day free trial lets you convert PNGs, GIFs, and other image formats too. You can use Acrobat on any operating system, including Mac, Windows, iOS, Android, or Linux.</div> | ||
</div> | ||
<div> | ||
<div><strong>What types of document file formats can I convert to PDF?</strong></div> | ||
</div> | ||
<div> | ||
<div>The Acrobat Word to PDF online tool lets you convert DOCX, DOC, RTF, and TXT files to PDF using a web browser on any operating system. Just drag and drop a file to convert it and save as PDF.</div> | ||
</div> | ||
<div> | ||
<div><strong>What’s the difference between the DOC and DOCX file format?</strong></div> | ||
</div> | ||
<div> | ||
<div>The DOC and DOCX file formats are file extensions used by Microsoft Word. The DOC file format is an older format used by Microsoft Word 2003 and earlier. With the release of Microsoft Word 2007, Microsoft introduced the new DOCX file format based on the Open XML (Extensible Markup Language) standard. If you have Microsoft Word 2003 or earlier, you’ll need to download the free Microsoft Office Compatibility Pack to open, edit, and save DOCX files.</div> | ||
</div> | ||
<div> | ||
<div><strong>Are my documents and personal data safe?</strong></div> | ||
</div> | ||
<div> | ||
<div>Privacy is paramount to Adobe. If you don’t sign in or save your file, it will be deleted from our servers. To learn more about the privacy practices of Adobe applications and websites, please visit our <a href="https://www.adobe.com/privacy.html">Privacy Center</a>.</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> |
Binary file added
BIN
+31.6 KB
test/integration/accordian/screenshots/accordian-desktop/Chromium/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.9 KB
test/integration/accordian/screenshots/accordian-desktop/Chromium/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.8 KB
test/integration/accordian/screenshots/accordian-desktop/Firefox/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.4 KB
test/integration/accordian/screenshots/accordian-desktop/Firefox/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.1 KB
test/integration/accordian/screenshots/accordian-desktop/Webkit/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+80 KB
test/integration/accordian/screenshots/accordian-desktop/Webkit/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.1 KB
test/integration/accordian/screenshots/accordian-mobile/Chromium/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+96.9 KB
test/integration/accordian/screenshots/accordian-mobile/Chromium/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
test/integration/accordian/screenshots/accordian-mobile/Firefox/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.3 KB
test/integration/accordian/screenshots/accordian-mobile/Firefox/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35.1 KB
test/integration/accordian/screenshots/accordian-mobile/Webkit/collapsed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.4 KB
test/integration/accordian/screenshots/accordian-mobile/Webkit/expanded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* eslint-disable func-names */ | ||
import { | ||
readFile, | ||
setViewport, | ||
executeServerCommand, | ||
} from '@web/test-runner-commands'; | ||
import { waitForElement, waitFor, delay } from '../../helpers/waitfor.js'; | ||
|
||
const screenshotFolder = 'test/integration/merch-card/screenshots'; | ||
|
||
describe('merch_cards_desktop', function () { | ||
const suiteName = this.title; | ||
let testName; | ||
let screenshotPath; | ||
|
||
before(async () => { | ||
await executeServerCommand('page-route', { url: 'https://wcs.adobe.com/**/*' }); | ||
|
||
document.head.innerHTML = await readFile({ path: '../mocks/head.html' }); | ||
document.body.innerHTML = await readFile({ path: './mocks/body.html' }); | ||
await setViewport({ width: 1200, height: 600 }); | ||
await import('../../../acrobat/scripts/scripts.js'); | ||
await waitFor(() => document.querySelector('.placeholder-resolved'), 10000, 1000); | ||
const price = await waitForElement('.placeholder-resolved'); | ||
console.log(price.textContent); | ||
await delay(1000); | ||
}); | ||
|
||
after(async () => { | ||
await executeServerCommand('page-unroute', { url: 'https://wcs.adobe.com/**/*' }); | ||
}); | ||
|
||
beforeEach(function () { | ||
testName = this.currentTest.title; | ||
screenshotPath = `${screenshotFolder}/${suiteName}/$browser/${testName}.png`; | ||
}); | ||
|
||
it('price', async () => { | ||
await executeServerCommand('diff-screenshot', { path: screenshotPath }); | ||
}); | ||
}); |
Oops, something went wrong.