Replies: 3 comments
-
This sounds interesting and could be something as a pattern for @dylandepass' StoryBook explorations. |
Beta Was this translation helpful? Give feedback.
-
Yeah interesting idea, I have some doubts about 4 and authors ability to do this but in a perfect world this would be great. I'm not familiar with Gherkin, does it have a way to convert a human readable statement into a query like this? My current explorations with storybook cover E2E tests and also cover 1 & 3 above. https://dylandepass.github.io/rosalind-boilerplate/?path=/story/blocks-header--header |
Beta Was this translation helpful? Give feedback.
-
Proof of Concept |
Beta Was this translation helpful? Give feedback.
-
Traditionally we put the test scripts for a website in a git repo. However, for a CMS, end-to-end test scenarios are associated with the content. If the content is changed, it can break the test scenarios. A CMS website usually involves designers, authors, and developers. With the content and test scripts in two places, stakeholders may not be able to define test coverage and review scenario correctness.
I propose a new approach to doing E2E test scenarios for Franklin. Say, you have a page named “example” (e.g., example.docx in SharePoint). Then the page “example-test” (e.g., example.test.docx in SharePoint) has the test scenarios in the test blocks. When you execute E2E test automation for the “example” page, the test framework automatically gets test scenarios from the “example-test” page.
The benefits of having test scripts close to the content:
Example:
Page: https://www.webplatform4.com/example
Test scenarios: https://www.webplatform4.com/example-test
Beta Was this translation helpful? Give feedback.
All reactions