test: fix e2e tests
This commit is contained in:
1 file changed
+19
-24
+19
-24
@@ -11,27 +11,22 @@ import { renderStatsCard } from "../../src/cards/stats-card.js";
|
|||||||
import { renderTopLanguages } from "../../src/cards/top-languages-card.js";
|
import { renderTopLanguages } from "../../src/cards/top-languages-card.js";
|
||||||
import { renderWakatimeCard } from "../../src/cards/wakatime-card.js";
|
import { renderWakatimeCard } from "../../src/cards/wakatime-card.js";
|
||||||
|
|
||||||
const REPO = "dummy-cra";
|
const REPO = "cra-test";
|
||||||
const USER = "grsdummy";
|
const USER = "catelinemnemosyne";
|
||||||
const STATS_DATA = {
|
const STATS_DATA = {
|
||||||
name: "grsdummy",
|
name: "Cateline Mnemosyne",
|
||||||
totalPRs: 2,
|
totalPRs: 1,
|
||||||
totalCommits: 2,
|
totalCommits: 7,
|
||||||
totalIssues: 1,
|
totalIssues: 1,
|
||||||
totalStars: 1,
|
totalStars: 1,
|
||||||
contributedTo: 2,
|
contributedTo: 1,
|
||||||
rank: {
|
rank: {
|
||||||
level: "A+",
|
level: "A+",
|
||||||
score: 50.900829325065935,
|
score: 50.893750297869225,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const LANGS_DATA = {
|
const LANGS_DATA = {
|
||||||
TypeScript: {
|
|
||||||
color: "#3178c6",
|
|
||||||
name: "TypeScript",
|
|
||||||
size: 2049,
|
|
||||||
},
|
|
||||||
HTML: {
|
HTML: {
|
||||||
color: "#e34c26",
|
color: "#e34c26",
|
||||||
name: "HTML",
|
name: "HTML",
|
||||||
@@ -42,19 +37,19 @@ const LANGS_DATA = {
|
|||||||
name: "CSS",
|
name: "CSS",
|
||||||
size: 930,
|
size: 930,
|
||||||
},
|
},
|
||||||
Python: {
|
JavaScript: {
|
||||||
color: "#3572A5",
|
color: "#3572A5",
|
||||||
name: "Python",
|
name: "JavaScript",
|
||||||
size: 671,
|
size: 1912,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const WAKATIME_DATA = {
|
const WAKATIME_DATA = {
|
||||||
human_readable_range: "last week",
|
human_readable_range: "last week",
|
||||||
is_already_updating: false,
|
is_already_updating: false,
|
||||||
is_coding_activity_visible: false,
|
is_coding_activity_visible: true,
|
||||||
is_including_today: false,
|
is_including_today: false,
|
||||||
is_other_usage_visible: false,
|
is_other_usage_visible: true,
|
||||||
is_stuck: false,
|
is_stuck: false,
|
||||||
is_up_to_date: false,
|
is_up_to_date: false,
|
||||||
is_up_to_date_pending_future: false,
|
is_up_to_date_pending_future: false,
|
||||||
@@ -62,24 +57,24 @@ const WAKATIME_DATA = {
|
|||||||
range: "last_7_days",
|
range: "last_7_days",
|
||||||
status: "pending_update",
|
status: "pending_update",
|
||||||
timeout: 15,
|
timeout: 15,
|
||||||
username: "grsdummy",
|
username: USER,
|
||||||
writes_only: false,
|
writes_only: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const REPOSITORY_DATA = {
|
const REPOSITORY_DATA = {
|
||||||
name: "dummy-cra",
|
name: "cra-test",
|
||||||
nameWithOwner: "grsdummy/dummy-cra",
|
nameWithOwner: `${USER}/cra-test`,
|
||||||
isPrivate: false,
|
isPrivate: false,
|
||||||
isArchived: false,
|
isArchived: false,
|
||||||
isTemplate: false,
|
isTemplate: false,
|
||||||
stargazers: {
|
stargazers: {
|
||||||
totalCount: 1,
|
totalCount: 1,
|
||||||
},
|
},
|
||||||
description: "Dummy create react app.",
|
description: "Simple cra test repo.",
|
||||||
primaryLanguage: {
|
primaryLanguage: {
|
||||||
color: "#3178c6",
|
color: "#f1e05a",
|
||||||
id: "MDg6TGFuZ3VhZ2UyODc=",
|
id: "MDg6TGFuZ3VhZ2UxNDA=",
|
||||||
name: "TypeScript",
|
name: "JavaScript",
|
||||||
},
|
},
|
||||||
forkCount: 0,
|
forkCount: 0,
|
||||||
starCount: 1,
|
starCount: 1,
|
||||||
|
|||||||
Reference in new issue
Block a user