-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix acceptance test by using a fixed and unreleased version of the test package
- Loading branch information
Showing
6 changed files
with
267 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
import { basicJupyterTests } from "@renku/notebooks-cypress-tests"; | ||
import { | ||
jupyterlabTestFuncs, | ||
registerCustomCommands, | ||
validateLogin, | ||
} from "@renku/notebooks-cypress-tests"; | ||
|
||
basicJupyterTests(Cypress.env("URL")); | ||
const username = Cypress.env("USERNAME"); | ||
const password = Cypress.env("PASSWORD"); | ||
const url_or_path = Cypress.env("URL"); | ||
const url = | ||
url_or_path.slice(-1) === "/" ? url_or_path.slice(0, -1) : url_or_path; | ||
|
||
describe("Test jupyter notebook", () => { | ||
before(() => { | ||
registerCustomCommands(); | ||
}); | ||
beforeEach(() => { | ||
cy.session( | ||
"login-rstudio", | ||
() => { | ||
cy.visit(url); | ||
cy.renkuLoginIfRequired(username, password); | ||
}, | ||
{ | ||
validate: () => validateLogin(username, password), | ||
} | ||
); | ||
cy.visit(url); | ||
cy.wait(100); | ||
}); | ||
it("Successfully loads", jupyterlabTestFuncs.findExpectedElements); | ||
it("Can launch a terminal", jupyterlabTestFuncs.launchTerminal); | ||
it( | ||
"Can run terminal command to create a file", | ||
jupyterlabTestFuncs.makeFileWithTerminal("new-file.txt") | ||
); | ||
it( | ||
"Can remove the file", | ||
jupyterlabTestFuncs.removeFileWithTerminal("new-file.txt") | ||
); | ||
it("Can close the terminal", jupyterlabTestFuncs.closeTerminal); | ||
it( | ||
"Can find expected start page elements again", | ||
jupyterlabTestFuncs.findExpectedElements | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
import { basicRstudioTests } from "@renku/notebooks-cypress-tests"; | ||
import { | ||
rstudioTestFuncs, | ||
registerCustomCommands, | ||
validateLogin, | ||
} from "@renku/notebooks-cypress-tests"; | ||
|
||
basicRstudioTests(Cypress.env("URL")); | ||
const username = Cypress.env("USERNAME"); | ||
const password = Cypress.env("PASSWORD"); | ||
const url_or_path = Cypress.env("URL"); | ||
const url = | ||
url_or_path.slice(-1) === "/" ? url_or_path.slice(0, -1) : url_or_path; | ||
|
||
describe("Basic Rstudio functionality", () => { | ||
before(() => { | ||
registerCustomCommands(); | ||
}); | ||
beforeEach(() => { | ||
cy.session( | ||
"login-rstudio", | ||
() => { | ||
cy.visit(url); | ||
cy.renkuLoginIfRequired(username, password); | ||
}, | ||
{ | ||
validate: () => validateLogin(username, password), | ||
} | ||
); | ||
cy.visit(url); | ||
cy.wait(100); | ||
}); | ||
it("Successfully loads", rstudioTestFuncs.findExpectedElements); | ||
it("Can launch a terminal", rstudioTestFuncs.launchTerminal); | ||
it( | ||
"Can run terminal command to create a file", | ||
rstudioTestFuncs.makeFileWithTerminal("new-file.txt") | ||
); | ||
it( | ||
"Can remove the file", | ||
rstudioTestFuncs.removeFileWithTerminal("new-file.txt") | ||
); | ||
it("Can close the terminal", rstudioTestFuncs.closeTerminal); | ||
it( | ||
"Can find expected start page elements again", | ||
rstudioTestFuncs.findExpectedElements | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.