Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test that everything works when a schema is created or modified #176

Open
psrpinto opened this issue Dec 18, 2024 · 2 comments
Open

Test that everything works when a schema is created or modified #176

psrpinto opened this issue Dec 18, 2024 · 2 comments

Comments

@psrpinto
Copy link
Member

Test cases:

  • Add a field to an existing schema and make sure everything works
  • Create a new schema under schemas/subjects/ and make sure everything works
@psrpinto psrpinto added this to the MVP milestone Dec 18, 2024
@psrpinto
Copy link
Member Author

Created this ticket because it's an action we need to do, and it also serves as the "finish line" for the work related to having schemas drive the system.

@ashfame
Copy link
Member

ashfame commented Dec 18, 2024

I did a round of testing. Created #178 and I believe schema is driving all aspects of frontend and backend correctly now.

Here is how I tested it:

I created a test.json under schema/subjects directory with the following content:

{
	"title": "Page-two",
	"slug": "page-two",
	"fields": {
		"title": {
			"description": "The title of the page2",
			"type": "text"
		},
		"content": {
			"description": "The body of the page2",
			"type": "html"
		}
	}
}

Ran extension: npm run start:chrome

Subject import option shows up:

Image

Proceeding:

Image

Defining subject definition:

Image

Preview:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants