@@ -6,7 +6,12 @@ import { IamPage } from "../pages/iamPage.js";
6
6
7
7
test . describe ( "Service Account for API access" , ( ) => {
8
8
let loginPage , iamPage ;
9
- const emailName = `email${ Date . now ( ) } @gmail.com` ;
9
+
10
+ const timestamp = Date . now ( ) ;
11
+ const randomSuffix = Math . floor ( Math . random ( ) * 1000 ) ;
12
+ const emailName = `email${ timestamp } ${ randomSuffix } @gmail.com` ;
13
+
14
+
10
15
11
16
test . beforeEach ( async ( { page } ) => {
12
17
loginPage = new LoginPage ( page ) ;
@@ -49,14 +54,14 @@ test.describe("Service Account for API access", () => {
49
54
await iamPage . verifySuccessMessage ( 'User already exists' ) ;
50
55
51
56
} ) ;
52
- //this is actually failing , so skipping it
53
- test . skip ( "Service Account not created if Cancel clicked" , async ( { page } ) => {
57
+
58
+ test ( "Service Account not created if Cancel clicked" , async ( { page } ) => {
54
59
55
60
await iamPage . gotoIamPage ( ) ;
56
61
await iamPage . iamPageServiceAccountsTab ( ) ;
57
62
await iamPage . iamPageAddServiceAccount ( ) ;
58
63
await iamPage . enterEmailServiceAccount ( emailName ) ;
59
- await iamPage . enterFirstLastNameServiceAccount ( ) ;
64
+ await iamPage . enterDescriptionSA ( ) ;
60
65
await iamPage . clickCancelServiceAccount ( ) ;
61
66
62
67
} ) ;
@@ -73,8 +78,8 @@ test.describe("Service Account for API access", () => {
73
78
74
79
75
80
} ) ;
76
- //this is flaky , so skipping it
77
- test . skip ( "Service Account Download Token" , async ( { page } ) => {
81
+
82
+ test ( "Service Account Download Token" , async ( { page } ) => {
78
83
79
84
await iamPage . gotoIamPage ( ) ;
80
85
await iamPage . iamPageServiceAccountsTab ( ) ;
@@ -86,8 +91,8 @@ test.describe("Service Account for API access", () => {
86
91
87
92
88
93
} ) ;
89
- //this is flaky , so skipping it
90
- test . skip ( "Service Account Token Pop Up Closed" , async ( { page } ) => {
94
+
95
+ test ( "Service Account Token Pop Up Closed" , async ( { page } ) => {
91
96
92
97
await iamPage . gotoIamPage ( ) ;
93
98
await iamPage . iamPageServiceAccountsTab ( ) ;
@@ -99,8 +104,8 @@ test.describe("Service Account for API access", () => {
99
104
100
105
} ) ;
101
106
102
- //this is flaky , so skipping it
103
- test . skip ( "Service Account Created and deleted" , async ( { page } ) => {
107
+
108
+ test ( "Service Account Created and deleted" , async ( { page } ) => {
104
109
105
110
await iamPage . gotoIamPage ( ) ;
106
111
await iamPage . iamPageServiceAccountsTab ( ) ;
@@ -131,8 +136,8 @@ test.describe("Service Account for API access", () => {
131
136
132
137
} ) ;
133
138
134
- //this is actually failing , so skipping it
135
- test . skip ( "Service Account Created and updated details" , async ( { page } ) => {
139
+
140
+ test ( "Service Account Created and updated details" , async ( { page } ) => {
136
141
137
142
await iamPage . gotoIamPage ( ) ;
138
143
await iamPage . iamPageServiceAccountsTab ( ) ;
@@ -143,7 +148,7 @@ test.describe("Service Account for API access", () => {
143
148
await iamPage . clickServiceAccountPopUpClosed ( ) ;
144
149
await iamPage . reloadServiceAccountPage ( ) ;
145
150
await iamPage . updatedServiceAccount ( emailName ) ;
146
- await iamPage . enterFirstLastNameServiceAccount ( ) ;
151
+ await iamPage . enterDescriptionSA ( ) ;
147
152
await iamPage . clickSaveServiceAccount ( ) ;
148
153
await iamPage . verifySuccessMessage ( 'Service Account updated successfully.' ) ;
149
154
0 commit comments