test: fix follow user test

This commit is contained in:
mutoe 2021-02-28 23:29:24 +08:00
parent 849d6264a6
commit 8d970e06bc
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ describe.only('Follow', () => {
beforeEach(() => {
cy.intercept('GET', /articles\?/, { fixture: 'articles.json' }).as('getArticles')
cy.intercept('GET', /tags/, { fixture: 'tags.json' }).as('getTags')
cy.intercept('GET', /profiles\/\S+/, { fixture: 'profile.json' }).as('getProfile')
cy.fixture('article.json').then(article => {
article.article.author.username = 'foo'
cy.intercept('GET', /articles\/\S+/, { statusCode: 200, body: article }).as('getArticle')