Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
fix flaky select host and beacon tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sang2925 committed Nov 15, 2022
1 parent 3cdc4d9 commit b61831c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type PanelHeaderProps = HeaderProps & {
secondaryName?: ReactNode;
};

export const PanelHeader: FC<PanelHeaderProps> = ({ ...props }) => <Header {...props} />;
export const PanelHeader: FC<PanelHeaderProps> = ({ ...props }) => <Header cy-test="panel-header" {...props} />;

export const DoublePanelHeader: FC<PanelHeaderProps> = ({ primaryName, secondaryName, ...props }) => (
<Header h={2} cy-test="beacon-username" {...props}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Selecting Host Via Graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER03');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER03');

// //return to main page
cy.get('[cy-test=return-campaign-menu').click();
Expand All @@ -26,7 +26,7 @@ describe('Selecting Host Via Graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER03');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER03');

// //return to main page
cy.get('[cy-test=return-campaign-menu').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Testing of graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER02');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER02');

cy.get('[cy-test=selectedLabel]').should('contain.text', 'COMPUTER02');

Expand All @@ -26,7 +26,7 @@ describe('Testing of graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER02');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER02');

cy.get('[cy-test=selectedLabel]').should('contain.text', 'COMPUTER02');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Selecting Host Via Graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER03');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER03');

// //return to main page
cy.get('[cy-test=return-campaign-menu').click();
Expand All @@ -26,7 +26,7 @@ describe('Selecting Host Via Graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER03');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER03');

// //return to main page
cy.get('[cy-test=return-campaign-menu').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Testing of graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER02');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER02');

cy.get('[cy-test=selectedLabel]').should('contain.text', 'COMPUTER02');

Expand All @@ -26,7 +26,7 @@ describe('Testing of graph', () => {

cy.wait(1000);

cy.get('[cy-test=header]').should('contain.text', 'COMPUTER02');
cy.get('[cy-test=panel-header]').should('contain.text', 'COMPUTER02');

cy.get('[cy-test=selectedLabel]').should('contain.text', 'COMPUTER02');

Expand Down

0 comments on commit b61831c

Please sign in to comment.