Skip to content

Commit

Permalink
add issue number #170 to the relevant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schiwaa committed Oct 19, 2023
1 parent 6b55066 commit f1affa7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend-e2e/cypress/e2e/admin_privileges.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

describe('Users except admins should not be allowed to see and manipulate other users\'s traditions', () => {
it.skip('issue', () => { // currently, logged in as XYZ, one can even delete another user's tradition
it.skip('issue #170', () => { // currently, logged in as XYZ, one can even delete another user's tradition
// set db to initial state
});
});
12 changes: 6 additions & 6 deletions frontend-e2e/cypress/e2e/guests_privileges.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ beforeEach(() => {

// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should not see any private tradition listed in the toc', () => {
it.skip('issue', () => {
it.skip('issue #170', () => {
test_traditions.forEach((tradition) => {
if (tradition.access == "Private") {
cy.get('#traditions-list').contains(tradition.title).should('not.exist');
Expand All @@ -165,7 +165,7 @@ describe('A guest should not see any private tradition listed in the toc', () =>

// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should not be able to upload a tradition: not see the feather-plus-circle (next to the toc header "Text directory")', () => {
it.skip('issue', () => {
it.skip('issue #170', () => {
cy.contains('h6', 'Text directory').find('svg').should('not.be.visible'); // currently, fails as expected.
});
});
Expand All @@ -178,7 +178,7 @@ describe('A guest should not be able to upload a tradition: in another way than

// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should not be able to delete any tradition: not be offered the "Delete" button', () => {
it.skip('issue', () => {
it.skip('issue #170', () => {
const label = 'Delete';
cy.contains(label).should('not.be.visible'); // not even before listing the traditions in the toc
test_traditions.forEach((tradition) => {
Expand All @@ -201,7 +201,7 @@ describe('A guest should not be able to delete a tradition: in another way than
// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should not be offered to "Edit Collation" of any tradition', () => {
const label = 'Edit Collation';
it.skip('issue', () => {
it.skip('issue #170', () => {
cy.contains(label).should('not.be.visible'); // not even before listing the traditions in the toc
test_traditions.forEach((tradition) => {
if (tradition.access == "Public") {
Expand All @@ -215,7 +215,7 @@ describe('A guest should not be offered to "Edit Collation" of any tradition', (

// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should not be offered to edit Properties', () => {
it.skip('issue', () => {
it.skip('issue #170', () => {
cy.get('#sidebar_properties').find('h6').find('svg').should('not.be.visible');
});
});
Expand All @@ -225,7 +225,7 @@ describe('A guest should not be offered to edit Properties', () => {

// un-skip when issue solved, re-tag 'issue' to 'passes':
describe('A guest should see all public traditions listed in the toc, and only those', () => {
it.skip('issue', () => {
it.skip('issue #170', () => {
// the number of displayed traditions should be equal to the number of public traditions
// const count = test_traditions.length; // all traditions
const count = test_traditions.filter(({access}) => access === 'Public').length;
Expand Down

0 comments on commit f1affa7

Please sign in to comment.