Skip to content

Commit

Permalink
Merge pull request #8847 from CitizenLabDotCo/unskip-report-builder-t…
Browse files Browse the repository at this point in the history
…ests

Unksip report builder tests
  • Loading branch information
luucvanderzee authored Sep 9, 2024
2 parents 08abeaf + 694eda6 commit 38e516e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
12 changes: 0 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1116,26 +1116,14 @@ workflows:
context:
- docker-hub-access
- lastpass
filters:
branches:
only:
- TAN-2500-ci-e2e-speedup
- e2e-setup-front:
context:
- docker-hub-access
- lastpass
filters:
branches:
only:
- TAN-2500-ci-e2e-speedup
- e2e-tests:
context:
- docker-hub-access
- lastpass
filters:
branches:
only:
- TAN-2500-ci-e2e-speedup
requires:
- e2e-setup-db
- e2e-setup-front
Expand Down
8 changes: 5 additions & 3 deletions front/cypress/e2e/report_builder/idea_template.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ describe('Idea template', () => {
cy.intercept('PATCH', `/web_api/v1/reports/${reportId}`).as(
'saveReportLayout'
);
cy.get('#e2e-content-builder-topbar-save').click();
cy.get('#e2e-content-builder-topbar-save > button').click({
force: true,
});
cy.wait('@saveReportLayout');

// Refresh page
Expand All @@ -165,7 +167,7 @@ describe('Idea template', () => {
});
});

it.skip('autosaves report created from template', () => {
it('autosaves report created from template', () => {
cy.apiCreateReportBuilder().then((report) => {
const reportId = report.body.data.id;

Expand Down Expand Up @@ -227,7 +229,7 @@ describe('Idea template', () => {
cy.get('#e2e-create-report-button').should('exist');
});

it.skip('autosaves report created from template', () => {
it('autosaves report created from template', () => {
cy.apiCreateReportBuilder(phaseId).then((report) => {
const reportId = report.body.data.id;

Expand Down
4 changes: 2 additions & 2 deletions front/cypress/e2e/report_builder/phase_report.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe('Phase report', () => {

// inspired by front/cypress/e2e/report_builder/idea_template.cy.ts
// "autosaves report created from template"
it.skip('is visible in current phase when created from ideation template', () => {
it('is visible in current phase when created from ideation template', () => {
cy.setAdminLoginCookie();
cy.apiCreateReportBuilder(currentInfoPhaseId, true).then((report) => {
const reportId = report.body.data.id;
Expand Down Expand Up @@ -260,7 +260,7 @@ describe('Phase report', () => {
});

// inspired by front/cypress/e2e/report_builder/survey_template.cy.ts
it.skip('is visible in current phase when created from survey template', () => {
it('is visible in current phase when created from survey template', () => {
cy.setAdminLoginCookie();
cy.apiCreateReportBuilder(currentInfoPhaseId, true).then((report) => {
const reportId = report.body.data.id;
Expand Down

0 comments on commit 38e516e

Please sign in to comment.