Skip to content

Commit

Permalink
resolve the conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Aug 18, 2022
1 parent 9a38449 commit 49573c1
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ context('Delete Plugin List with the Drawer', () => {
cy.get(selector.empty).should('be.visible');
});

it('should be switched tabs to distinguish enable ', function () {
it('should be switched tabs to distinguish enable ', function () {
cy.visit('/plugin/list');
cy.get(selector.refresh).click();
cy.contains('button', 'Enable').click();
Expand All @@ -191,26 +191,14 @@ context('Delete Plugin List with the Drawer', () => {
force: true,
});
});
cy.contains(data.basicAuthPlugin)

cy.contains(data.basicAuthPlugin)
.parents(selector.pluginCardBordered)
.within(() => {
cy.get('button').click({
force: true,
});
});
cy.contains('button', 'Delete').click({
force: true,
});
cy.contains('button', 'Confirm').click({
force: true,
});

cy.get(selector.tab).within(() => {
cy.contains(selector.tabBtn, 'All').click({
force: true,
});
});
cy.contains(data.basicAuthPlugin).should('exist');

cy.contains('button', 'Delete').click({
force: true,
Expand All @@ -225,7 +213,6 @@ context('Delete Plugin List with the Drawer', () => {
});
});
cy.contains(data.basicAuthPlugin).should('exist');

cy.visit('/plugin/list');
cy.get(selector.empty).should('be.visible');
});
Expand Down

0 comments on commit 49573c1

Please sign in to comment.