This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
57 changed files
with
1,861 additions
and
98 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+42.1 KB
...sts/screenshots-baseline/select-Field-Multiple-Picker-chrome-1000x800-dpr-1.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
+7.54 KB
...s/screenshots-baseline/select-Field-Multiple-Selected-chrome-1000x800-dpr-1.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
+3.13 KB
...sual-tests/screenshots-baseline/select-Field-Multiple-chrome-1000x800-dpr-1.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
+38.2 KB
...tests/screenshots-baseline/select-Field-Single-Picker-chrome-1000x800-dpr-1.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
+2.19 KB
...sts/screenshots-baseline/select-Field-Single-Selected-chrome-1000x800-dpr-1.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
+2.87 KB
...visual-tests/screenshots-baseline/select-Field-Single-chrome-1000x800-dpr-1.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 @@ | ||
<select-field-visual></select-field-visual> |
24 changes: 24 additions & 0 deletions
24
skyux-spa-visual-tests/src/app/select-field/select-field-visual.component.html
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,24 @@ | ||
|
||
<div id="screenshot-select-field-single-mode"> | ||
<sky-select-field | ||
selectMode="single" | ||
name="single" | ||
[ngModel]="model.single" | ||
[data]="data"> | ||
</sky-select-field> | ||
</div> | ||
<div id="screenshot-select-field-multiple-mode"> | ||
<sky-select-field | ||
selectMode="multiple" | ||
name="multiple" | ||
[ngModel]="model.multiple" | ||
[data]="data"> | ||
</sky-select-field> | ||
</div> | ||
|
||
<button | ||
type="button" | ||
id="select-field-populate-selected-btn" | ||
(click)="populateSelected()"> | ||
Populate selected | ||
</button> |
33 changes: 33 additions & 0 deletions
33
skyux-spa-visual-tests/src/app/select-field/select-field-visual.component.ts
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,33 @@ | ||
import { | ||
Component | ||
} from '@angular/core'; | ||
|
||
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | ||
|
||
@Component({ | ||
selector: 'select-field-visual', | ||
templateUrl: './select-field-visual.component.html' | ||
}) | ||
export class SelectFieldVisualComponent { | ||
public staticData = [ | ||
{ id: '1', category: 'Pome', label: 'Apple', description: 'Anne eats apples' }, | ||
{ id: '2', category: 'Berry', label: 'Banana', description: 'Ben eats bananas' }, | ||
{ id: '3', category: 'Pome', label: 'Pear', description: 'Patty eats pears' }, | ||
{ id: '4', category: 'Berry', label: 'Grape', description: 'George eats grapes' }, | ||
{ id: '5', category: 'Berry', label: 'Banana', description: 'Becky eats bananas' }, | ||
{ id: '6', category: 'Citrus', label: 'Lemon', description: 'Larry eats lemons' }, | ||
{ id: '7', category: 'Aggregate fruit', label: 'Strawberry', description: 'Sally eats strawberries' } | ||
]; | ||
|
||
public data = new BehaviorSubject<any[]>(this.staticData); | ||
public model: any = {}; | ||
|
||
public populateSelected() { | ||
this.model.multiple = [ | ||
this.staticData[1], | ||
this.staticData[2], | ||
this.staticData[3] | ||
]; | ||
this.model.single = this.staticData[3]; | ||
} | ||
} |
84 changes: 84 additions & 0 deletions
84
skyux-spa-visual-tests/src/app/select-field/select-field.visual-spec.ts
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,84 @@ | ||
import { SkyVisualTest } from '../../../config/utils/visual-test-commands'; | ||
import { element, by } from 'protractor'; | ||
|
||
describe('Select field', () => { | ||
it('should match previous multiple mode screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-multiple', | ||
selector: '#screenshot-select-field-multiple-mode' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should match previous single mode screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-single', | ||
selector: '#screenshot-select-field-single-mode' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should match previous multiple mode selected screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
element(by.css('#select-field-populate-selected-btn')).click(); | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-multiple-selected', | ||
selector: '#screenshot-select-field-multiple-mode' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should match previous single mode selected screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
element(by.css('#select-field-populate-selected-btn')).click(); | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-single-selected', | ||
selector: '#screenshot-select-field-single-mode' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should match previous single mode picker screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
element(by.css('#screenshot-select-field-single-mode .sky-input-group.sky-btn')).click(); | ||
SkyVisualTest.moveCursorOffScreen(); | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-single-picker', | ||
selector: '.sky-modal', | ||
checkAccessibility: false // changing to false because of a modal axe error | ||
}); | ||
}) | ||
.then(() => { | ||
element(by.css('.sky-modal-btn-close')).click(); | ||
}); | ||
}); | ||
|
||
it('should match previous multiple mode picker screenshot', () => { | ||
return SkyVisualTest | ||
.setupTest('select-field') | ||
.then(() => { | ||
element(by.css('#screenshot-select-field-multiple-mode .sky-btn.sky-btn-default')).click(); | ||
SkyVisualTest.moveCursorOffScreen(); | ||
return SkyVisualTest.compareScreenshot({ | ||
screenshotName: 'select-field-multiple-picker', | ||
selector: '.sky-modal', | ||
checkAccessibility: false // changing to false because of a modal axe error | ||
}); | ||
}) | ||
.then(() => { | ||
element(by.css('.sky-modal-btn-close')).click(); | ||
}); | ||
}); | ||
}); |
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
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
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
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('defaultModal')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('defaultModal')"> | ||
Open modal | ||
</button> | ||
|
||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('smallModal')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('smallModal')"> | ||
Open small modal | ||
</button> | ||
|
||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('largeModal')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('largeModal')"> | ||
Open large modal | ||
</button> | ||
|
||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('fullScreenModal')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('fullScreenModal')"> | ||
Open full-screen modal | ||
</button> | ||
|
||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('tiledModal')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('tiledModal')"> | ||
Open tiled modal | ||
</button> | ||
|
||
<button type="button" class="sky-btn sky-btn-primary" (click)="openModal('withHelpHeader')"> | ||
<button type="button" class="sky-btn sky-btn-default" (click)="openModal('withHelpHeader')"> | ||
Open modal with help header | ||
</button> |
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 @@ | ||
export * from './select-field-demo.component'; |
Oops, something went wrong.