Skip to content

Commit

Permalink
feat: change preheat page
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao committed Jan 23, 2025
1 parent 2363e3e commit dd07c58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/job/preheats/preheat.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe('Preheat', () => {

// Show preheat headers.
cy.get('#headers').children().should('have.length', 1);
cy.wait(1200);
cy.wait(120000);

// Check how many times the API should be executed after six seconds.
cy.get('@preheat').then(() => {
Expand All @@ -214,7 +214,7 @@ describe('Preheat', () => {
);

// Preheat fails after three seconds.
cy.wait(600);
cy.wait(60000);

// Show preheat status.
cy.get('#status')
Expand Down Expand Up @@ -372,7 +372,7 @@ describe('Preheat', () => {
// Show preheat headers.
cy.get('#headers').children().should('have.length', 1);

cy.wait(1200);
cy.wait(120000);

// Check how many times the API should be executed after six seconds.
cy.get('@preheat').then(() => {
Expand All @@ -394,7 +394,7 @@ describe('Preheat', () => {
);

// Preheat API error response after three seconds.
cy.wait(600);
cy.wait(60000);

// Show error message.
cy.get('.MuiAlert-message').should('be.visible').and('contain', 'Unauthorized');
Expand Down
2 changes: 1 addition & 1 deletion src/components/job/preheats/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function ShowPreheat() {
};

pollPreheat();
}, 600);
}, 60000);

return () => {
clearInterval(pollingInterval);
Expand Down

0 comments on commit dd07c58

Please sign in to comment.