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 edit the plugin #1372

Merged
merged 25 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ context('Create and Delete Plugin List', () => {

// add test plugins
cy.configurePlugins(this.cases);
cy.wait(200);
juzhiyuan marked this conversation as resolved.
Show resolved Hide resolved
});

it('should edit the plugin', () => {
cy.visit('/');
cy.contains('Plugin').click();
cy.contains(data.name).siblings().contains('Edit').click({
force: true,
timeout,
});
cy.get(domSelector.codemirror)
.first()
Expand Down
1 change: 0 additions & 1 deletion web/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Cypress.Commands.add('configurePlugins', (cases) => {
timeout,
});
});
cy.get(domSelectors.drawer, { timeout }).should('not.exist');

if (shouldValid === true) {
cy.get(domSelectors.drawer).should('not.exist');
Expand Down