Skip to content

Commit 4659624

Browse files
committed
Added collobration session test
1 parent e84c83b commit 4659624

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
let collobrationURL
2+
3+
describe("Create a new file in the universal data tool", () => {
4+
it('should be able to create new file', () => {
5+
cy.visit("http://localhost:6001")
6+
7+
cy.contains("New File").click()
8+
})
9+
10+
it('should be able to import Elon Musk Tweets images dataset', () => {
11+
cy.contains("Samples").click()
12+
cy.contains("Import Toy Dataset").click()
13+
cy.contains("Elon Musk Tweets").siblings("td").eq(2).click()
14+
})
15+
16+
it('should be able to create new session', () => {
17+
cy.get("div[title='collaborate-icon']").click()
18+
cy.contains("Create New Session").click()
19+
});
20+
21+
it('should be able to store session url', () =>{
22+
cy.get("div[title='share-link']").children().children().then(elements => {
23+
collobrationURL = Cypress.$(elements[0]).val()
24+
})
25+
})
26+
27+
it('should be able to go for session url', () =>{
28+
cy.visit(collobrationURL)
29+
})
30+
31+
it('should be able to navigate to samples', () =>{
32+
cy.contains("Samples").click()
33+
})
34+
})

0 commit comments

Comments
 (0)