Skip to content

Commit

Permalink
Attempt to fix flaky test (submitnotebookbutton.ts)
Browse files Browse the repository at this point in the history
  • Loading branch information
caponetto committed Sep 11, 2024
1 parent 9d23832 commit e798b35
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/integration/submitnotebookbutton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@
* limitations under the License.
*/
describe('Submit Notebook Button tests', () => {
beforeEach(() => {
before(() => {
cy.deleteFile('*.ipynb');

cy.bootstrapFile('helloworld.ipynb');
});

beforeEach(() => {
cy.resetJupyterLab();
});

afterEach(() => {
after(() => {
cy.deleteFile('*.ipynb');

// Delete runtime configuration used for testing
cy.exec('elyra-metadata remove runtimes --name=kfp_test_runtime', {
failOnNonZeroExit: false
});
});

it('check Submit Notebook button exists', () => {
Expand All @@ -53,6 +50,11 @@ describe('Submit Notebook Button tests', () => {

// Dismiss dialog
cy.findByRole('button', { name: /cancel/i }).click();

// Delete runtime configuration used for testing
cy.exec('elyra-metadata remove runtimes --name=kfp_test_runtime', {
failOnNonZeroExit: false
});
});
});

Expand Down

0 comments on commit e798b35

Please sign in to comment.