-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added VR tests to declarative chart (#104)
* added VR tests * updated snapshots * updated snapshots * removed unwanted chnages * updated snashots
- Loading branch information
1 parent
0946368
commit 7f9bf9c
Showing
89 changed files
with
2,365 additions
and
2,102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"status": "failed", | ||
"failedTests": [] | ||
} |
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,5 @@ | ||
node_modules/ | ||
/test-results/ | ||
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
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,23 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('Declarative Chart', async ({ page }) => { | ||
await page.goto('http://localhost:3000/'); | ||
|
||
await expect(page.getByText('Data Visualization')).toBeVisible(); | ||
const combobox = page.getByRole('combobox'); | ||
await expect(combobox).toHaveCount(1); | ||
await combobox.click(); | ||
const listbox = page.locator('.ms-Callout-main'); | ||
await expect(listbox).toHaveCount(1); | ||
const listitems = listbox.getByRole('option'); | ||
const lisItemsCount = await listitems.count(); | ||
for (let i = 0; i < lisItemsCount; i++) { | ||
if (i != 33) { | ||
await listitems.nth(i).scrollIntoViewIfNeeded(); | ||
await listitems.nth(i).click(); | ||
const chart = page.getByTestId('chart-container'); | ||
await expect(chart).toHaveScreenshot(); | ||
await combobox.click(); | ||
} | ||
} | ||
}); |
Binary file added
BIN
+16.2 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-1-chromium-win32.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
+26.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-10-chromium-win32.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
+13.1 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-11-chromium-win32.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
+13.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-12-chromium-win32.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
+13.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-13-chromium-win32.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
+11.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-14-chromium-win32.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
+13.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-15-chromium-win32.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
+53.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-16-chromium-win32.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
+23.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-17-chromium-win32.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
+11.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-18-chromium-win32.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
+23.8 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-19-chromium-win32.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
+14.7 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-2-chromium-win32.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
+13.6 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-20-chromium-win32.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
+13.6 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-21-chromium-win32.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
+14.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-22-chromium-win32.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
+13.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-23-chromium-win32.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
+64 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-24-chromium-win32.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
+12.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-25-chromium-win32.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
+12.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-26-chromium-win32.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
+13 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-27-chromium-win32.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
+25.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-28-chromium-win32.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
+11.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-29-chromium-win32.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
+16.9 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-3-chromium-win32.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
+12.1 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-30-chromium-win32.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
+16.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-31-chromium-win32.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
+13.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-32-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-33-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-34-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-35-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+19.1 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-36-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-37-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-38-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-39-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15.8 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-4-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+10.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-40-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-41-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+5.24 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-42-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+9.08 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-43-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+10.8 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-44-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+32.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-45-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-46-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-47-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15.8 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-48-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-49-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-5-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-50-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+38.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-51-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-52-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-53-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+24.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-54-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-55-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-56-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-57-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.6 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-58-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.3 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-59-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.7 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-6-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+62.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-60-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-61-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-62-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+24.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-63-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-64-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-65-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+20.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-66-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.6 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-67-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-68-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-69-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17.7 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-7-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+10.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-70-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.5 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-71-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+34.9 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-72-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-73-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-74-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-75-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.1 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-76-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.4 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-77-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+7.31 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-78-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-79-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.8 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-8-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
.../e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-80-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+11.8 KB
...s/e2e/DeclarativeChart.spec.ts-snapshots/Declarative-Chart-9-chromium-win32.png
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "tests", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"dependencies": { | ||
"playwright": "^1.49.1", | ||
"playwright-core": "^1.49.1", | ||
"undici-types": "^6.20.0" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.49.1", | ||
"@types/node": "^22.10.2" | ||
}, | ||
"scripts": {}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"description": "" | ||
} |
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,80 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
|
||
/** | ||
* Read environment variables from file. | ||
* https://github.com/motdotla/dotenv | ||
*/ | ||
// import dotenv from 'dotenv'; | ||
// import path from 'path'; | ||
// dotenv.config({ path: path.resolve(__dirname, '.env') }); | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
testDir: './e2e', | ||
/* Run tests in files in parallel */ | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
/* Retry on CI only */ | ||
retries: process.env.CI ? 2 : 0, | ||
/* Opt out of parallel tests on CI. */ | ||
workers: process.env.CI ? 1 : undefined, | ||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ | ||
reporter: 'html', | ||
timeout: 180000, | ||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
use: { | ||
/* Base URL to use in actions like `await page.goto('/')`. */ | ||
// baseURL: 'http://127.0.0.1:3000', | ||
|
||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
trace: 'on-first-retry', | ||
}, | ||
|
||
/* Configure projects for major browsers */ | ||
projects: [ | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
|
||
// { | ||
// name: 'firefox', | ||
// use: { ...devices['Desktop Firefox'] }, | ||
// }, | ||
|
||
// { | ||
// name: 'webkit', | ||
// use: { ...devices['Desktop Safari'] }, | ||
// }, | ||
|
||
/* Test against mobile viewports. */ | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
|
||
/* Test against branded browsers. */ | ||
// { | ||
// name: 'Microsoft Edge', | ||
// use: { ...devices['Desktop Edge'], channel: 'msedge' }, | ||
// }, | ||
// { | ||
// name: 'Google Chrome', | ||
// use: { ...devices['Desktop Chrome'], channel: 'chrome' }, | ||
// }, | ||
], | ||
|
||
/* Run your local dev server before starting the tests */ | ||
// webServer: { | ||
// command: 'npm run start', | ||
// url: 'http://127.0.0.1:3000', | ||
// reuseExistingServer: !process.env.CI, | ||
// }, | ||
}); |
Oops, something went wrong.