@@ -3,6 +3,7 @@ describe('browse-actual', function(){
33
44
55 it ( 'should have the file: file1 listed' , function ( ) {
6+ clickOnDataset ( 'stuff/zsd-e2e-tests' ) ;
67 var entries = element . all ( by . repeater ( 'entry in dirListing' ) ) ;
78 filterByText ( entries , "file1" ) . then ( function ( filtered ) {
89 expect ( filtered . length ) . toEqual ( 1 ) ;
@@ -15,7 +16,8 @@ describe('browse-actual', function(){
1516 var snapshots = function ( ) {
1617 return element . all ( by . repeater ( 'snap in snapshots' ) )
1718 }
18-
19+
20+ clickOnDataset ( 'stuff/zsd-e2e-tests' ) ;
1921 expect ( snapshots ( ) . count ( ) ) . toMatch ( 0 ) ;
2022 clickOnEntry ( 'file1' ) ;
2123 expect ( snapshots ( ) . count ( ) ) . toBeGreaterThan ( 0 ) ;
@@ -28,7 +30,8 @@ describe('browse-actual', function(){
2830 }
2931
3032 textFileContentIsPresentShouldBe ( false ) ;
31-
33+
34+ clickOnDataset ( 'stuff/zsd-e2e-tests' ) ;
3235 clickOnEntry ( 'file1' ) ;
3336 textFileContentIsPresentShouldBe ( false ) ;
3437
@@ -44,6 +47,7 @@ describe('browse-actual', function(){
4447
4548 diffIsPresentShouldBe ( false ) ;
4649
50+ clickOnDataset ( 'stuff/zsd-e2e-tests' ) ;
4751 clickOnEntry ( 'file1' ) ;
4852 diffIsPresentShouldBe ( false ) ;
4953
@@ -57,6 +61,7 @@ describe('browse-actual', function(){
5761
5862
5963 it ( 'should show the diff from the child2 dataset when click on "Diff" button in the child2 dataset' , function ( ) {
64+ clickOnDataset ( 'stuff/zsd-e2e-tests' ) ;
6065 clickOnEntry ( 'child2' ) ;
6166 clickOnEntry ( 'file1' ) ;
6267 clickOnSnapshot ( 'snap1' ) ;
@@ -75,6 +80,12 @@ describe('browse-actual', function(){
7580 } ;
7681
7782
83+ function clickOnDataset ( name ) {
84+ filterByText ( element . all ( by . repeater ( 'dataset in datasets' ) ) , name ) . then ( function ( filtered ) {
85+ filtered [ 0 ] . click ( ) ;
86+ } ) ;
87+ }
88+
7889 function clickOnEntry ( name ) {
7990 filterByText ( element . all ( by . repeater ( 'entry in dirListing' ) ) , name ) . then ( function ( filtered ) {
8091 filtered [ 0 ] . click ( ) ;
0 commit comments