Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.
This repository was archived by the owner on May 17, 2023. It is now read-only.

Win32 Spin Control: Base Operations #13

@mkolisnyk

Description

@mkolisnyk

Basic operations on spin control include:

  • Enter number as simple text
  • Increment/Decrement value
  • Wrap around check
  • Invalid text input handling
  • Range change

Scenario: Enter Text directly
Given the test GUI application is started
When I select the "Spinners" tab
And set the "8" position for the "Buddy Control" spin
Then I should see the "8" value in the "Buddy Control" spin

Scenario: Increment/Decrement value
Given the test GUI application is started
When I select the "Spinners" tab
And set the "8" position for the "Buddy Control" spin
And increment "Buddy Control" field value
Then I should see the "9" value in the "Buddy Control" spin
When I decrement "Buddy Control" field value
Then I should see the "8" value in the "Buddy Control" spin

Scenario: Wrap around on check
Given the test GUI application is started
When I select the "Spinners" tab
And enter the "0" text into the "Lower Spin Range" field
And enter the "100" text into the "Upper Spin Range" field
And click on the "Set" button
And check the "Wrap" field
And set the "0" position for the "Buddy Control" spin
And decrement "Buddy Control" field value
Then I should see the "100" value in the "Buddy Control" spin
When I increment "Buddy Control" field value
Then I should see the "0" value in the "Buddy Control" spin

Scenario: Wrap around off check
Given the test GUI application is started
When I select the "Spinners" tab
And enter the "0" text into the "Lower Spin Range" field
And enter the "100" text into the "Upper Spin Range" field
And click on the "Set" button
And uncheck the "Wrap" field
And set the "0" position for the "Buddy Control" spin
And decrement "Buddy Control" field value
Then I should see the "0" value in the "Buddy Control" spin
When I increment "Buddy Control" field value
Then I should see the "1" value in the "Buddy Control" spin
When I set the "100" position for the "Buddy Control" spin
And increment "Buddy Control" field value
Then I should see the "100" text in the "Buddy Control" field
When I decrement "Buddy Control" field value
Then I should see the "99" text in the "Buddy Control" field

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions