Skip to content

Commit

Permalink
fixup! Fixes #38048 - Add rolling content views
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjaheitmann committed Dec 10, 2024
1 parent 2127da6 commit 5999d04
Show file tree
Hide file tree
Showing 23 changed files with 481 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"results": [
{
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down Expand Up @@ -258,4 +259,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
"content_view": {
"id": 20,
"name": "cv3",
"composite": false
"composite": false,
"rolling": false
},
"lifecycle_environment": {
"id": 2,
Expand All @@ -138,4 +139,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 1,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down Expand Up @@ -245,4 +246,4 @@
},
"duplicate_repositories_to_publish": [],
"errors": null
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": true,
"rolling": false,
"component_ids": [
5,
7
Expand Down Expand Up @@ -390,4 +391,4 @@
"promote_or_remove_content_views": true
},
"errors": null
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 33,
Expand Down Expand Up @@ -210,4 +211,4 @@
},
"duplicate_repositories_to_publish": [],
"errors": null
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"updated_at": "2021-10-05 15:48:00 -0400",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"updated_at": "2020-12-08 09:26:11 -0500",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"updated_at": "2021-08-23 14:46:28 -0400",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"updated_at": "2021-08-23 14:46:28 -0400",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"updated_at": "2021-10-05 15:48:00 -0400",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down Expand Up @@ -279,4 +280,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"updated_at": "2021-02-23 10:09:24 -0500",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"updated_at": "2021-03-31 12:59:12 -0400",
"content_view": {
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,33 @@ test('Can edit text details such as name', async (done) => {
act(done);
});

test('Page contains Regular CV type', async (done) => {
const getscope = nockInstance
.get(cvDetailsPath)
.query(true)
.reply(200, cvDetailData);

const { queryByText } = renderWithRedux(
withCVRoute(<ContentViewDetails />),
renderOptions,
);

// Wait for page to load
await patientlyWaitFor(() => {
expect(queryByText('Regular')).toBeInTheDocument();
expect(queryByText('Rolling')).not.toBeInTheDocument();
expect(queryByText('Composite')).not.toBeInTheDocument();
expect(queryByText('Versions')).toBeInTheDocument();
expect(queryByText('Filters')).toBeInTheDocument();
expect(queryByText('History')).toBeInTheDocument();
expect(queryByText('Repositories')).toBeInTheDocument();
});

assertNockRequest(getscope);
act(done);
});


test('Can edit boolean details such as solve dependencies', async (done) => {
const updatedCVDetails = { ...cvDetailData, solve_dependencies: true };
const getscope = nockInstance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"content_host_count": 0,
"composite": false,
"rolling": false,
"component_ids": [],
"default": false,
"version_count": 5,
Expand Down
Loading

0 comments on commit 5999d04

Please sign in to comment.