fix cypress tests

This commit is contained in:
Nuwan 2021-11-24 10:03:47 +05:30
parent 2110c4b1ce
commit 480de3e89f
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ describe('Friends page with data', () => {
it('click instruments more link', () => {
cy.get('[data-testid=peopleListTable] > tbody tr')
.first()
.find('td[data-testid=instruments-col]')
.find('[data-testid=instrumentList]')
.within(() => {
cy.get('div').should('have.length', 4); //show only 4 instruments plus more link
cy.contains('Acoustic Guitar: Expert');
@ -195,7 +195,7 @@ describe('Friends page with data', () => {
});
describe.only('making friendship', () => {
describe('making friendship', () => {
it('add friend', () => {
cy.intercept('GET', /\S+\/profile\S+/, { fixture: 'person' });
cy.intercept('POST', /\S+\/friend_requests/, { statusCode: 201, body: { ok: true } });