Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
68f871c
trying
v-reja Mar 15, 2017
e837b2b
Merge branch 'master' of https://github.com/OfficeDev/office-ui-fabri…
gitjain Apr 14, 2017
820d93b
Delete try.ts
gitjain Apr 14, 2017
70ca0b0
updates
gitjain Apr 14, 2017
815332a
Merge branch 'master' of https://github.com/gitjain/office-ui-fabric-…
gitjain Apr 17, 2017
7524e07
RegressionTests: Toggle Tests
gitjain Apr 17, 2017
42807e3
REgression Test: test class
gitjain Apr 18, 2017
d793d1a
Regression Tests: Helper class
gitjain Apr 18, 2017
c3db083
RegressionTests: Class updates
gitjain Apr 18, 2017
7593f8f
Regression Test: Helper Class updates
gitjain Apr 19, 2017
078cc84
Regression Tests: helper class updates
gitjain Apr 19, 2017
e60be8c
Regression Tests: Test Helper class updates
gitjain Apr 20, 2017
ab42091
Regression Tests: Test Helper class updates
gitjain Apr 20, 2017
e0821b9
Regression Tests: Event function
gitjain Apr 20, 2017
328db25
updates
gitjain Apr 20, 2017
9b99326
Regression Tests: Test helper functions
gitjain Apr 21, 2017
ac92597
Regression Tests: Rush change
gitjain Apr 21, 2017
2c400ca
Regression Tests: merge conflict updates
gitjain Apr 21, 2017
0baa3a4
Regression Test: Helper function Updates
gitjain Apr 21, 2017
7fc29f7
Regression Tests: linting error updates
gitjain Apr 21, 2017
7037ad6
Regression Tests: Test helper class
v-reja Apr 22, 2017
5d0dea8
Regression Tests: Test helper functions
v-reja Apr 24, 2017
5b4ffb1
Regression Test: Test helper updates
v-reja Apr 24, 2017
57fa7eb
Regression Test: Test helper updates
v-reja Apr 24, 2017
027298f
Regression test: Test helper updates
v-reja Apr 24, 2017
2953f0e
Regression Tes: test helper updates
v-reja Apr 24, 2017
d6f1873
Merge branch 'master' into testHelperEvents
micahgodbolt Apr 26, 2017
3a740f7
Regression Test: package.json updates
v-reja Apr 26, 2017
bed54a8
Merge branch 'testHelperEvents' of https://github.com/gitjain/office-…
v-reja Apr 26, 2017
1db75b7
Regression tests: package.json updates
v-reja Apr 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions common/changes/regressionTestHelperCLass_2017-04-20-20-27.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Regression Tests: Test Helper class updates",
"type": "patch"
}
],
"email": "r33najain@gmail.com"
}
86 changes: 43 additions & 43 deletions common/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/office-ui-fabric-react/src/VisualTestState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ export interface IVisualTestState {

export const VisualTestState: IVisualTestState = {
componentPath: [
'./Breadcrumb/BreadcrumbPage.visualtest',
'./Button/CommandButtonPage.visualtest',
'./Button/CompoundButtonPage.visualtest',
'./Button/ContextualButtonPage.visualtest',
'./Button/DefaultButtonPage.visualtest',
'./Button/PrimaryButtonPage.visualtest',
'./Checkbox/CheckboxPage.visualtest',
'./ChoiceGroup/ChoiceGroupPage.visualtest',
'./ContextualMenu/ContextualMenuPage.visualtest'

'./ContextualMenu/ContextualMenuPage.visualtest',
'./DocumentCard/DocumentCardPage.visualtest'
]
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Casper, IPhantomCSS } from '../../visualtest/PhantomCssInterface';
import { baseUrl } from '../../common/VisualTest';
import { defaultScreenshot, mouseMoveScreenshot, mouseDownScreenshot, mouseClickScreenshot, testRunner } from '../../visualtest/RunVisualTest';
import { IRunVisualTest } from '../../visualtest/IRunVisualTest';

declare var phantomcss: IPhantomCSS;
declare var casper: Casper;

let componentIds: IRunVisualTest[] = [];
let commands: ((params: IRunVisualTest) => void)[] = [];

componentIds.push({
selector: '.' + 'Breadcrumb',
fileName: 'breadcrumb',
commands: [defaultScreenshot]
});
componentIds.push({
selector: '.' + 'ms-Breadcrumb-listItem',
fileName: 'breadcrumb',
commands: [mouseMoveScreenshot, mouseDownScreenshot, mouseClickScreenshot]
});

casper.
start(baseUrl + 'breadcrumb').
then(() => {
testRunner(componentIds);
});

casper.run(() => { casper.test.done(); });
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Breadcrumb } from './index';

/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */
export default class BreadcrumbVPage extends React.Component<any, any> {
public render() {
return <div>
<Breadcrumb
className='Breadcrumb'
items={ [
{ text: 'Files', 'key': 'Files' },
{ text: 'This is folder 1', 'key': 'f1' },
{ text: 'This is folder 2', 'key': 'f2' },
{ text: 'This is folder 3', 'key': 'f3' },
{ text: 'This is folder 4', 'key': 'f4' },
{ text: 'This is folder 5', 'key': 'f5' },
] }
maxDisplayedItems={ 3 } />
</div>;
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
import { Casper, IPhantomCSS } from '../../visualtest/PhantomCssInterface';
import { baseUrl } from '../../common/VisualTest';
import {
defaultScreenshot, mouseMoveScreenshot,
mouseDownScreenshot, mouseClickScreenshot, testRunner
} from '../../visualtest/RunVisualTest';
import { IRunVisualTest } from '../../visualtest/IRunVisualTest';

declare var phantomcss: IPhantomCSS;
declare var casper: Casper;
/* tslint:disable:no-function-expression */

let componentIds: IRunVisualTest[] = [];
let commands: ((params: IRunVisualTest) => void)[] = [];

commands.push(defaultScreenshot);
commands.push(mouseMoveScreenshot);
commands.push(mouseDownScreenshot);
commands.push(mouseClickScreenshot);

componentIds.push({
selector: '#' + 'CommandButton',
fileName: 'commandButton',
commands: commands
});

componentIds.push({
selector: '#' + 'CommandButtonDisabled',
fileName: 'commandButtonDisabled',
commands: commands
});

casper.
start(baseUrl + 'commandButton').
then(function () {
phantomcss.screenshot('#CommandButton', 'CommandButton_not_pressed');
}).then(function () {
this.mouse.move('#CommandButton');
phantomcss.screenshot('#CommandButton', 'CommandButton_hovered');
}).then(function () {
this.mouse.down('#CommandButton');
phantomcss.screenshot('#CommandButton', 'CommandButton_pressed');
}).then(function () {
phantomcss.screenshot('#CommandButtonDisabled', 'CommandButtonDisabled_not_pressed');
}).then(function () {
this.mouse.move('#CommandButtonDisabled');
phantomcss.screenshot('#CommandButtonDisabled', 'CommandButtonDisabled_hovered');
}).then(function () {
this.mouse.down('#CommandButtonDisabled');
phantomcss.screenshot('#CommandButtonDisabled', 'CommandButtonDisabled_pressed');
then(() => {
testRunner(componentIds);
});
casper.run(function () { casper.test.done(); });
/* tslint:enable:no-function-expression */

casper.run(() => { casper.test.done(); });
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { CommandButton } from './index';
/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */

export default class CommandButtonVPage extends React.Component<any, any> {
public render() {
return <div>
Expand Down
Loading