-
Notifications
You must be signed in to change notification settings - Fork 13
Added VR test case to declarative charts #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -21,3 +21,7 @@ | |
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| node_modules/ | ||
| # Playwright | ||
| /test-results/ | ||
| /playwright-report/ | ||
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,22 @@ | ||
| { | ||
| "name": "fluentui-charting-contrib", | ||
| "version": "1.0.0", | ||
| "description": "> This repo has been populated by an initial template to help get you started. Please\r > make sure to update the content to build a great experience for community-building.", | ||
| "main": "index.js", | ||
| "directories": { | ||
| "doc": "docs" | ||
| }, | ||
| "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" | ||
| } |
This file contains hidden or 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({ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move all the files inside apps/plotly_examples/test |
||
| testDir: './tests', | ||
| /* 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, | ||
| // }, | ||
| }); | ||
This file contains hidden or 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('has 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 != 18 && i != 27 && i != lisItemsCount - 1) { | ||
| 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
+15 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+12.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+33.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+25.6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+18.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+14.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+37.6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+13.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+19.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+27.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+21.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+16.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+16.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.4 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+18.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+12.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+18.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+28.6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+17.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-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
+16.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-32-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-33-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-34-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-35-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+6.46 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-36-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-37-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-38-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+7.36 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-39-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-4-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-40-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-41-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-42-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-43-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-44-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-45-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+37.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-46-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-47-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-48-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-49-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-5-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-50-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-51-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-52-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-53-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-54-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-55-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+38.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-56-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-57-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-58-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+24.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-59-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-6-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-60-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.6 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-61-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+21.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-62-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-63-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.4 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-64-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+37.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-65-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-66-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+15.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-67-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-68-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+37.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-69-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.3 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-7-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+26.2 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-70-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-71-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-72-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+13 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-73-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+17.9 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-74-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+8.74 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-75-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-76-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16.8 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-77-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+16 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-78-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+14.1 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-79-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+28.7 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-8-chromium-win32.png
Oops, something went wrong.
Binary file added
BIN
+24 KB
tests/DeclarativeChart.spec.ts-snapshots/has-chart-9-chromium-win32.png
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the command to run these tests