-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
126 lines (112 loc) · 4.08 KB
/
popup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UI Tests Coverage</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 10px;
}
.container {
width: 450px; /* Set width to 20% */
background-color: #f2f2f2;
border-radius: 10px;
font-size: 14px;
}
button {
padding: 8px 16px; /* Padding for buttons */
font-size: 14px; /* Font size for buttons */
cursor: pointer;
border: none;
border-radius: 5px;
color: white;
height: 35px; /* Set height for buttons */
}
#jsonFileInput {
display: none;
font-weight: bold;
color: dodgerblue;
padding: 0.5em;
border: thin solid grey;
border-radius: 3px;
}
#fileInputLabel {
display: inline-block;
padding: 8px 12px;
background-color: #f2f2f2;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
}
#jsonFileInput:focus + #fileInputLabel {
outline: 2px solid blue; /* Example: Add focus style */
}
#resetJsonFileInput {
background-color: dimgrey; /* Red color for Reset button */
margin-left: 5px; /* Add margin between the buttons */
}
#resetJsonFileInput:hover {
background-color: white; /* White background on hover */
color: dimgrey;
text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Text shadow */
box-shadow: 0px 0px 6px 2px dimgrey; /* Box shadow */
}
#buttonsContainer {
margin-top: 10px; /* Add margin above the buttons */
}
#checkButton,
#showAllButton,
#coveredPagesButton {
display: inline-block; /* Display buttons in one line */
padding: 8px 16px; /* Padding for buttons */
cursor: pointer;
border: none;
border-radius: 5px;
color: white;
}
#checkButton {
background-color: #00cc00; /* Green color for Check button */
}
#checkButton:hover {
background-color: white; /* White background on hover */
color: #00cc00; /* Green text color on hover */
text-shadow: 0px 2px 4px rgba(57, 242, 29, 0.4); /* Text shadow */
box-shadow: 0px 0px 6px 2px rgba(57, 242, 29, 0.4); /* Box shadow */
}
#showAllButton,
#coveredPagesButton {
background-color: #1da1f2; /* Blue color for Show All button */
margin-left: 5px; /* Add margin between the buttons */
}
#showAllButton:hover,
#coveredPagesButton:hover {
background-color: white; /* White background on hover */
color: #1da1f2; /* Blue text color on hover */
text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Text shadow */
box-shadow: 0px 0px 6px 2px rgba(29, 161, 242, 0.4); /* Box shadow */
}
</style>
</head>
<body>
<div class="container">
<h2>UI Tests Coverage</h2>
<div id="buttonsContainer">
<p>Select a JSON file containing the list of XPath locators:</p>
<label for="jsonFileInput" id="fileInputLabel">No File Selected</label>
<input type="file" id="jsonFileInput" accept=".json" style="display: none;">
<button id="resetJsonFileInput">Reset Selected File</button>
<br><br>
<button id="checkButton">Check</button>
<button id="showAllButton">Show All</button> <!-- Added Show All button -->
<button id="coveredPagesButton">Covered Pages</button> <!-- Added Covered Pages button -->
</div>
</div>
<script src="popup.js"></script>
<script src="covered_pages.js"></script>
<script src="storage_manager.js"></script>
<script src="indexed_db_library.js"></script>
</body>
</html>