mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +01:00
fix(1-3374): access e2e test (#9313)
Fix e2e test, failing because of subtle table syntax change. Nested `span`s are counted twice in Cypress `:contains`
This commit is contained in:
parent
4a72580b24
commit
8dc6fbf149
@ -126,8 +126,8 @@ describe('project-access', () => {
|
||||
|
||||
cy.get(`[data-testid='${PA_ASSIGN_CREATE_ID}']`).click();
|
||||
cy.wait('@editAccess');
|
||||
cy.get("td span:contains('Owner')").should('have.length', 2);
|
||||
cy.get("td span:contains('Member')").should('have.length', 1);
|
||||
cy.get("td a span:contains('Owner')").should('have.length', 2);
|
||||
cy.get("td a span:contains('Member')").should('have.length', 1);
|
||||
});
|
||||
|
||||
it('can edit role to multiple roles', () => {
|
||||
@ -145,8 +145,8 @@ describe('project-access', () => {
|
||||
|
||||
cy.get(`[data-testid='${PA_ASSIGN_CREATE_ID}']`).click();
|
||||
cy.wait('@editAccess');
|
||||
cy.get("td span:contains('Owner')").should('have.length', 2);
|
||||
cy.get("td span:contains('2 roles')").should('have.length', 1);
|
||||
cy.get("td a span:contains('Owner')").should('have.length', 2);
|
||||
cy.get("td a span:contains('2 roles')").should('have.length', 1);
|
||||
});
|
||||
|
||||
it('can remove access', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user