-
Notifications
You must be signed in to change notification settings - Fork 3
/
session_all_tissues.spec.js
24 lines (20 loc) · 1.17 KB
/
session_all_tissues.spec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
it('Load all Tissues', function() {
cy.visit(Cypress.env('host'));
// Login
cy.get('[data-testid=ordino-navbar] [data-testid=start-analysis-button]').click();
cy.login(); // use Cypress command registerd in Ordino app
// Show you can select single genes if you wanted
cy.scrollElementIntoCenter('[data-testid=dataset-card-tissue-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click()
cy.get('[data-testid=dataset-card-tissue-dataset] [data-testid=human-tab] [data-testid=ordino-dataset-searchbox] [data-testid=async-paginate-input]').click()
// wait intentionally a few seconds
cy.wait(2000)
cy.get('[data-testid=dataset-card-tissue-dataset] [data-testid=human-link]').click();
// Open Lineup ranking
// Define api calls to wait:
cy.intercept('/api/tdp/db/publicdb/tissue/desc').as('tissue_desc');
cy.intercept('/api/tdp/db/publicdb/tissue/filter?filter_species=human&filter_panel=TCGA+normals').as('human_tissue');
cy.get('[data-testid=tcga-normals-button]').click();
cy.wait('@tissue_desc');
cy.wait('@human_tissue');
cy.waitLineupReadyOrdino(0)
});