diff --git a/.env.template b/.env.template index 4313645bb..1fa2a542a 100644 --- a/.env.template +++ b/.env.template @@ -1,2 +1 @@ -JWT_SECRET="b/&&7b78BF&fv/Vd" MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ" diff --git a/cypress/integration/common/admin.js b/cypress/integration/common/admin.js index 03cbe5fca..d922d909f 100644 --- a/cypress/integration/common/admin.js +++ b/cypress/integration/common/admin.js @@ -2,7 +2,6 @@ import { When, Then } from 'cypress-cucumber-preprocessor/steps' /* global cy */ - When('I navigate to the administration dashboard', () => { cy.get('.avatar-menu').click() cy.get('.avatar-menu-popover') @@ -14,11 +13,15 @@ Then('I can see a list of categories ordered by post count:', table => { cy.get('thead') .find('tr th') .should('have.length', 3) - table.hashes().forEach(({Name, Posts}, index) => { - cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`) - .should('contain', Name) - cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`) - .should('contain', Posts) + table.hashes().forEach(({ Name, Posts }, index) => { + cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`).should( + 'contain', + Name + ) + cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`).should( + 'contain', + Posts + ) }) }) @@ -26,12 +29,18 @@ Then('I can see a list of tags ordered by user count:', table => { cy.get('thead') .find('tr th') .should('have.length', 4) - table.hashes().forEach(({Name, Users, Posts}, index) => { - cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`) - .should('contain', Name) - cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`) - .should('contain', Users) - cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(4)`) - .should('contain', Posts) + table.hashes().forEach(({ Name, Users, Posts }, index) => { + cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`).should( + 'contain', + Name + ) + cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`).should( + 'contain', + Users + ) + cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(4)`).should( + 'contain', + Posts + ) }) }) diff --git a/cypress/integration/common/report.js b/cypress/integration/common/report.js index 3f2895dd9..db264ddde 100644 --- a/cypress/integration/common/report.js +++ b/cypress/integration/common/report.js @@ -111,7 +111,7 @@ Then(`I can't see the moderation menu item`, () => { .should('not.exist') }) -When(/^I confirm the reporting dialog .*:$/, (message) => { +When(/^I confirm the reporting dialog .*:$/, message => { cy.contains(message) // wait for element to become visible cy.get('.ds-modal').within(() => { cy.get('button') diff --git a/cypress/support/factories.js b/cypress/support/factories.js index 95355f414..87bcd1853 100644 --- a/cypress/support/factories.js +++ b/cypress/support/factories.js @@ -15,7 +15,7 @@ beforeEach(async () => { }) Cypress.Commands.add('factory', () => { - return Factory({seedServerHost}) + return Factory({ seedServerHost }) }) Cypress.Commands.add( diff --git a/docker-compose.yml b/docker-compose.yml index 64b743698..3b09fa57d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,6 @@ services: environment: - HOST=0.0.0.0 - BACKEND_URL=http://backend:4000 - - JWT_SECRET=b/&&7b78BF&fv/Vd - MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ" networks: diff --git a/package.json b/package.json index 1d7570a58..1bac2e06c 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "nonGlobalStepDefinitions": true }, "jest": { + "verbose": true, "moduleFileExtensions": [ "js", "json", diff --git a/pages/settings/index.vue b/pages/settings/index.vue index c018061a9..9f1ec8622 100644 --- a/pages/settings/index.vue +++ b/pages/settings/index.vue @@ -48,101 +48,90 @@