Skip to content

Commit

Permalink
fix test which broke in v3.3.0 because of hex value formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephennancekivell committed Aug 5, 2017
1 parent 2337777 commit 1ae9912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/e2e/restrict-to-format.protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Options: ', () => {
});

it('Should allow any format by default', () => {
Page.format_field.$('[label="HEX"]').click();
Page.format_field.$('[label="HEXString"]').click();
Page.input_field.clear().sendKeys('red');
Page.blurColorPicker();
Page.openColorPicker();
Expand All @@ -18,7 +18,7 @@ describe('Options: ', () => {
it('Should only allow selected format', () => {
Page.restrict_to_format_field.$('[label="Yes"]').click();

Page.format_field.$('[label="HEX"]').click();
Page.format_field.$('[label="HEXString"]').click();
Page.input_field.clear().sendKeys('green');
Page.blurColorPicker();
Page.openColorPicker();
Expand All @@ -29,7 +29,7 @@ describe('Options: ', () => {
it('Should allow any format again', () => {
Page.restrict_to_format_field.$('[label="No"]').click();

Page.format_field.$('[label="HEX"]').click();
Page.format_field.$('[label="HEXString"]').click();
Page.input_field.clear().sendKeys('blue');
Page.blurColorPicker();
Page.openColorPicker();
Expand Down
2 changes: 1 addition & 1 deletion test/test-app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular
.module('app', ['color.picker'])
.controller('AppCtrl', function($scope) {
$scope.formatOptions = [{label: 'HSL', value: 'hsl'}, {label: 'HSV', value: 'hsv'}, {label: 'RGB', value: 'rgb'}, {label: 'HEX', value: 'hex'}, {label: 'HEX8', value: 'hex8'}, {label: 'Raw', value: 'raw'}];
$scope.formatOptions = [{label: 'HSL', value: 'hsl'}, {label: 'HSV', value: 'hsv'}, {label: 'RGB', value: 'rgb'}, {label: 'HEX', value: 'hex'}, {label: 'HEXString', value: 'hexstring'}, {label: 'HEX8', value: 'hex8'}, {label: 'Raw', value: 'raw'}];
$scope.boolOptions = [{label: 'Yes', value: true}, {label: 'No', value: false}];
$scope.swatchPosOptions = [{label: 'Left', value: 'left'}, {label: 'Right', value: 'right'}];
$scope.posOptions = [{label: 'Bottom Left', value: 'bottom left'}, {label: 'Top Left', value: 'top left'}, {label: 'Bottom Right', value: 'bottom right'}, {label: 'Top Right', value: 'top right'}];
Expand Down

0 comments on commit 1ae9912

Please sign in to comment.