We have to test an iframe that is developed by our team but launches from a partner website. But currently, there is no way to launch the iframe. So, the team asked us to automate the iframe in w3schools. So, what we are doing is, going to w3schools iframe and removing the example code and inserting our iframe code to generate the iframe and this is being done as part of our e2e automation.
So, firstly, we are not testing the iframe directly but an iframe within an iframe. And secondly, the time that it takes to load the iframe is enormous.
Is this a recommended way to test (when you don't have a way to directly test something)?