Hello!
I’m looking at the documentation here Page object model | Grafana k6 documentation and in one of the code examples, it references:
import { bookingData } from '../data/booking-data.js';
But there’s no example of that booking-data.js file
I’d like to know what the proper structure of that file is so that I can complete the example and see how I can apply it to my project.
Thanks
Hi @waltervr,
This bookingData seems to be just an object with some keys such as “name”, “email” … etc:
const { name, email, phone, subject, description } = bookingData;
It is just some random data so the scripts populate some data in the browser.
You can open an issue or even a PR to fix it at GitHub - grafana/k6-docs: The k6 documentation website. · GitHub
It likely will be just fine if it is an object that is just in each of the two scripts there. Or if just the data is inlined.