Skip to content

Commit bb18c99

Browse files
chynhdavidvicos1
authored andcommitted
enable skipped tests
1 parent 90b96d0 commit bb18c99

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎cypress/integration/resources.spec.js‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,33 @@ describe('resources', () => {
4242
cy.get('h1').should('have.text', 'Resources');
4343
});
4444

45-
it.skip('redirects on /resources to resources/1', () => {
45+
it('redirects on /resources to resources/1', () => {
4646
cy.visitAndWaitFor('/resources');
4747
cy.location('pathname').should('eq', '/resources/1');
4848
});
4949

50-
it.skip('loads many resource cards', () => {
50+
it('loads many resource cards', () => {
5151
cy.visitAndWaitFor('/resources/1');
5252
cy.findAllByTestId(RESOURCE_CARD).should('have.length.greaterThan', 1);
5353
});
5454

55-
it.skip('loads the next page of results when using pagination to visit next page', () => {
55+
it('loads the next page of results when using pagination to visit next page', () => {
5656
cy.findByTestId(NEXT_PAGE_BUTTON).click();
5757
cy.location('pathname').should('eq', '/resources/2');
5858
});
5959

60-
it.skip('loads the previous page of results when using pagination to visit previous page', () => {
60+
it('loads the previous page of results when using pagination to visit previous page', () => {
6161
cy.visitAndWaitFor('/resources/2');
6262
cy.findByTestId(PREV_PAGE_BUTTON).click();
6363
cy.location('pathname').should('eq', '/resources/1');
6464
});
6565

66-
it.skip('loads the second page of results when using pagination to visit page 2', () => {
66+
it('loads the second page of results when using pagination to visit page 2', () => {
6767
cy.findByTestId('page 3').click();
6868
cy.location('pathname').should('eq', '/resources/3');
6969
});
7070

71-
it.skip('will allow a user to search matching resources by input', () => {
71+
it('will allow a user to search matching resources by input', () => {
7272
cy.findByTestId(RESOURCE_SEARCH).click().type('javascript', { force: true }).type('{enter}');
7373

7474
cy.location().should(({ pathname, search }) => {
@@ -96,7 +96,7 @@ describe('resources', () => {
9696
});
9797
});
9898

99-
it.skip('will allow a user reset their search form', () => {
99+
it('will allow a user reset their search form', () => {
100100
cy.findByTestId(RESOURCE_SEARCH).click().type('javascript', { force: true }).type('{enter}');
101101

102102
cy.location().should(({ pathname, search }) => {
@@ -117,7 +117,7 @@ describe('resources', () => {
117117
});
118118
});
119119

120-
it.skip('will allow a user to filter resources by category', () => {
120+
it('will allow a user to filter resources by category', () => {
121121
cy.findSelectByLabelText(CATEGORY_SELECT, { edit: true })
122122
.click({ force: true })
123123
.type('Books')
@@ -150,7 +150,7 @@ describe('resources', () => {
150150
});
151151
});
152152

153-
it.skip('will allow a user to filter resources by cost', () => {
153+
it('will allow a user to filter resources by cost', () => {
154154
cy.findSelectByLabelText(COST_SELECT, { edit: true })
155155
.click({ force: true })
156156
.type('Free')
@@ -194,7 +194,7 @@ describe('resources', () => {
194194
});
195195
});
196196

197-
it.skip('will allow a user to filter resources by a language', () => {
197+
it('will allow a user to filter resources by a language', () => {
198198
cy.findSelectByLabelText(LANGUAGES_SELECT, { edit: true })
199199
.click({ force: true })
200200
.type('javascript')
@@ -228,7 +228,7 @@ describe('resources', () => {
228228
});
229229

230230
/** @see https://github.com/OperationCode/resources_api/issues/401 */
231-
// it.skip('will allow a user to filter resources by many languages', () => {
231+
// it('will allow a user to filter resources by many languages', () => {
232232
// cy.findSelectByLabelText(LANGUAGES_SELECT, { edit: true })
233233
// .click({ force: true })
234234
// .type('javascript')
@@ -277,7 +277,7 @@ describe('resources', () => {
277277
cy.get('@beforeUpVoteCountText').then(upVoteCountText => {
278278
const beforeUpVoteCount = parseInt(upVoteCountText, 10);
279279
const diff = response.body.resource.user_vote_direction === 'upvote' ? 1 : -1;
280-
expect(response.body.resource.upvotes).to.be.eq(beforeUpVoteCount + diff);
280+
expect(response.body.resource.upvotes).to.eq(beforeUpVoteCount + diff);
281281
});
282282
});
283283
});

‎postcss.config.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)