mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-08 20:56:39 +00:00
* test(pytest) The driver methods added. Wrappers for UI elements added. #67 * test(pytest) Squishserver added #68 * test(pytest) Attach/Detach AUT methods added #69 * test(pytest) Main window handler added #70 * test(pytest) Save screenshot on fail added #71 * test(pytest) Wait for squishserver added #71 * test(pytest) Setup Windows #71 * Generate new keys (#11804) * test(pytest) Image comparison methods added #76 * test(pytest) Tesseract methods added #77 * test(pytest) The Methods to search color on image added #80 * test(onboarding) Test on generation new keys added #75 * test(pytest) Handlers for OS Native File dialog added #81 * test(Onboarding) Test on Profile image added #83 * Allure and TestRail integration (#11806) * test(Allure) Steps descriptions added #72 * test(TestRail) Integration #72
49 lines
753 B
Python
49 lines
753 B
Python
from enum import Enum
|
|
|
|
|
|
class Color(Enum):
|
|
WHITE = 1
|
|
BLACK = 2
|
|
RED = 3
|
|
BLUE = 4
|
|
GREEN = 5
|
|
YELLOW = 6
|
|
ORANGE = 7
|
|
|
|
|
|
boundaries = {
|
|
Color.WHITE: [
|
|
[0, 0, 0],
|
|
[0, 0, 255]
|
|
],
|
|
Color.BLACK: [
|
|
[0, 0, 0],
|
|
[179, 100, 130]
|
|
],
|
|
Color.RED: [
|
|
[
|
|
[0, 100, 20],
|
|
[10, 255, 255]
|
|
],
|
|
[
|
|
[160, 100, 20],
|
|
[179, 255, 255]
|
|
]
|
|
],
|
|
Color.BLUE: [
|
|
[110, 50, 50],
|
|
[130, 255, 255]
|
|
],
|
|
Color.GREEN: [
|
|
[36, 25, 25],
|
|
[70, 255, 255]
|
|
],
|
|
Color.YELLOW: [
|
|
[20, 100, 0],
|
|
[45, 255, 255]
|
|
],
|
|
Color.ORANGE: [
|
|
[10, 100, 20],
|
|
[25, 255, 255]
|
|
]
|
|
} |