Skip to content

Commit

Permalink
updated testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushanmeetanshi committed Jan 29, 2025
1 parent b0bc4d7 commit 9441c47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/gitHubAPI.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test, expect } from "@playwright/test";
import { log } from "console";
import * as pw from "playwright";

const url = process.env.URL;
Expand All @@ -11,7 +10,7 @@ test.describe("GIT API Testing", () => {
test("Create Issue", async () => {
const requestContext = await pw.request.newContext();
const response = await requestContext.post(
`https://api.github.com/repos/${owner}/${repo}/issues`,
`${url}/repos/${owner}/${repo}/issues`,
{
data: {
title: "Found a bug12",
Expand All @@ -29,10 +28,10 @@ test.describe("GIT API Testing", () => {
test("Create repository", async () => {
const requestContext = await pw.request.newContext();
const response = await requestContext.post(
`https://api.github.com/user/repos`,
`${url}/user/repos`,
{
data: {
name: "private_repo___1",
name: "private_repo___2",
description: "This is your first repository",
homepage: "https://github.com",
private: true,
Expand Down

0 comments on commit 9441c47

Please sign in to comment.