Skip to content

Instantly share code, notes, and snippets.

@jlewi
Created July 25, 2023 13:14
Show Gist options
  • Save jlewi/b49097cb89148d09c6fd17945b3e0ff7 to your computer and use it in GitHub Desktop.
Save jlewi/b49097cb89148d09c6fd17945b3e0ff7 to your computer and use it in GitHub Desktop.
Cypress Generated Code
it('Written with DeploySentinel Recorder', () => {
// Load "https://github.com/jlewi/autobuilder-testing/issues/new"
cy.visit('https://github.com/jlewi/autobuilder-testing/issues/new');
// Resize window to 1920 x 859
cy.viewport(1920, 859);
// Fill "New test issue" on <input> #issue_title
cy.get('#issue_title').type("New test issue");
// Click on <button> "Submit new issue"
cy.get('.flex-items-center > .btn-primary').click();
// Fill "/autobuilder ge... on <textarea> #new_comment_field
cy.get('#new_comment_field').type("/autobuilder generate");
// Scroll wheel by X:0, Y:179
cy.scrollTo(0, 6);
// Click on <button> "Comment"
cy.get('.color-bg-subtle > .btn-primary').click();
// Scroll wheel by X:0, Y:-137
cy.scrollTo(0, 248);
// Scroll wheel by X:0, Y:16
cy.scrollTo(0, 193);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment