mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Remove unintended changes to class name/comment
This commit is contained in:
parent
8750df1aff
commit
7b73c990ec
@ -16,12 +16,6 @@ First, you have to tell cypress how to connect to your local neo4j database
|
|||||||
among other things. You can copy our template configuration and change the new
|
among other things. You can copy our template configuration and change the new
|
||||||
file according to your needs.
|
file according to your needs.
|
||||||
|
|
||||||
Make sure you are at the root level of the project. Then:
|
|
||||||
```bash
|
|
||||||
# in the top level folder Human-Connection/
|
|
||||||
$ cp cypress.env.template.json cypress.env.json
|
|
||||||
```
|
|
||||||
|
|
||||||
To start the services that are required for cypress testing, run:
|
To start the services that are required for cypress testing, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@ -256,7 +256,7 @@ When("I choose {string} as the language for the post", (languageCode) => {
|
|||||||
|
|
||||||
Then("the post shows up on the landing page at position {int}", index => {
|
Then("the post shows up on the landing page at position {int}", index => {
|
||||||
cy.openPage("landing");
|
cy.openPage("landing");
|
||||||
const selector = `.hc-post-card:nth-child(${index}) > .ds-card-content`;
|
const selector = `.post-card:nth-child(${index}) > .ds-card-content`;
|
||||||
cy.get(selector).should("contain", lastPost.title);
|
cy.get(selector).should("contain", lastPost.title);
|
||||||
cy.get(selector).should("contain", lastPost.content);
|
cy.get(selector).should("contain", lastPost.content);
|
||||||
});
|
});
|
||||||
@ -271,11 +271,11 @@ Then("the post was saved successfully", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Then(/^I should see only ([0-9]+) posts? on the landing page/, postCount => {
|
Then(/^I should see only ([0-9]+) posts? on the landing page/, postCount => {
|
||||||
cy.get(".hc-post-card").should("have.length", postCount);
|
cy.get(".post-card").should("have.length", postCount);
|
||||||
});
|
});
|
||||||
|
|
||||||
Then("the first post on the landing page has the title:", title => {
|
Then("the first post on the landing page has the title:", title => {
|
||||||
cy.get(".hc-post-card:first").should("contain", title);
|
cy.get(".post-card:first").should("contain", title);
|
||||||
});
|
});
|
||||||
|
|
||||||
Then(
|
Then(
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
:lang="post.language"
|
:lang="post.language"
|
||||||
:image="post.image | proxyApiUrl"
|
:image="post.image | proxyApiUrl"
|
||||||
:class="{
|
:class="{
|
||||||
'hc-post-card': true,
|
'post-card': true,
|
||||||
'disabled-content': post.disabled,
|
'disabled-content': post.disabled,
|
||||||
'--pinned': isPinned,
|
'--pinned': isPinned,
|
||||||
'--blur-image': post.imageBlurred,
|
'--blur-image': post.imageBlurred,
|
||||||
@ -157,7 +157,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.hc-post-card {
|
.post-card {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
@ -151,7 +151,7 @@ export default {
|
|||||||
.user-teaser {
|
.user-teaser {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
z-index: $z-index-hc-post-card-link;
|
z-index: $z-index-post-card-link;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
> .user-info {
|
> .user-info {
|
||||||
|
|||||||
@ -19,7 +19,6 @@ describe('UserAvatar.vue', () => {
|
|||||||
expect(wrapper.find('img').exists()).toBe(false)
|
expect(wrapper.find('img').exists()).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
// this is testing the style guide
|
|
||||||
it('renders an icon', () => {
|
it('renders an icon', () => {
|
||||||
expect(wrapper.find(BaseIcon).exists()).toBe(true)
|
expect(wrapper.find(BaseIcon).exists()).toBe(true)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user