File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
main/java/com/omarelsheikh/todo/drivers
test/java/com/omarelsheikh/todo/api/testcases Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,9 @@ public WebDriver initializeDriver() {
41
41
driver .manage ().timeouts ().implicitlyWait (Duration .ofSeconds (5 ));
42
42
return driver ;
43
43
}
44
+
45
+ public WebDriver openUrl (String url ) {
46
+ driver .get ("https://todo.qacart.com" );
47
+ return driver ;
48
+ }
44
49
}
Original file line number Diff line number Diff line change 3
3
import com .omarelsheikh .todo .api .config .EndPoints ;
4
4
import com .omarelsheikh .todo .api .requests .RegisterApi ;
5
5
import com .omarelsheikh .todo .api .requests .TasksApi ;
6
- import com .omarelsheikh .todo .utils .ConfigUtil ;
7
6
import io .restassured .response .Response ;
8
7
import org .testng .Assert ;
9
8
import org .testng .annotations .Test ;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public void shouldFailToUpdateItemWhenUnauthorized() throws IOException {
115
115
// Prepare updated todo
116
116
Todo updatedTodo = new Todo ("Should fail" , true );
117
117
118
- // Attempt to update WITHOUT token
118
+ // Attempt to update WITHOUT a token
119
119
Response updateResponse = given ()
120
120
.baseUri (ConfigUtil .getInstance ().getBaseUrl ())
121
121
.header ("Content-Type" , "application/json" )
You can’t perform that action at this time.
0 commit comments