-
Notifications
You must be signed in to change notification settings - Fork 3.3k
ci(cypress): adding the foundation for cypress integration tests & some starter coverage for login, search & updates #3672
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
Conversation
| @@ -0,0 +1,5 @@ | |||
| { | |||
| "name": "Using fixtures to represent data", | |||
| "email": "[email protected]", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(do we need it?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is an example fixture generated by default by cypress- its just showing someone how they might add another fixture
| cy.deleteUrn('urn:li:tag:CypressTestAddTag') | ||
| cy.login(); | ||
| cy.visit('/dataset/urn:li:dataset:(urn:li:dataPlatform:hive,cypress_logging_events,PROD)'); | ||
| cy.contains('cypress_logging_events'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or is this indentional?
| // | ||
| // | ||
| // -- This is a parent command -- | ||
| Cypress.Commands.add('login', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty cool!
| ] | ||
| } | ||
| }, | ||
| "proposedDelta": null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more snapshots :(((((
| proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd="tests/cypress") | ||
| stdout = proc.stdout.read() | ||
| stderr = proc.stderr.read() | ||
| return_code = proc.wait() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fancyyy!
shirshanka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM

Sets the groundwork for adding more cypress tests in the future. This PR gives an demonstration of how:
I also tested w/ a failing test earlier (before fix dataset name assertion) and verified that cypress outputs a very human-readable response when the test fails.
Checklist