Skip to content

Commit

Permalink
Add contents tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Aug 22, 2024
1 parent de8e083 commit 6a61414
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/hub/collections-detail.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ describe('Collections Details', () => {
});
it('can show documentation tab for a collection', () => {
cy.uploadCollection(collectionName, namespace.name, '1.0.0').then(() => {
cy.approveCollection(collectionName, namespace.name, '1.0.0');
visitCollection(collectionName, namespace.name);
cy.intercept('GET', pulpAPI`/content/ansible/collection_versions/?namespace*`, {
fixture: 'hubCollectionDocumentation.json',
Expand Down Expand Up @@ -318,7 +317,6 @@ describe('Collections Details', () => {
});
it('can show contents tab for a collection', () => {
cy.uploadCollection(collectionName, namespace.name, '1.0.0').then(() => {
cy.approveCollection(collectionName, namespace.name, '1.0.0');
visitCollection(collectionName, namespace.name);
cy.clickTab('Contents', true);
cy.contains('No content available').should('exist');
Expand Down
36 changes: 0 additions & 36 deletions cypress/fixtures/hubCollectionDocumentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,10 @@
"sha384": "5fe23080451b7a4a46e3fc422be2f4c84059a960f7b9263c583881fc8707b6a058c0ee0f606b2335515339338260c05c",
"sha512": "a444f16b641a84ab505dcfbb800d751e8f2345b33ef34b9fd969b703cbb43afadaebc5de9ae54c35bf931e2800a2b87ca436a0424154d72ff8c468f140a1f5bc",
"id": "018d1d81-8f01-73c3-bb47-dbe499914a8c",
<<<<<<< HEAD
"authors": ["Lauro Gomes <[email protected]>"],
"contents": [
{
"name": "roles_description",
=======
"authors": [
"Lauro Gomes <[email protected]>"
],
"contents": [
{
"name": "roles",
>>>>>>> c088e98c... AAP-28882 : Add documentation tab test
"description": null,
"content_type": "role"
},
Expand Down Expand Up @@ -74,25 +65,13 @@
{
"name": "name",
"required": true,
<<<<<<< HEAD
"description": ["O nome para o qual exibir a saudação."]
=======
"description": [
"O nome para o qual exibir a saudação."
]
>>>>>>> c088e98c... AAP-28882 : Add documentation tab test
}
],
"filename": "/tmp/tmp2n2uf8tb/ansible_collections/laurobmb/hello/plugins/modules/hello_plugin.py",
"collection": "laurobmb.hello",
"has_action": false,
<<<<<<< HEAD
"description": ["Este módulo exibe uma mensagem de saudação."],
=======
"description": [
"Este módulo exibe uma mensagem de saudação."
],
>>>>>>> c088e98c... AAP-28882 : Add documentation tab test
"short_description": "Exemplo de módulo Ansible em Python"
},
"return": null,
Expand All @@ -118,17 +97,8 @@
"tags": [],
"issues": "https://github.com/laurobmb/ansible_hello_collection/issues",
"readme": "README.md",
<<<<<<< HEAD
"authors": ["Lauro Gomes <[email protected]>"],
"license": ["GPL-2.0-or-later"],
=======
"authors": [
"Lauro Gomes <[email protected]>"
],
"license": [
"GPL-2.0-or-later"
],
>>>>>>> c088e98c... AAP-28882 : Add documentation tab test
"version": "1.0.5",
"homepage": "https://github.com/laurobmb",
"namespace": "laurobmb",
Expand Down Expand Up @@ -259,13 +229,7 @@
"documentation": "https://github.com/laurobmb/ansible_hello_collection/docs/",
"homepage": "https://github.com/laurobmb",
"issues": "https://github.com/laurobmb/ansible_hello_collection/issues",
<<<<<<< HEAD
"license": ["GPL-2.0-or-later"],
=======
"license": [
"GPL-2.0-or-later"
],
>>>>>>> c088e98c... AAP-28882 : Add documentation tab test
"name": "hello",
"namespace": "laurobmb",
"origin_repository": "https://github.com/laurobmb/ansible_hello_collection",
Expand Down

0 comments on commit 6a61414

Please sign in to comment.