Selection marker should be enough for search test
Now we hide selection handlers while typing due to not being able to use them, these tests fail to find rotation marker. When text is found on mobile selection marker wraps the found text and they become visible. when not found they become hidden again. Checking the selection marker for this test cases should be enough. Change-Id: I6037450bc17438e4819ae3b724849f74f26910d4 Signed-off-by: mert <mert.tumer@collabora.com>
This commit is contained in:
parent
a63a08223f
commit
0a9b93df43
2 changed files with 20 additions and 20 deletions
|
@ -283,8 +283,8 @@ describe('Trigger hamburger menu options.', function() {
|
|||
helper.clickOnIdle('#search');
|
||||
|
||||
// A shape and some text should be selected
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
});
|
||||
|
|
|
@ -26,8 +26,8 @@ describe('Searching via search bar.', function() {
|
|||
searchHelper.searchNext();
|
||||
|
||||
// A shape and some text should be selected
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -56,8 +56,8 @@ describe('Searching via search bar.', function() {
|
|||
searchHelper.searchNext();
|
||||
|
||||
// A shape and some text should be selected
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -68,8 +68,8 @@ describe('Searching via search bar.', function() {
|
|||
// Search next instance
|
||||
searchHelper.searchNext();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -86,8 +86,8 @@ describe('Searching via search bar.', function() {
|
|||
// Search prev instance
|
||||
searchHelper.searchPrev();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -108,8 +108,8 @@ describe('Searching via search bar.', function() {
|
|||
searchHelper.searchNext();
|
||||
|
||||
// A shape and some text should be selected
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -120,8 +120,8 @@ describe('Searching via search bar.', function() {
|
|||
// Search next instance
|
||||
searchHelper.searchNext();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -138,8 +138,8 @@ describe('Searching via search bar.', function() {
|
|||
// Search next instance, which is in the beginning of the document.
|
||||
searchHelper.searchNext();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -159,8 +159,8 @@ describe('Searching via search bar.', function() {
|
|||
|
||||
searchHelper.searchNext();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
@ -183,8 +183,8 @@ describe('Searching via search bar.', function() {
|
|||
|
||||
searchHelper.searchNext();
|
||||
|
||||
cy.get('.transform-handler--rotate')
|
||||
.should('be.visible');
|
||||
//cy.get('.transform-handler--rotate')
|
||||
// .should('be.not.visible');
|
||||
cy.get('.leaflet-selection-marker-start')
|
||||
.should('be.visible');
|
||||
|
||||
|
|
Loading…
Reference in a new issue