Skip to content

Commit

Permalink
fix: try adjust timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Mar 29, 2022
1 parent 6d5e989 commit 8dd28d6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cypress/integration/item/share/categories.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Categories', () => {
cy.setUpApi({ items: [item], tags: DEFAULT_TAGS });
cy.visit(buildItemPath(item.id));
openShareItemTab(item.id);
cy.wait(1000);
cy.wait(10000);
});

it('Display Item Categories', () => {
Expand Down Expand Up @@ -91,8 +91,9 @@ describe('Categories permissions', () => {
});
cy.visit(buildItemPath(item.id));
openShareItemTab(item.id);
cy.wait(1000);
const levelValue = cy.get(`#${SHARE_ITEM_CATEGORY_LEVEL}`);
const levelValue = cy.get(`#${SHARE_ITEM_CATEGORY_LEVEL}`, {
timeout: 10000,
});
levelValue.should('be.disabled');
});

Expand All @@ -105,8 +106,9 @@ describe('Categories permissions', () => {
});
cy.visit(buildItemPath(item.id));
openShareItemTab(item.id);
cy.wait(1000);
const levelValue = cy.get(`#${SHARE_ITEM_CATEGORY_LEVEL}`);
const levelValue = cy.get(`#${SHARE_ITEM_CATEGORY_LEVEL}`, {
timeout: 10000,
});
levelValue.should('be.disabled');
});
});

0 comments on commit 8dd28d6

Please sign in to comment.