Skip to content

Commit

Permalink
fix: acceptance test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishasoumya-02 committed Jan 15, 2025
1 parent a968d1d commit c094b0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ storybook-build: ## Build Storybook
## Acceptance
.PHONY: acceptance-frontend-dev-start
acceptance-frontend-dev-start: ## Start acceptance frontend in development mode
RAZZLE_API_PATH=http://127.0.0.1:55001/plone pnpm start
RAZZLE_API_PATH=http://127.0.0.1:55001/plone NODE_OPTIONS=--dns-result-order=ipv4first pnpm start

.PHONY: acceptance-frontend-prod-start
acceptance-frontend-prod-start: ## Start acceptance frontend in production mode
Expand Down
24 changes: 14 additions & 10 deletions cypress/tests/block.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ context('Block Acceptance Tests', () => {
cy.get('h2:contains(Heading h2)').should('be.visible');
});

// it('As editor I can add a Heading H3 block ', () => {
// cy.visit('/document/edit');
// cy.addNewBlock('heading');
// cy.get('#field-tag > .react-select__control').click();
// cy.get('#react-select-38-option-1').click();
// cy.get('.editable').click().type('Heading h3');
// cy.get('#toolbar-save').click();
// cy.visit('/document');
// cy.get('h3:contains(Heading h3)').should('be.visible');
// });
it('As editor I can add a Heading H3 block ', () => {
cy.visit('/document/edit');
cy.addNewBlock('heading');
cy.get('#field-tag > .react-select__control > .react-select__indicators ')
.click()
.get(
'.react-select__menu > .react-select__menu-list > .react-select__option:nth-child(2)',
)
.click();
cy.get('.editable').click().type('Heading h3');
cy.get('#toolbar-save').click();
cy.visit('/document');
cy.get('h3:contains(Heading h3)').should('be.visible');
});

it('As editor I can add a Heading block with special characters', () => {
cy.visit('/document/edit');
Expand Down

0 comments on commit c094b0c

Please sign in to comment.