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: add frontend e2e test (smoke test for settings page) #1105

Merged
merged 9 commits into from
Dec 27, 2020
4 changes: 2 additions & 2 deletions web/cypress/integration/settings/settings-smoketest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
/* eslint-disable no-undef */

context('ssl smoke test', () => {
context('settings psge smoke test', () => {
juzhiyuan marked this conversation as resolved.
Show resolved Hide resolved
const domSelectors = {
pageContent: '.ant-pro-page-container',
notificationMsg: '.ant-notification-notice-message'
Expand Down Expand Up @@ -54,7 +54,7 @@ context('ssl smoke test', () => {
cy.contains('Settings').click();
cy.wait(500);
cy.url().should('contains', '/settings');
cy.get('#grafanaURL').clear().type('https://www.baidu.com/');
cy.get('#grafanaURL').clear().type('https://www.apiseven.com/');
juzhiyuan marked this conversation as resolved.
Show resolved Hide resolved
cy.contains('Submit').click();
cy.get(domSelectors.notificationMsg).should('contain', 'Update Configuration Successfully');
cy.wait(1000);
Expand Down