Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NEAR-DevHub/neardevhub-bos into fea…
Browse files Browse the repository at this point in the history
…ture/1000-linked-proposal-dropdown
  • Loading branch information
Tguntenaar committed Dec 7, 2024
2 parents ca5f1e0 + d57811f commit 0292094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ function extractNumbers(str) {
function searchCacheApi(searchProposalId) {
let searchInput = encodeURI(searchProposalId);
let searchUrl = "${cacheUrl}/proposals/search/" + searchInput;
return asyncFetch(searchUrl, {
Expand Down
37 changes: 2 additions & 35 deletions playwright-tests/tests/events/proposals.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,39 +548,6 @@ test.describe("Wallet is connected", () => {
test.setTimeout(120000);
await getCurrentBlockHeight(page);
await page.goto(`/${account}/widget/app?page=create-proposal`);
await page.route(
"https://events-cache-api-rs.fly.dev/proposals/search/2",
async (route) => {
const response = await route.fetch({
url: "https://events-cache-api-rs.fly.dev/proposals/search/2",
});

const json = {
records: [
{
author_id: "meghagoel.near",
block_height: 118172036,
name: "DevHub Developer Contributor report by Thomas for 03/11/2024 – 04/12/2024",
category: "Bounty",
summary: "Testing labels",
editor_id: "meghagoel.near",
proposal_id: 2,
ts: 1714757281087668547,
timeline: '{"status":"DRAFT"}',
views: 2,
labels: ["Bounty booster", "Hackathon", "Bounty"],
},
],
page: 1,
total_pages: 1,
limit: 10,
total_records: 1,
};
console.log({ response, json });

await route.fulfill({ response, json });
}
);

await getCurrentBlockHeight(page);

Expand Down Expand Up @@ -625,7 +592,7 @@ test.describe("Wallet is connected", () => {
await page
.frameLocator("iframe")
.getByText(
"#2 DevHub Developer Contributor report by Thomas for 03/11/2024 – 04/12/2024"
"NEAR Toronto Hackathon Proposal [Hackbox Cohort 1 - Q2 2024] | #PoweredByHackbox"
)
.click({ timeout: 10000 });

Expand Down Expand Up @@ -658,7 +625,7 @@ test.describe("Wallet is connected", () => {
proposal_body_version: "V0",
name: "Test proposal 123456",
description:
"The test proposal description. And referencing [#2 DevHub Developer Contributor report by Thomas for 03/11/2024 – 04/12/2024](https://near.social/events-committee.near/widget/app?page=proposal&id=2)",
"The test proposal description. And referencing [#2 NEAR Toronto Hackathon Proposal [Hackbox Cohort 1 - Q2 2024] | #PoweredByHackbox](https://near.social/events-committee.near/widget/app?page=proposal&id=2)",
category: "Bounty",
summary: "Test proposal summary 123456789",
linked_proposals: [],
Expand Down

0 comments on commit 0292094

Please sign in to comment.